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

feat: create a test thermometer #10

Merged
merged 12 commits into from
Jun 5, 2024
Merged

feat: create a test thermometer #10

merged 12 commits into from
Jun 5, 2024

Conversation

jsilvela
Copy link
Contributor

@jsilvela jsilvela commented May 30, 2024

  • Introduce a "thermometer" both for the GH summary, and as an
    output that can be used in chatops
  • Stop overcounting kubernetes versions and failure rates in them
  • Cap the number of alerts shown in chatops (max 2 per metric)
  • Update the GH actions dependencies

Closes #9

Screenshot 2024-05-30 at 17 47 47

Screenshot 2024-05-30 at 16 59 06

jsilvela and others added 8 commits May 30, 2024 16:23
Signed-off-by: Jaime Silvela <[email protected]>
Signed-off-by: Jaime Silvela <[email protected]>
Signed-off-by: Jaime Silvela <[email protected]>
Signed-off-by: Jaime Silvela <[email protected]>
Signed-off-by: Jaime Silvela <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
"""

output = f"{metric_name(metric)} thermometer:\n\n"
for bucket_hits in summary[metric]["failed"].items():
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We just found a bug here, when @NiccoloFei ran a CI/CD workflow with this branch (latest SHA)
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/9369542163
Since we iterate over the summary[metric]["failed"], we will skip over items that had no failures.
We should still get a printout even if there were zero failures.
Proboably better iterate over summary[metric]["total"]
@jlong49

@jlong49 jlong49 merged commit 66591bc into main Jun 5, 2024
3 checks passed
@jsilvela jsilvela deleted the dev/9 branch June 5, 2024 15:09
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.

Create a test "thermometer"
3 participants