Skip to content

test: disable config checks in config_metrics_test - #549

Open
Godrik0 wants to merge 1 commit into
tarantool:masterfrom
Godrik0:gh-12371-checks-off
Open

test: disable config checks in config_metrics_test#549
Godrik0 wants to merge 1 commit into
tarantool:masterfrom
Godrik0:gh-12371-checks-off

Conversation

@Godrik0

@Godrik0 Godrik0 commented Jul 1, 2026

Copy link
Copy Markdown

Set config.checks to 'off' in default_config to avoid environment-dependent alerts (THP, readahead) in tests.

Part of tarantool/tarantool#12371

@Godrik0
Godrik0 force-pushed the gh-12371-checks-off branch 2 times, most recently from 2f02b53 to b804a85 Compare July 6, 2026 10:27

@patapenka-alexey patapenka-alexey 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.

Thank you for the patch!

@oleg-jukovec oleg-jukovec 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.

Thank you for the patch, but I’m lacking motivation - why do we need to do this, and why starting from version 3.8.0, not 3.4.0?

Please, discribe it in the PR/commit message.

Set `config.checks` to `'off'` in `default_config` to prevent
production checks, such as THP and readahead checks, from affecting
`tnt_config_alerts` in tests. The test verifies exact alert counts, so
additional host-dependent warnings may cause it to fail in CI.

Part of tarantool/tarantool#12371
@Godrik0
Godrik0 force-pushed the gh-12371-checks-off branch from b804a85 to af820ea Compare August 17, 2026 08:34
@Godrik0

Godrik0 commented Aug 17, 2026

Copy link
Copy Markdown
Author

@oleg-jukovec, This option disables production alerts in tests. Otherwise, tests that expect exact alert counts, such as those using assert_config_alerts_metrics, may fail when a CI runner has a configuration that triggers these alerts. For example, THP is enabled by default on some systems. The version is chosen based on when the feature becomes available in Tarantool CE.

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.

4 participants