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

Fix ci #981

Merged
merged 3 commits into from
Oct 3, 2024
Merged

Fix ci #981

merged 3 commits into from
Oct 3, 2024

Conversation

evrardjp
Copy link
Collaborator

@evrardjp evrardjp commented Oct 1, 2024

This PR fixes CI for forks, improves the behaviour on 1.21 (CVE present won't be fixed until a 1.22 update of golang), and accelerates the development/testing on github.

Without this, the CI would automatically point DH_ORG to
kubereboot/kured on ghcr, instead of pointing to the owner
of the repo.

This makes the CI smoother.

Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
We can't move to use 1.22 yet, so we'll ignore this one.

Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
Without this, some CI jobs are flaky or slow due to the following
issues:
- Triggering a reboot cause an unrecoverable boot loop.
  This fixes it by restarting the containers that are incorrectly
  exited.
- API server is down while operations happen.
  This fixes it by ensuring at least one API server is up. In this
  case, we don't add a reboot marker on the unique api server.
- The amount of nodes in a test environment is larger than
  necessary.
  This fixes it by ensuring two nodes are required to reboot.
  This is enough for concurrency, and for the e2e testing.
- The wait time between operations is high, and can cause
  a heartbeat to be missed in the check script.
  This fixes it by checking more often, at the expense of
  more logging. This is compensated by increasing the amount
  of tries.

Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
@evrardjp evrardjp requested a review from ckotzbauer October 2, 2024 21:38
@evrardjp
Copy link
Collaborator Author

evrardjp commented Oct 2, 2024

All tests passed without issues in 6minutes and a half. I think that's better than what we had :)

Copy link
Collaborator

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

This all seems sane, great chop 🪵 carry 🪣 vibes here.

lgtm

@evrardjp evrardjp merged commit fdac3b1 into kubereboot:main Oct 3, 2024
18 checks passed
@evrardjp evrardjp deleted the fix_ci branch October 3, 2024 11:23
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