Skip to content

test: expand assert_no_critical_errors to also allow checking other metrics + add a default check in system tests that no consensus artifacts were invalidated - #8815

Merged
kpop-dfinity merged 7 commits into
masterfrom
kpop/tests/add_more_validations_for_system_tests
Feb 12, 2026

Conversation

@kpop-dfinity

@kpop-dfinity kpop-dfinity commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

Failing test output example:

Task assert_no_metrics_errors        FAILED  in   0.35s
     assertion `left == right` failed: The metric `consensus_invalidated_artifacts` on node 2kknl-owq7r-fbyry-fo3yj-hlj6w-7nx4y-4ch53-a4tov-wudg2-eatoz-qae has non-zero value. If the metric is allow
ed to be non-zero in the test, Create `SystemTestGroup` with `remove_metrics_to_check("consensus_invalidated_artifacts")
       left: 141
      right: 0

@github-actions github-actions Bot added the test label Feb 12, 2026
@kpop-dfinity
kpop-dfinity marked this pull request as ready for review February 12, 2026 12:30
@kpop-dfinity
kpop-dfinity requested review from a team as code owners February 12, 2026 12:30

@basvandijk basvandijk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice. LGTM!

@basvandijk
basvandijk requested a review from mraszyk February 12, 2026 12:35

@eichhorl eichhorl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Alternatively it could be checked by default with an option to disable it?

@kpop-dfinity

Copy link
Copy Markdown
Contributor Author

Alternatively it could be checked by default with an option to disable it?

Good idea, let me do that

@kpop-dfinity kpop-dfinity added the CI_ALL_BAZEL_TARGETS Runs all bazel targets label Feb 12, 2026
@kpop-dfinity

Copy link
Copy Markdown
Contributor Author

@basvandijk @eichhorl @pierugo-dfinity
Could you take a look again? I opened the PR prematurely.
As Leo suggested I made the consensus_invalidated_artifacts metric a default metric to check.

@kpop-dfinity kpop-dfinity changed the title test: expand assert_no_critical_errors to also allow checking other metrics + add a check to several consensus system tests that no artifacts where invalidated test: expand assert_no_critical_errors to also allow checking other metrics + add a default check in system tests that no consensus artifacts where invalidated Feb 12, 2026
@kpop-dfinity kpop-dfinity changed the title test: expand assert_no_critical_errors to also allow checking other metrics + add a default check in system tests that no consensus artifacts where invalidated test: expand assert_no_critical_errors to also allow checking other metrics + add a default check in system tests that no consensus artifacts were invalidated Feb 12, 2026
@kpop-dfinity
kpop-dfinity added this pull request to the merge queue Feb 12, 2026
Merged via the queue into master with commit 8d41fa6 Feb 12, 2026
37 checks passed
@kpop-dfinity
kpop-dfinity deleted the kpop/tests/add_more_validations_for_system_tests branch February 12, 2026 17:53
kpop-dfinity added a commit that referenced this pull request Feb 20, 2026
… metrics + add a default check in system tests that no consensus artifacts were invalidated (#8815)

Failing test output example:
```
Task assert_no_metrics_errors        FAILED  in   0.35s
     assertion `left == right` failed: The metric `consensus_invalidated_artifacts` on node 2kknl-owq7r-fbyry-fo3yj-hlj6w-7nx4y-4ch53-a4tov-wudg2-eatoz-qae has non-zero value. If the metric is allow
ed to be non-zero in the test, Create `SystemTestGroup` with `remove_metrics_to_check("consensus_invalidated_artifacts")
       left: 141
      right: 0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants