-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Release Workflow: Install Subversion #68837
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few questions, but looks like the right idea
@@ -167,6 +167,9 @@ jobs: | |||
VERSION: ${{ github.event.release.name }} | |||
|
|||
steps: | |||
- name: Install Subversion | |||
run: | | |||
apt-get update -y && apt-get install -y subversion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably good assuming svn
doesn't get added back to these boxes, otherwise it will be a little wasteful.
Are there any circumstances where the upload-tag
job is run below without first running the upload
job? If so, this should be handled in it's own job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can see in the workflow, upload-tag
might run for minor release and changelog updates.
This means we should also add the svn
installation step to the upload-tag
job, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. Both run in github.event.release.assets[0]
is truthy, but which one depends on whether needs.compute-should-update-trunk.outputs.should_update_trunk
is true
or not.
Perhaps it's better to add a job prior to these two that run if: github.event.release.assets[0]
assuming both jobs run on the same environment. @desrosj what would you recommend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it's better to add a job prior to these two that run
if: github.event.release.assets[0]
assuming both jobs run on the same environment. @desrosj what would you recommend?
Do you mean have a separate job before upload
and upload-tag
that installs SVN? If so, that unfortunately does not work. Each job is run on a separate, fresh runner machine. So we would need to add the step above to both of those jobs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 04089c5.
Flaky tests detected in be92551. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12913194514
|
If I'm not mistaken, cherry-picking this fix into the release branch, should re-trigger the plugin release job with the latest workflow? Update: Let me try to reiterate the question 😄 Is there a way to re-run an action (triggered by a release) but point the workflow file to a more recent SHA? After I've cherry-picked this fix. |
Without updating the workflow to handle this, I don't think so. The path here would need to be to add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should do the trick of fixing the error. But doesn't help us with the missed version that we're discussing in Slack. I say let's give this a try for the next release.
What?
Adds step to install manually
svn
for plugin release workflow.Why?
The latest GitHub action runners remove
svn
. See actions/runner-images#9848.Testing Instructions