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

Attach a patch for needed updates to the TA Tasks #1203

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

zregvart
Copy link
Member

When the workflow fails it should attach a patch that folk can apply to get the needed changes on their PR.

Reference: https://issues.redhat.com/browse/EC-769

@zregvart zregvart force-pushed the issues/EC-769 branch 4 times, most recently from d6511b8 to 0544c7d Compare July 26, 2024 15:19
@@ -11,3 +11,9 @@ jobs:
uses: actions/checkout@v4
- name: Check Trusted Artifact variants
run: hack/generate-ta-tasks.sh
- name: Attach patch
Copy link
Member

Choose a reason for hiding this comment

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

Where does this attachment happen? Can you trigger a test on this PR or will the PR only use the workflows from main?

Copy link
Member Author

Choose a reason for hiding this comment

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

The patch will be uploaded to GitHub and served from the "Summary" page, here is one from a previous run that I had intentionally made to fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't know to go to the Summary page. I think I'd be confused about where to get the ta.patch.

For users of the gh CLI, the message could give executable instructions:

gh run download "$GITHUB_RUN_ID" -n 'Trusted artifacts patch'
git apply ta.patch

(GITHUB_RUN_ID should be injected automatically into the GH runner environment)

For others, telling them to go to the Summary page would help

When the workflow fails it should attach a patch that folk can apply to
get the needed changes on their PR.

Reference: https://issues.redhat.com/browse/EC-769
Copy link
Contributor

@robnester-rh robnester-rh left a comment

Choose a reason for hiding this comment

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

lgtm

@zregvart zregvart added this pull request to the merge queue Jul 31, 2024
Merged via the queue into konflux-ci:main with commit a2c2045 Jul 31, 2024
9 checks passed
@zregvart zregvart deleted the issues/EC-769 branch August 1, 2024 08:15
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.

5 participants