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

fix(reana-dev): update container image labels when releasing (#765) #765

Conversation

tiborsimko
Copy link
Member

Changes reana-dev git-create-release-commit behaviour to also update the container image label version when releasing cluster components.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Attention: Patch coverage is 11.76471% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 18.54%. Comparing base (c533c34) to head (fe6bc2c).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #765      +/-   ##
==========================================
- Coverage   18.56%   18.54%   -0.02%     
==========================================
  Files          26       26              
  Lines        2359     2372      +13     
==========================================
+ Hits          438      440       +2     
- Misses       1921     1932      +11     
Files Coverage Δ
reana/config.py 100.00% <100.00%> (ø)
reana/reana_dev/git.py 29.00% <0.00%> (-0.13%) ⬇️
reana/reana_dev/utils.py 35.52% <7.69%> (-0.62%) ⬇️

@mdonadoni mdonadoni added this to In review in 0.9.3 Jan 11, 2024
tiborsimko added a commit to tiborsimko/reana that referenced this pull request Jan 18, 2024
…ahub#765)

Fixes `reana-dev git-create-release-commit` behaviour to also update the
container image label version when releasing the cluster components
@tiborsimko tiborsimko force-pushed the git-create-release-commit-update-dockerfile-labels branch from a256355 to 813eca3 Compare January 18, 2024 13:03
@tiborsimko tiborsimko changed the title git-create-release-commit: update image version label fix(reana-dev): git-create-release-commit update image labels (#765) Jan 18, 2024
tiborsimko added a commit to tiborsimko/reana that referenced this pull request Jan 18, 2024
…ahub#765)

Fixes `reana-dev git-create-release-commit` behaviour to also update the
container image label version when releasing the cluster components
@tiborsimko tiborsimko force-pushed the git-create-release-commit-update-dockerfile-labels branch from 813eca3 to 04db78a Compare January 18, 2024 13:07
tiborsimko added a commit to tiborsimko/reana that referenced this pull request Jan 18, 2024
…ahub#765)

Fixes `reana-dev git-create-release-commit` behaviour to also update the
container image label version when releasing the cluster components.
@tiborsimko tiborsimko force-pushed the git-create-release-commit-update-dockerfile-labels branch from 04db78a to 75516da Compare January 18, 2024 13:08
Copy link
Member

@mdonadoni mdonadoni left a comment

Choose a reason for hiding this comment

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

Looks good! Just one small discussion point

Copy link
Member

Choose a reason for hiding this comment

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

How do we want to update the date in the Dockerfile, also considering that we are switching to release-please?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess we'd have to update it ourselves at the day we are releasing and compiling the user-facing summary to be put into CHANGELOG before the regular news items generated by Release Please.

Might be nice to script it further, we would probably need to read upstream/release-please--branches--master branch content, enrich it and push back. Perhaps a job for a new command?

Copy link
Member

@mdonadoni mdonadoni Feb 9, 2024

Choose a reason for hiding this comment

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

But the user-facing summary would only be for the general reana repository, wouldn't it? I would avoid having an user-facing summary for each component, as I think that 1) that would not be very useful to the users in any case 2) it would cancel the benefit of using conventional commits and release-please by introducing a manual step in what could otherwise be a fully automatic release.

Regarding the second point, if we want to script it then I guess we could remove the label from the Dockerfile itself, and then set it from the CLI when building the image (either with reana-dev or with our custom GitHub action). In this way we would not need a new command, and we could still use release-please PRs without having to modify them.

What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

WRT user-facing summaries, fully agree about doing it only for the user-facing repositories, such as reana and perhaps some like reana-client, reana-client-go. We may not even need them for every patchlevel release, only for "big" releases (major, and perhaps minor).

WRT updating also date, (a) I could amend git-create-release-commit command to do this too; (b) removing this label from Dockerfile could also be interesting at a slight con of not having full labels in the source code repository; (c) BTW we also do need to be aware of updating the date in the Release Please's made pull request, if the release is not happening the same day. We can see IRL about pros/cons?

tiborsimko added a commit to tiborsimko/reana that referenced this pull request Feb 16, 2024
…b#765)

Fixes `reana-dev git-create-release-commit` behaviour to also update the
container image label version when releasing the cluster components.
@tiborsimko tiborsimko force-pushed the git-create-release-commit-update-dockerfile-labels branch from 75516da to 12deebf Compare February 16, 2024 10:37
@tiborsimko tiborsimko changed the title fix(reana-dev): git-create-release-commit update image labels (#765) fix(reana-dev): update container image labels when releasing (#765) Feb 16, 2024
tiborsimko added a commit to tiborsimko/reana that referenced this pull request Mar 4, 2024
…b#765)

Fixes `reana-dev git-create-release-commit` behaviour to also update the
container image label version when releasing the cluster components.
@tiborsimko tiborsimko force-pushed the git-create-release-commit-update-dockerfile-labels branch from 12deebf to d54ffe7 Compare March 4, 2024 07:59
…b#765)

Fixes `reana-dev git-create-release-commit` behaviour to also update the
container image label version when releasing the cluster components.
@tiborsimko tiborsimko force-pushed the git-create-release-commit-update-dockerfile-labels branch from d54ffe7 to fe6bc2c Compare March 4, 2024 08:00
@tiborsimko tiborsimko merged commit fe6bc2c into reanahub:master Mar 4, 2024
15 checks passed
0.9.3 automation moved this from In review to Done Mar 4, 2024
@tiborsimko tiborsimko deleted the git-create-release-commit-update-dockerfile-labels branch March 4, 2024 09:01
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
0.9.3
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants