Skip to content

chore(ci): gather logs when bootstrap success or failed#2286

Merged
universal-itengineer merged 3 commits into
mainfrom
chore/ci/gather-files-when-bootstrap-fail
Apr 27, 2026
Merged

chore(ci): gather logs when bootstrap success or failed#2286
universal-itengineer merged 3 commits into
mainfrom
chore/ci/gather-files-when-bootstrap-fail

Conversation

@universal-itengineer
Copy link
Copy Markdown
Member

@universal-itengineer universal-itengineer commented Apr 27, 2026

Description

Ensure the reusable E2E pipeline always prepares and uploads bootstrap artifacts, even when dhctl-bootstrap fails before generating the full set of files.

Why do we need it, and what problem does it solve?

When nested cluster bootstrap fails, the workflow used to skip the artifact preparation and upload steps because they only ran after a successful bootstrap. That made postmortem debugging harder: generated files, partial configuration, and related bootstrap outputs were not preserved in failed runs.

This change makes artifact preparation and upload run on both success and failure, and tolerates missing files that are not produced in failed bootstrap scenarios. As a result, failed runs still publish the available bootstrap data needed for investigation.

What is the expected result?

  1. Run the reusable E2E pipeline.
  2. If bootstrap succeeds, generated files are prepared and uploaded as before.
  3. If bootstrap fails, the workflow still sanitizes and uploads whatever bootstrap files were produced.
  4. Missing optional files do not break artifact preparation.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: ci
type: chore
summary: Preserve generated bootstrap artifacts for reusable E2E pipeline runs even when bootstrap fails.
impact_level: low

@universal-itengineer universal-itengineer marked this pull request as ready for review April 27, 2026 14:52
@universal-itengineer universal-itengineer added this to the v1.9.0 milestone Apr 27, 2026
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
@universal-itengineer universal-itengineer force-pushed the chore/ci/gather-files-when-bootstrap-fail branch from f80f296 to 0930bcd Compare April 27, 2026 14:56
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
nevermarine
nevermarine previously approved these changes Apr 27, 2026
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
@universal-itengineer universal-itengineer merged commit 32324ee into main Apr 27, 2026
27 of 28 checks passed
@universal-itengineer universal-itengineer deleted the chore/ci/gather-files-when-bootstrap-fail branch April 27, 2026 15:45
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