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

Kubo v0.20.0-rc2 findings #3

Closed
7 of 10 tasks
galargh opened this issue Apr 25, 2023 · 7 comments
Closed
7 of 10 tasks

Kubo v0.20.0-rc2 findings #3

galargh opened this issue Apr 25, 2023 · 7 comments
Assignees

Comments

@galargh
Copy link
Contributor

galargh commented Apr 25, 2023

TODO

  • matrix URL might be different
  • ./kuboreleaser --skip-check-before release --version v0.20.0-rc2 prepare-branch
  • 9837 got created - why? during prepare branch (bug, --skip-check-before)
  • js-rv-js disable these - ci: disable js-rv-js tests in interop kubo#10007
  • add ./ before commands in the release checklist
  • use merge-commit if possible
  • npm publish can take a couple of tries
  • warn during promote if it didn't found a comment
  • test matrix integration with tchncs.de server for example
  • more emojis
@laurentsenta
Copy link
Collaborator

Something to discuss: @hacdias has seen confusing conflicts with the merge back from release to master: ipfs/kubo#9848 We had changes from ipfs/kubo#9794 in the PR

@hacdias
Copy link
Member

hacdias commented May 3, 2023

From 0.19.2

@galargh
Copy link
Contributor Author

galargh commented May 8, 2023

  • kuboreleaser ... prepare-branch did not add the changelog as I expected so I had to do it manually. I first run./bin/mkreleaselog, which failed. Had to manually clone kubo into $GOPATH/src/github.com/ipfs/kubo and then it worked.

This one's odd, creating release log is only hidden behind prerelease check so it should have run - https://github.com/ipfs/kuboreleaser/blob/1c5ccd063d9c9c5a9035a8ca0c48606517bbe952/actions/prepare_branch.go#LL225C11-L225C11. Let's see how it goes with the 0.20.0.

The release created by publish-to-github had the changelog for 0.19, so I had to update it manually to have the changelog of 0.19.2.

The heuristic we use to extract correct text from the changelog MD is to find - [Overview] and copy stuff until the next - [Overview]. Looks like we don't have TOCs for 0.19.1 nor 0.19.2 - that's why it didn't work. I'm sure we can come up with a better heuristic here.

Most commands that waited for actions failed with {ACTION LINK} does not have the pattern v0.19.2. I manually checked all runs and they used 0.19.2 so I don't understand the issue.
https://github.com/ipfs/ipfs-companion/actions/runs/4870585996
https://github.com/ipfs/npm-go-ipfs/actions/runs/4870530193
https://github.com/ipfs/ipfs-docs/actions/runs/4870670281

Apparently GitHub changed EOL encoding in their logs which broke our matchers. It should be fixed by 2d96e08.

@hacdias
Copy link
Member

hacdias commented May 9, 2023

$ ./kuboreleaser release --version v0.20.0 prepare-branch
INFO[2023-05-09 09:48:41] Checking the status of the action...
INFO[2023-05-09 09:48:41] I'm going to check if PRs that update versions in the release branch and the master branch exist and if they're merged already.
INFO[2023-05-09 09:48:42] The action is not complete yet, continuing...
WARN[2023-05-09 09:48:42] https://github.com/ipfs/kubo/pull/9837 is closed (the action is not complete)
INFO[2023-05-09 09:48:42] Running the action...
INFO[2023-05-09 09:48:42] I'm going to create a PRs that update the version in the release branch and the master branch.
INFO[2023-05-09 09:48:42] I'm also going to update the changelog if we're performing the final release. Please note that it might take a while because I have to clone a looooot of repos.
FATA[2023-05-09 09:48:48] POST https://api.github.com/repos/ipfs/kubo/pulls: 422 Validation Failed [{Resource:PullRequest Field: Code:custom Message:No commits between release and release-v0.20.0}]

@BigLep
Copy link

BigLep commented May 18, 2023

Another improvement I can see from the 0.20 release cycle: #6

@galargh
Copy link
Contributor Author

galargh commented Jun 15, 2023

Another issue found when releasing RC-N > 1. This one's for the prepare-branch check.

INFO[2023-06-15 11:15:40] Skipping the check before running the action
INFO[2023-06-15 11:15:40] Running the action...
INFO[2023-06-15 11:15:40] I'm going to create a PRs that update the version in the release branch and the master branch.
INFO[2023-06-15 11:15:40] I'm also going to update the changelog if we're performing the final release. Please note that it might take a while because I have to clone a looooot of repos.
Your release PR is ready at https://github.com/ipfs/kubo/pull/9960\nIf needed, check out the release-v0.21.0 branch of ipfs/kubo repository and cherry-pick commits from master using the following command:

git cherry-pick -x <commit>

Please approve after all the required commits are cherry-picked.

Only 'yes' will be accepted to approve.

Enter a value: yes
FATA[2023-06-15 11:42:45] POST https://api.github.com/repos/ipfs/kubo/pulls: 422 Validation Failed [{Resource:PullRequest Field: Code:custom Message:No commits between master and version-update-v0.21}]

galargh added a commit that referenced this issue Jun 30, 2023
Address issues raised in #3
@galargh
Copy link
Contributor Author

galargh commented Jun 30, 2023

Most critical of the issues reported here have been addressed via:

For the ones that were not addressed yet, I created separate issues:

Finally, I couldn't find examples of these reoccurring in newer releases (we should open new issues for them if it turns out they're still causing problems):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

No branches or pull requests

4 participants