Repository navigation
Gracefully handle failure to fetch historical thresholds in perf tests - #98448
Merged
Merged
Conversation
…ce tests Previously, when `play.clickhouse.com` was unreachable or timed out, the `prepare_historical_data` step would fail with either an `AssertionError` (from `assert cidb.is_ready()`) or a `TypeError` (from `f.write(None)`), blocking all subsequent performance test stages. Since historical thresholds are only used as a `LEFT JOIN` in `compare.sh`, an empty file is perfectly valid — it just means no historical baseline adjustments are applied. This change makes the step fall back gracefully by creating an empty thresholds file and printing a warning instead of failing the entire job. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=98361&sha=3b164e8c122fa4ed2bda483b19cae8a0b54af329&name_0=PR&name_1=Performance%20Comparison%20%28amd_release%2C%20master_head%2C%202%2F6%29 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
play.clickhouse.comis unreachable or times outprepare_historical_datastep crashes withAssertionErrororTypeError: write() argument must be str, not None, blocking all subsequent stagesLEFT JOINincompare.sh, so an empty file is perfectly valid — now we fall back gracefully with a warning instead of failingCI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=98361&sha=3b164e8c122fa4ed2bda483b19cae8a0b54af329&name_0=PR&name_1=Performance%20Comparison%20%28amd_release%2C%20master_head%2C%202%2F6%29
#98361
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
🤖 Generated with Claude Code
Version info
26.3.1.247