Skip to content

Save the unit test output, like the e2e tests - #934

Open
HoustonPutman wants to merge 1 commit into
apache:mainfrom
HoustonPutman:no-op-update-tests
Open

HoustonPutman wants to merge 1 commit into
apache:mainfrom
HoustonPutman:no-op-update-tests

Conversation

@HoustonPutman

@HoustonPutman HoustonPutman commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

make unit-tests (and make test) now save their output the way the e2e tests do:

  • The full test output goes to tests/unit/output/unit-tests.log, while still being printed. The Makefile's shell already uses pipefail, so a test failure still fails make.
  • Ginkgo's junit.xml and report.json for the controller tests go to the same directory. suite_test.go only sets these reports when UNIT_TEST_OUTPUT_DIR is set, which the Makefile does, so running the tests from an IDE or with plain go test is unchanged.
  • The directory is gitignored by the existing tests/**/output rule, and recreated on every run.
  • The CI uploads it as the unit-test-output artifact when the tests fail, kept for 14 days, like the e2e workflow does.
  • The Testing section of the development docs says where the output goes.

This is independent of #933; they touch different parts of suite_test.go and merge cleanly in either order.

`make unit-tests` now saves the full test output to
tests/unit/output/unit-tests.log, and Ginkgo's junit.xml and report.json
for the controller tests to the same directory, like the e2e tests do
for tests/e2e/output. The directory is gitignored and recreated on every
run, and the CI uploads it when the tests fail.
@HoustonPutman HoustonPutman changed the title Test that the operator does not send Updates that change nothing Save the unit test output, like the e2e tests Dec 4, 2026

This branch has not been deployed

No deployments
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.

1 participant