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

Add a GitHub workflow for finalizing a release #6998

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Oct 12, 2023

Motivation and context

This automates the second half of the release process (the first being automated by prepare-release.yml). After this workflow completes, the only action that should remain for the releaser to do is to merge the dev-release-* pull request. We can't do that as part of this workflow, because CI has to finish first, and it seems pointless to create another workflow just to merge 1 PR.

Apply some of the aspects of this pipeline to prepare-release.yml as well:

  • Make the release notes extraction process more sophisticated to work around GitHub's frustrating handling of line breaks in PR and release descriptions.

  • Use GitHub app credentials in order to be able to trigger other pipelines.

How has this been tested?

I tried the pipelines on my CVAT fork.

Checklist

  • I submit my changes into the develop branch
  • [ ] I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)
  • [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

This automates the second half of the release process (the first being
automated by `prepare-release.yml`). After this workflow completes, the only
action that should remain for the releaser to do is to merge the
`dev-release-*` pull request. We can't do that as part of this workflow,
because CI has to finish first, and it seems pointless to create another
workflow just to merge 1 PR.

Apply some of the aspects of this pipeline to `prepare-release.yml` as well:

* Make the release notes extraction process more sophisticated to work
  around GitHub's frustrating handling of line breaks in PR and release
  descriptions.

* Use GitHub app credentials in order to be able to trigger other pipelines.
@SpecLad SpecLad marked this pull request as ready for review October 13, 2023 12:39
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #6998 (55f23cc) into develop (1b77005) will decrease coverage by 0.06%.
Report is 3 commits behind head on develop.
The diff coverage is 87.50%.

@@             Coverage Diff             @@
##           develop    #6998      +/-   ##
===========================================
- Coverage    82.60%   82.54%   -0.06%     
===========================================
  Files          360      360              
  Lines        38922    38977      +55     
  Branches      3570     3577       +7     
===========================================
+ Hits         32150    32174      +24     
- Misses        6772     6803      +31     
Components Coverage Δ
cvat-ui 77.52% <87.40%> (-0.10%) ⬇️
cvat-server 87.16% <100.00%> (-0.01%) ⬇️

@SpecLad SpecLad merged commit 0f821e4 into cvat-ai:develop Oct 18, 2023
42 checks passed
@azhavoro
Copy link
Contributor

I had an issue yesterday with using this workflow: https://github.com/opencv/cvat/actions/runs/6618431921/job/17976838325
Do you have any ideas what's wrong?

@SpecLad
Copy link
Contributor Author

SpecLad commented Oct 24, 2023

Looks like it ran afoul of the branch protection rules. I've now added cvat-bot to the list of people who are allowed to push to master; that should fix it.

mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Oct 25, 2023
This automates the second half of the release process (the first being
automated by `prepare-release.yml`). After this workflow completes, the
only action that should remain for the releaser to do is to merge the
`dev-release-*` pull request. We can't do that as part of this workflow,
because CI has to finish first, and it seems pointless to create another
workflow just to merge 1 PR.

Apply some of the aspects of this pipeline to `prepare-release.yml` as
well:

* Make the release notes extraction process more sophisticated to work
  around GitHub's frustrating handling of line breaks in PR and release
  descriptions.

* Use GitHub app credentials in order to be able to trigger other
  pipelines.
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.

2 participants