Skip to content

Add new release branch script for copying task definition pipeline#1404

Merged
simonbaird merged 6 commits into
conforma:mainfrom
simonbaird:more-release-branch-scripts
Mar 8, 2024
Merged

Add new release branch script for copying task definition pipeline#1404
simonbaird merged 6 commits into
conforma:mainfrom
simonbaird:more-release-branch-scripts

Conversation

@simonbaird

Copy link
Copy Markdown
Member

Also includes some improvements for the existing script for patching the cli pipeline.

It's not obvious what the naming convention is, so let's make it
harder to get it wrong.
It's not that hard to diff files across branches, so let's not keep
the unused pipeline definitions.

Includes showing some vimdiff command lines to do the comparison
across branches.
Not sure why it didn't happen before, but we patches double applied
if the merge commit is included.
@codecov

codecov Bot commented Mar 6, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.82%. Comparing base (fde2c66) to head (66f051d).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1404      +/-   ##
==========================================
+ Coverage   79.59%   86.82%   +7.22%     
==========================================
  Files          62       73      +11     
  Lines        4347     4682     +335     
==========================================
+ Hits         3460     4065     +605     
+ Misses        887      617     -270     
Flag Coverage Δ
acceptance 72.07% <ø> (?)
generative 79.59% <ø> (ø)
integration 79.59% <ø> (ø)
unit 79.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 39 files with indirect coverage changes

@simonbaird simonbaird force-pushed the more-release-branch-scripts branch 2 times, most recently from 0734cff to 59fc8ca Compare March 7, 2024 20:35
@simonbaird simonbaird changed the title Add new release branch for copying task definition pipeline Add new release branch script for copying task definition pipeline Mar 7, 2024
@simonbaird

Copy link
Copy Markdown
Member Author

I think it's working as expected. Moving out of draft.

There's a little bit more work needed to tell the user how to create the component, but I'm thinking to do that in another PR.

@simonbaird simonbaird marked this pull request as ready for review March 7, 2024 20:37
@simonbaird simonbaird force-pushed the more-release-branch-scripts branch 2 times, most recently from 6b64da5 to 35236f7 Compare March 7, 2024 20:56
The new task bundle Konflux pipeline is not generated initially by
Konflux. Instead it was created manually (IIUC using Kustomize with
the template in the build-definitions repo, ask Joe for the details
if you want to know more).

So to create it in the release branch we can just copy it from main
branch and make a few adjustments to ensure it is linked to the
correct Konflux component.

https://issues.redhat.com/browse/EC-428
https://issues.redhat.com/browse/EC-472
With the <(...) command line there's no file extension so the
vim syntax highlighting doesn't work. We can't have that.
@simonbaird simonbaird force-pushed the more-release-branch-scripts branch from 35236f7 to 66f051d Compare March 7, 2024 21:01
Comment thread hack/cut-release.sh
Review the generated commit, and inspect the diff as described.

# Copy the task definition pipeline from main branch
hack/copy-task-release-pipelines.sh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: any reason to not have this code in the patch-release-pipelines script?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hmm, yeah I did consider that. There is more code in common than I originally thought. Still my feeling is that two short hacky scripts is better than one long one. Maybe we can put them together in future.

@simonbaird

Copy link
Copy Markdown
Member Author

Let's merge - I want to redo the release branch with this.

@simonbaird simonbaird merged commit cec8190 into conforma:main Mar 8, 2024
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