-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add yarn build
and yarn test
to OUI release pipeline
#3312
Add yarn build
and yarn test
to OUI release pipeline
#3312
Comments
Hi @BSFishy, As a part of release pipeline we do not build, test anything on release pipeline which is Jenkins in this case. See #1234 for more details. Release pipeline is triggered only when a release is "drafted" on GitHub which is automated in above mentioned workflow. Hence you can add a step before that, that can fail the entire workflow if the checks fail. Also check how we publish to NPM today https://github.com/opensearch-project/opensearch-build-libraries/blob/main/vars/publishToNpm.groovy#L20 Thanks! |
Specifically, the |
I see! We use draft release artifacts as an intern/staging location for publishing anything to anywhere. See asset section here. Can you see if you can include these artifacts as a tarball so that we can take them, sign them if needed and then publish to NPM? |
Adding @VachaShah @harshavamsi @rupal-bq @joshuali925 (maintainers of opensearch-js and reporting-cli) which is also published on NPM to see if they have more information on this. |
These artifacts can be generated in the Github workflow. Is uploading them as artifacts all that is necessary? Could we use something like https://github.com/actions/upload-artifact? |
The action you specified only uploads the artifacts to the workflow run. This is how we can attach the artifacts to the drafted release so that it can be retained for longer time. https://github.com/opensearch-project/opensearch-py/blob/main/.github/workflows/release-drafter.yml#L37-L42 Thanks! |
According to item b) of https://docs.npmjs.com/cli/v9/commands/npm-publish?v=true#description, a tarball can be specified as an argument to the command to upload. Will work on adding the tarball as an artifact to the release workflow Update: added tarball to release workflow: opensearch-project/oui#636 |
Hi @BSFishy , |
Bring @AMoo-Miki into the discussion here. |
We want to get a release out for 2.7, so we want to work on having a release around/maybe a little after March 31. Also, this will help a lot for Pink Elephant, so the sooner the better for that. |
Discussed with team offline. Targeting April 6th for this change to get in and then release. |
The difference here is that we have TS -> JS and SCSS -> CSS transformations happening as part of our build process that are consumed downstream. Other JS repos in OpenSearch org are JS native, and simply point to their source files. OUI is unable to do that because we have an extensive build system that performs a lot of transformations that aren't immediately present in the repo, they only show up when |
Hi, @BSFishy , thanks for the elaboration above. |
Yes, all files will be in
|
Keeping it open until OUI PR is merged. |
For OUI's release process we need
yarn build
and preferablyyarn test
to be run sometime during the pipeline.yarn build
generates important release artifacts, including generating CSS files from Sass source files.yarn test
would be nice as a final sanity check before cutting a release.I need guidance on how to properly incorporate these commands through our pipeline. I would think the best way to go about this would be putting
yarn test
in the Github workflow andyarn build
in the Jenkins workflow, but I'm not sure how to do those things.The text was updated successfully, but these errors were encountered: