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

Make the PR comment accessible to the metrics step #290

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

komish
Copy link
Contributor

@komish komish commented Nov 3, 2023

At the moment, Metrics reporting is failing because the PR comment it needs is no longer available in the job where it runs.

https://github.com/openshift-helm-charts/charts/actions/runs/6709583883/job/18233057391#step:11:53

I believe that the metrics step can probably be extracted out into its own execution such that it doesn't cause the release step to fail, but until that gets prioritizes, this PR pulls the PR comment contents from the chart-verifier task and into the release task by encoding it in a step of the former job, and then writing it back to the expected location in a step of the latter job.

Definitely a temporary measure, but it's a quick way to get the release tasks to start passing. At the moment, I would expect them all to fail, even though all the actual releasing activity (e.g. pushing charts, public keys, indexing) succeeded.

Once this merges, I'll probably cut a release to get this into the production pipeline, even though the content is small.

This was referenced Nov 3, 2023
id: encode_pr_comment
if: ${{ always() && needs.setup.outputs.run_build == 'true' }}
run: |
commentBase64=$(base64 --wrap=0 ./pr/comment)
Copy link
Contributor

Choose a reason for hiding this comment

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

Use ${{ steps.pr_comment.outputs.message-file }} instead of hard-coded ./pr/comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Signed-off-by: Jose R. Gonzalez <komish@flutes.dev>
This was referenced Nov 3, 2023
@mgoerens mgoerens merged commit ccc45bd into openshift-helm-charts:main Nov 3, 2023
5 checks passed
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