Skip to content

Fall back to SIGSTOP when docker compose pause fails in integration tests - #103075

Merged
alexey-milovidov merged 2 commits into
masterfrom
fix-pause-container-flaky
Apr 19, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
fix-pause-container-flaky

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Apr 18, 2026 •

Copy link
Copy Markdown
Member

The docker compose pause command (which uses the cgroups freezer) occasionally fails in CI with "OCI runtime pause failed: unable to freeze: unknown". This is a transient Docker/containerd issue that causes unrelated integration tests to fail.

When the cgroups-based pause fails, fall back to the signal-based approach (SIGSTOP/SIGCONT) instead of failing the test. The correct unpause method is tracked and used in the cleanup.

Failing report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=393b84e8cbc531896c027d722e4b8825f1c2b157&name_0=MasterCI&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%201%2F6%29

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.1055

… tests

The `docker compose pause` (cgroups freezer) occasionally fails in CI with
"OCI runtime pause failed: unable to freeze: unknown". When this happens,
fall back to the signal-based approach (SIGSTOP/SIGCONT) instead of failing
the test.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=393b84e8cbc531896c027d722e4b8825f1c2b157&name_0=MasterCI&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%201%2F6%29

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ec73eaf]

Summary: ✅


AI Review

Summary

This PR updates the integration test helper pause_container to fall back from docker compose pause to SIGSTOP/SIGCONT when the freezer-based pause intermittently fails in CI. The change is scoped, preserves cleanup behavior by tracking the pause mechanism, and does not introduce correctness or safety issues in ClickHouse server code paths.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ➖
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Apr 18, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Does not harm.

@alexey-milovidov alexey-milovidov self-assigned this Apr 19, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Apr 19, 2026
Merged via the queue into master with commit ae49e08 Apr 19, 2026
161 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-pause-container-flaky branch April 19, 2026 12:57
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants