-
Notifications
You must be signed in to change notification settings - Fork 89
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
feat: new rafiki release pipeline and nodejs bump to v20 #2510
Conversation
❌ Deploy Preview for brilliant-pasca-3e80ec failed.
|
uses: actions/checkout@v4 | ||
- name: Generate CHANGELOG data | ||
id: changelog | ||
uses: requarks/changelog-action@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates the changelog based on the template, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually generates changelog data based on commits between current and previous same tag. It does not create changelog. If you want, I can also generate CHANGELOG.md here or append the data to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know how it orders the commits in the generated changelog?
Right now, we have the following defined: https://github.com/interledger/rafiki/blob/main/.github/release.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if commit has note BREAKING CHANGE
then this breaking changes will be always on top. After that, there will be bug fixes, features, chores, etc. I just need to check for dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sabineschaller I'm not sure if this action takes into account the label of the PRs and the breaking > general changes > dependency updates
order, since it checks commits and not PRs.
That being said, it does look like though we should get into a habit of doing feat!: ...
(or adding BREAKING CHANGE
to the to-be squashed commit), so we could see & auto generate breaking changes just from the commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkurapov I think it needs to be in the to-be-squashed commit either way, so we need to start adding the !
. And we can try training people to add the BREAKING CHANGE footer.
Also, I keep forgetting to increase the version in the package.json. I was thinking about just removing it but the frontend displays that version so we may have to keep it. |
We can maybe just update the package.json when we are creating changelog data? But that would be only on the release branch. Action can create PR into main branch with version update in package.json. Should we go with that? |
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Never mind, the team decided to remove the version. |
@@ -35,9 +35,9 @@ Never heard of Interledger before? Or would you like to learn more? Here are som | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we are here, in the "Local Development Environment" section above, we can remove the nvm
references and just say that the prerequisites are pnpm & node v20.
cc @sabineschaller since it looks like you edited the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
severity-cutoff: high | ||
output-format: table | ||
|
||
docker-trivy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grype and trivy: how much do they overlap? ie is it good to keep both vs just picking one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the difference is basically in the data sources that the scanner is using. Trivy is using more data sorces than grype, however, grype is using some of the data sources that trivy is not. So basically, we can keep both, or at least, just Trivy. Your thought?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might as well have a broader check, we can keep both - just wanted to understand the differences
uses: actions/checkout@v4 | ||
- name: Generate CHANGELOG data | ||
id: changelog | ||
uses: requarks/changelog-action@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sabineschaller I'm not sure if this action takes into account the label of the PRs and the breaking > general changes > dependency updates
order, since it checks commits and not PRs.
That being said, it does look like though we should get into a habit of doing feat!: ...
(or adding BREAKING CHANGE
to the to-be squashed commit), so we could see & auto generate breaking changes just from the commits
uses: docker/build-push-action@v5 | ||
with: | ||
push: false | ||
platforms: linux/amd64,linux/arm64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we only build on both platforms if we actually release? Otherwise, this will take forever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can. So basically, build only for linux/amd64 on feature branches and both platforms for release branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think that is what we used to do.
BTW I changed the Netlify NODE_VERSION back to 18 (for the rafiki.dev documentation) for now since we have some doc changes in PRs we wanted previews on. So once this is merged in, it can be set to 20. |
severity-cutoff: high | ||
output-format: table | ||
|
||
docker-trivy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might as well have a broader check, we can keep both - just wanted to understand the differences
@sabineschaller @mkurapov we can do another interation of a review now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 good to go after main's merged in
I'll re-review as soon as main is merged in :-) |
Co-authored-by: Max Kurapov <maxkurapov@gmail.com>
Co-authored-by: Max Kurapov <maxkurapov@gmail.com>
Co-authored-by: Max Kurapov <maxkurapov@gmail.com>
@mkurapov @sabineschaller rebased to main & updated PR |
@mkurapov @sabineschaller I am not authorized to merge this PR. |
I'll give you access... ✅ |
Netlify builds will fail due to node bump. After we merge this PR into master, we should also bump Netlify |
@@ -134,6 +134,29 @@ jobs: | |||
- name: Perform CodeQL Analysis | |||
uses: github/codeql-action/analyze@v3 | |||
|
|||
integration-test: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add this to the needs
list for the node-build
-> we should probably not run node-build if we fail integration tests.
CC @BlairCurrey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I'd say so too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
@tadejgolobic We have a branch protection rule set up for Maybe also |
@golobitch done, looks like its mergeable |
Should I just create one more job whose name it will be |
@tadejgolobic I don't mind just adding tl;dr we can merge IMO |
Changes proposed in this pull request
Context
Rafiki release pipeline is now designed that is possible to do quick deploys.
Branching strategy
For every major / minor version change, you need to create new release branch, but not for patch change. If you want to create release v2.1.0, you would need to create following release branch:
release/v2.1.0
. When there will be push to this repository, patch number will increment. Ideally, when release branch is created, there should be feature freeze, so that we do not need to update minor version. Instead, in release branch, we should push (after creation), only bugfixes, to make this release stable.Following release branches are supported:
Also, correct corresponding tags and releases will be created in GitHub.
On branch
release/v1.0.0-beta
, first tag and release would bev1.0.0-beta
and second onev1.0.1-beta
Docker build, scan, publish and release creation will be triggered only on release branches.
For the documentation on branching strategy, tags, etc, I will create new PR with updated documentation.
Checklist
fixes #number