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

Fixed upstream testing workflow #5590

Merged
merged 3 commits into from Apr 17, 2024
Merged

Conversation

gsnider2195
Copy link
Contributor

Closes #DNE

What's Changed

Fix upstream testing workflows showing successful when one of the steps fail

Screenshots

Before

https://github.com/nautobot/nautobot-app-ssot/actions/runs/8610217927

image

After

https://github.com/gsnider2195/nautobot-app-ssot-gha-test/actions/runs/8724938540

image

https://github.com/gsnider2195/nautobot-app-ssot-gha-test/actions/runs/8725146406

image

TODO

  • Explanation of Change(s)
  • Added change log fragment(s) (for more information see the documentation)
  • Attached Screenshots, Payload Example
  • Unit, Integration Tests
  • Documentation Updates (when adding/changing features)
  • Example App Updates (when adding/changing features)
  • Outline Remaining Work, Constraints from Design

@gsnider2195
Copy link
Contributor Author

@bryanculver do you see any issues with this? You're the expert on this workflow 😄

For reference: https://www.edwardthomson.com/blog/github_actions_6_fail_fast_matrix_workflows.html

@glennmatthews
Copy link
Contributor

A concern as I understand it was whether failures in repo A would cause runs in-progress in repo B to be auto-cancelled instead of running to completion. Have you been able to test that behavior?

@gsnider2195
Copy link
Contributor Author

A concern as I understand it was whether failures in repo A would cause runs in-progress in repo B to be auto-cancelled instead of running to completion. Have you been able to test that behavior?

I'm not seeing anywhere in our upstream testing where we could affect the workflows of another repository

@bryanculver
Copy link
Member

The only side-effect I can forsee (which may have arisen from testing) is that any task trying to be run after the matrix (either here or in the use of this, see: https://github.com/nautobot/nautobot-app-ssot/blob/479d77feb1ca75216f1ab41611d4211778e3e3bc/.github/workflows/upstream_testing.yml#L8-L13) would not be allowed to run.

But my memory is fuzzy on what or why this was put in so 🤷. If it wasn't documented it must not be important.

@gsnider2195
Copy link
Contributor Author

The only side-effect I can forsee (which may have arisen from testing) is that any task trying to be run after the matrix (either here or in the use of this, see: https://github.com/nautobot/nautobot-app-ssot/blob/479d77feb1ca75216f1ab41611d4211778e3e3bc/.github/workflows/upstream_testing.yml#L8-L13) would not be allowed to run.

But my memory is fuzzy on what or why this was put in so 🤷. If it wasn't documented it must not be important.

Do we know of any apps that are extending this workflow to run any additional steps?

@bryanculver
Copy link
Member

The only side-effect I can forsee (which may have arisen from testing) is that any task trying to be run after the matrix (either here or in the use of this, see: https://github.com/nautobot/nautobot-app-ssot/blob/479d77feb1ca75216f1ab41611d4211778e3e3bc/.github/workflows/upstream_testing.yml#L8-L13) would not be allowed to run.
But my memory is fuzzy on what or why this was put in so 🤷. If it wasn't documented it must not be important.

Do we know of any apps that are extending this workflow to run any additional steps?

Not that I know of. Could have been something that came up somewhere in this lifecycle:

But YAGNI probably at this point.

@gsnider2195
Copy link
Contributor Author

I happened to have a PyGithub script laying around from some research I was doing on the upstream testing workflows earlier this week so I iterated through every github actions workflow with "upstream" in the name and checked the files. The only file that didn't match was https://github.com/nautobot/nautobot-plugin-ssot-servicenow/blob/develop/.github/workflows/upstream_testing.yml and that was just whitespace differences.

@gsnider2195 gsnider2195 merged commit edf50fc into develop Apr 17, 2024
17 checks passed
@gsnider2195 gsnider2195 deleted the u/gas-fix-upstream-testing-status branch April 17, 2024 21:28
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.

None yet

4 participants