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

test(e2e): add git_ref for manual trigger to allow testing on branches #25

Merged

Conversation

charliedmcb
Copy link
Collaborator

@charliedmcb charliedmcb commented Nov 10, 2023

Fixes #

Description
Triggering the E2EMatrixTrigger workflow for a non-main branch doesn't actually end up testing on the non-main branch. Instead it ends up still testing the main branch.

This is particularly an issue when someone is updating the e2e test matrix. We want to allow devs to test their changes to the e2e matrix before checking it in.

By making the resolve args special case for manual triggers and grab the branch name this should allow for devs to manually trigger the workflows for their changes and get them tested before checking in.

How was this change tested?
Manually ran an E2E test on this branch:
https://github.com/Azure/karpenter/actions/runs/6882110677
Note: at the time I added an additional fake E2E test suite to the matrix called Another just to ensure things were being picked up correctly.

Also, note that confirming the git_ref on this run matches the correct commit.
*

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note

NONE

@charliedmcb charliedmcb marked this pull request as ready for review November 10, 2023 05:17
@charliedmcb charliedmcb marked this pull request as draft November 10, 2023 18:12
@charliedmcb charliedmcb marked this pull request as ready for review November 15, 2023 19:45
Copy link
Collaborator Author

@charliedmcb charliedmcb left a comment

Choose a reason for hiding this comment

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

/test

@charliedmcb charliedmcb merged commit 6be73ba into main Nov 16, 2023
13 checks passed
@charliedmcb charliedmcb deleted the charliedmcb/addGITREFForManualTriggerToAllowTestingOnBranches branch November 16, 2023 18:20
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