Skip to content
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

chore(ci): add js-waku test to pre-release workflow #2017

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

vpavlin
Copy link
Member

@vpavlin vpavlin commented Sep 8, 2023

Description

This PR builds on top of #2006 and adds image build and js-waku execution to pre-release workflow - i.e. nightly and release candidates

Example execution in test org - https://github.com/nwaku-test-org/nwaku/actions/runs/6123037927

Changes

  • add input to docker build job to be able to pass explicit tag
  • add job to decide a tag/release name in pre-release WF

@github-actions
Copy link

github-actions bot commented Sep 8, 2023

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2017

Built from 1682989

@github-actions
Copy link

github-actions bot commented Sep 8, 2023

You can find the experimental image built from this PR at

quay.io/wakuorg/nwaku-pr:2017-experimental

Built from 0246cfb

@vpavlin vpavlin force-pushed the chore/add-js-waku-pre-release branch from 2b53b6a to 45cd317 Compare September 11, 2023 09:09
Copy link
Contributor

@rymnc rymnc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as far as my knowledge of github actions goes 😅

Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for it!

- name: Vars
id: vars
run: |
TAG=$([[ "${{github.ref}}" == "refs/heads/master" ]] && echo "${{env.RELEASE_NAME}}" || echo ${{github.ref}} | sed 's#refs/tags/##')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't tend to have many frequent PRs being merged. However, I suggest creating a separate release branch, e.g. release/0.20, each time we create a release so that we make sure that nothing else gets added inadvertently during the release process. (A possible improvement for the future.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we do that already - the check for master here is because the same PR is used for nightly, so if the build comes from master, rather than v*-rc.*, we want to call it nightly

Comment on lines +98 to +103
js-waku:
needs: build-docker-image
uses: waku-org/js-waku/.github/workflows/ci.yml@master
with:
nim_wakunode_image: ${{ needs.build-docker-image.outputs.image }}
caller: nwaku
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me to understand: what does that do?
Thanks in advance!

Edited: I think it runs the integration tests from js-waku.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, uses at job level specifies the workflow YAML file to use for the job to execute (can be local to the repo or external -as seen here), then with specifes input parameters for the called workflow - the PR/pre-release image and then also specify the call comes from nwaku so that we can limit the jobs in js-waku CI that get executed (e.g. we do not want to do release:) )

@vpavlin vpavlin merged commit e8776fd into master Sep 11, 2023
16 checks passed
@vpavlin vpavlin deleted the chore/add-js-waku-pre-release branch September 11, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants