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

tests-smoke.yaml doesn't properly validate metrics using promtool #27675

Closed
joestringer opened this issue Aug 23, 2023 · 3 comments
Closed

tests-smoke.yaml doesn't properly validate metrics using promtool #27675

joestringer opened this issue Aug 23, 2023 · 3 comments
Labels
area/CI Continuous Integration testing issue or flake area/metrics Impacts statistics / metrics gathering, eg via Prometheus. kind/bug/CI This is a bug in the testing code. stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.

Comments

@joestringer
Copy link
Member

PR #27645 only changes .github/workflows/push-chart-ci.yaml. However, CI failed in this way for the PR:

https://github.com/cilium/cilium/actions/runs/5951467101/job/16141353424?pr=27645

...
prometheus-2.34.0.linux-amd64/promtool
cilium_statedb_table_delete_trackers_total non-counter metrics should not have "_total" suffix
Error: Process completed with exit code 3.

The PR doesn't touch this file, and yet somehow this job failed.

The job is also passing on main branch:
https://github.com/cilium/cilium/actions/workflows/tests-smoke.yaml?query=branch%3Amain

Seems like the underlying issue was introduced in commit 6f676a3 / #27160, but it doesn't look like the test failed for that PR.

@joestringer joestringer added kind/bug/CI This is a bug in the testing code. area/CI Continuous Integration testing issue or flake area/metrics Impacts statistics / metrics gathering, eg via Prometheus. labels Aug 23, 2023
@joestringer
Copy link
Member Author

joestringer commented Aug 23, 2023

The direct problem (CI failing due to misnamed metric) might have been resolved by #27657 , just because tests-smoke.yaml doesn't enable all the metrics and the related metric is now disabled by default. But the metric name is still wrong and that step was evidently not caught when introducing the metric for whatever reason.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not
had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Oct 23, 2023
Copy link

github-actions bot commented Nov 6, 2023

This issue has not seen any activity since it was marked stale.
Closing.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake area/metrics Impacts statistics / metrics gathering, eg via Prometheus. kind/bug/CI This is a bug in the testing code. stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.
Projects
None yet
Development

No branches or pull requests

1 participant