Skip to content

Conversation

@turkenh
Copy link
Member

@turkenh turkenh commented Nov 12, 2024

Description of your changes

This PR fixes TestCrossplaneLifecycle/TestCrossplaneLifecycleUpgrade/UpgradeCrossplane for older branches by installing the prior Crossplane version from the stable chart repository and then upgrading. Previously, we always install latest stable version and try upgrading to the local chart. This means downgrading in that and usually fails unexpectedly.

See this comment for the latest failure.

I expect the changes here having no effect on main but fixing release branches after backporting. Verified with #6082.

Fixes #6085

I have:

  • Read and followed Crossplane's contribution process.
  • Run earthly +reviewable to ensure this PR is ready for review.
  • Added or updated unit tests.
  • Added or updated e2e tests.
  • Linked a PR or a docs tracking issue to document this change.
  • Added backport release-x.y labels to auto-backport this PR.

Need help with this checklist? See the cheat sheet.

@turkenh turkenh marked this pull request as ready for review November 12, 2024 07:13
@turkenh turkenh requested a review from a team as a code owner November 12, 2024 07:13
@turkenh turkenh requested review from jbw976 and negz November 12, 2024 07:13
Copy link
Contributor

@phisco phisco left a comment

Choose a reason for hiding this comment

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

trusting the bash magic 😆 maybe that could have been pushed down to Go, just passing the branch, but would have been less explicit.

@phisco phisco merged commit e98f4f3 into crossplane:main Nov 13, 2024
@github-actions
Copy link

Backport failed for release-1.16, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-1.16
git worktree add -d .worktree/backport-6089-to-release-1.16 origin/release-1.16
cd .worktree/backport-6089-to-release-1.16
git switch --create backport-6089-to-release-1.16
git cherry-pick -x 3374a75e557e3e6b759b220ed3210a77d9860802 47d81cea96fc68eaede99f78a3dbfd9662c9af70

@github-actions
Copy link

Git push to origin failed for release-1.17 with exitcode 1

@github-actions
Copy link

Git push to origin failed for release-1.18 with exitcode 1

@turkenh
Copy link
Member Author

turkenh commented Nov 13, 2024

trusting the bash magic 😆 maybe that could have been pushed down to Go, just passing the branch, but would have been less explicit.

Yeah, that was the hardest part of this PR 😬 Both deciding where to calculate from branch to version and eventually doing in bash. My rationale for doing in outside e2e tests (not inside go) is that this enables extending tests further against multiple prior versions with a test matrix in GitHub CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consistent e2e failures on old branches

2 participants