-
Notifications
You must be signed in to change notification settings - Fork 108
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
actions: keep scripts out of the workflow scope #6168
Comments
The other advantage of this is that it's easier to test the scripts locally outside the workflows. |
Hey team! Please add your planning poker estimate with Zenhub @arya2 @gustavovalverde @oxarbitrage @teor2345 @upbqdn |
This is potentially a very large task, depending on how much work we put into de-duplicating or parameterising our scripts. What's the intended scope of this ticket? Is it just moving the existing scripts into files? Or will there be a lot of refactoring? (CI refactoring is risky and often breaks things, because it's difficult to test before merging.) |
It's basically moving scripts into |
I guess what I meant was: are we just moving the script text into files and calling those files? Or are we modifying the functionality of the scripts at the same time? I think it would reduce the risk and scope of this ticket to restrict it to copy-pasting scripts, and also do it in stages. Maybe we could try it with a small workflow or a single script first, to check if there are any issues? |
Yeah, it should basically be copy-pasting, and we can surely test with the less criticals first. I've anyways remove this from the Sprint backlog as we have these dependencies: |
In PR #8132 I reverted this PR because it has been causing internal GitHub errors. Unfortunately no-one picked up on this during the review process or after it merged. |
When we re-do this PR, we need to manually go to the ci-integration-tests-gcp.yml workflow run, scroll down, and check it for errors. These errors don't reliably show up in the CI summary or auto-opened tickets. For example, here is a successful run: And here is a failed run: |
Motivation
Some workflows are script intensive, making the workflows unreadable.
Specifications
A good approach to handle this would be moving all the scripts to multiple files outside the workflow, or create a GitHub Action to execute them in a reusable manner.
Complex Code or Requirements
The text was updated successfully, but these errors were encountered: