Skip to content

Conversation

joestringer
Copy link
Member

When the "no-errors-in-logs" test fails, report the package with the
error as part of the action name so that it's easier for developers to
understand which area of the codebase is emitting the error log.

Example test output:

...
.  [.] Action [check-log-errors/no-errors-in-logs:vendor/github.com/cilium/hive/job:kind-kind/kube-system/cilium-znv6v (install-cni-binaries)]
.
📋 Test Report [cilium-test-1]
❌ 1/1 tests failed (4/17 actions), 118 tests skipped, 0 scenarios skipped:
Test [check-log-errors]:
  ❌ check-log-errors/no-errors-in-logs:vendor/github.com/cilium/hive/job:kind-kind/kube-system/cilium-d6vf2 (cilium-agent)
    ⛑️ The following owners are responsible for reliability of the testsuite:
        - @cilium/vendor (no-errors-in-logs:vendor/github.com/cilium/hive/job)

@joestringer joestringer requested review from a team as code owners April 16, 2025 19:23
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Apr 16, 2025
@joestringer joestringer requested a review from a team as a code owner April 16, 2025 19:23
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Apr 16, 2025
@joestringer
Copy link
Member Author

joestringer commented Apr 16, 2025

cc @marseel related to your recent changes in #38812 - this will make the reason for pulling in the target owner more obvious.

@joestringer joestringer reopened this Apr 16, 2025
In a case like in the "no-errors-in-logs" test case, the use of a '/' to
split the scenario vs action name made the different fields ambiguous.
Fix it by replacing it with a colon.

Before:

.  [.] Action [check-log-errors/no-errors-in-logs/kind-kind/kube-system/cilium-znv6v (cilium-agent)]

After:

.  [.] Action [check-log-errors/no-errors-in-logs:kind-kind/kube-system/cilium-znv6v (cilium-agent)]

Signed-off-by: Joe Stringer <joe@cilium.io>
When the "no-errors-in-logs" test fails, report the package with the
error as part of the action name so that it's easier for developers to
understand which area of the codebase is emitting the error log.

Example test output:

...
.  [.] Action [check-log-errors/no-errors-in-logs:vendor/github.com/cilium/hive/job:kind-kind/kube-system/cilium-znv6v (install-cni-binaries)]
.
📋 Test Report [cilium-test-1]
❌ 1/1 tests failed (4/17 actions), 118 tests skipped, 0 scenarios skipped:
Test [check-log-errors]:
  ❌ check-log-errors/no-errors-in-logs:vendor/github.com/cilium/hive/job:kind-kind/kube-system/cilium-d6vf2 (cilium-agent)
    ⛑️ The following owners are responsible for reliability of the testsuite:
        - @cilium/vendor (no-errors-in-logs:vendor/github.com/cilium/hive/job)

Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer force-pushed the pr/joe/cli-better-error-reports branch from acfbd2c to 91aeb5e Compare April 17, 2025 16:25
@joestringer
Copy link
Member Author

/test

@joestringer joestringer enabled auto-merge April 17, 2025 16:25
@joestringer joestringer added this pull request to the merge queue Apr 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 17, 2025
@joestringer joestringer added this pull request to the merge queue Apr 17, 2025
Merged via the queue into main with commit 583acdf Apr 17, 2025
272 of 276 checks passed
@joestringer joestringer deleted the pr/joe/cli-better-error-reports branch April 17, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants