Skip to content

HDDS-16600. Reuse build ozone-repo on integration CI and harden RocksDB download - #11473

Closed
jojochuang wants to merge 8 commits into
apache:masterfrom
jojochuang:HDDS-16749
Closed

jojochuang wants to merge 8 commits into
apache:masterfrom
jojochuang:HDDS-16749

Conversation

@jojochuang

@jojochuang jojochuang commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Develocity Failures export for Apache Ozone Main (Jul–Sep 2026) ranked MDEP-187 dependency-plugin unpack errors (~75 builds) and hdds-rocks-native RocksDB source wget timeouts (~8 builds, with dependency cascades).
  • Integration CI jobs were running full-reactor clean verify without restoring the ozone-repo artifact from the build job, rebuilding OM/SCM paths that trigger MDEP-187.
  • This wires needs-ozone-repo / OZONE_REPO_CACHED for integration matrix legs, skips mvn clean when the repo is cached, excludes integration-test modules from the reactor (same as unit.sh), and increases RocksDB source download retries/timeouts.

Approach

Align main CI integration with the pattern documented in dev-support/ci/integration-timing-baseline.md and already used for flaky-test-check.

Test plan

https://issues.apache.org/jira/browse/HDDS-16600

Generated-by: Cursor (Auto)

Copilot AI balanced review requested due to automatic review settings October 11, 2026 05:17
…DB download

Wire needs-ozone-repo and OZONE_REPO_CACHED into integration matrix jobs,
skip full-reactor clean when the build job repo artifact is restored, and
exclude integration-test modules from the reactor like unit.sh to avoid
MDEP-187 unpack failures. Harden hdds-rocks-native RocksDB source wget
retries. Add a Develocity CI summary helper script.

Generated-by: Cursor (Auto)
Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: I3934df0500227bb4e0466646c11c800e762f86aa
@jojochuang jojochuang changed the title HDDS-16749. Reuse build ozone-repo on integration CI and harden RocksDB download HDDS-16600. Reuse build ozone-repo on integration CI and harden RocksDB download Oct 11, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: Iafd5aa3bb2aba3eac59e6118a96ae380e63b9dd2

Copilot AI 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.

🟡 Changes recommended

The reactor selection skips integration suites, while the retry and Develocity configurations contain ineffective or inaccurate settings.

4 open findings
What changed in this PR

Optimizes integration CI by reusing build artifacts and hardening dependency downloads.

Changes:

  • Reuses cached Ozone Maven artifacts in integration jobs.
  • Adjusts Maven reactor and cleanup behavior.
  • Adds RocksDB retries and a Develocity summary utility.
File Description
.github/​workflows/​check.yml Exposes repository-cache state to checks.
.github/​workflows/​ci.yml Enables artifact reuse for integration jobs.
hadoop-ozone/​dev-support/​checks/​junit.sh Adjusts cached integration execution.
hadoop-hdds/​rocks-native/​pom.xml Configures download resilience.
dev-support/​scripts/​develocity_ci_summary.py Adds CI build-scan reporting.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +62 to +68
INTEGRATION_REACTOR_PL=()
if [[ "${OZONE_REPO_CACHED}" == "true" ]] && [[ "${CHECK}" == "integration" ]]; then
args_str="$*"
if [[ "${args_str}" != *"-Ptest-filesystem"* ]] && [[ "${args_str}" != *"-Ptest-flaky"* ]] \
&& [[ "${args_str}" != *"-Dtest="* ]]; then
INTEGRATION_REACTOR_PL=(-pl '!:ozone-integration-test,!:ozone-integration-test-recon,!:ozone-integration-test-s3')
fi
) -> List[Dict[str, Any]]:
params = {
"fromInstant": str(from_instant),
"reverse": "true",
print(f"Failed: {failed} ({100.0 * failed / total:.1f}%)" if total else "Failed: 0")
if durations:
durations.sort()
mid = durations[len(durations) // 2]
Comment thread hadoop-hdds/rocks-native/pom.xml Outdated
<url>https://github.com/facebook/rocksdb/archive/refs/tags/v${rocksdb.source.version}.tar.gz</url>
<outputFileName>rocksdb-v${rocksdb.source.version}.tar.gz</outputFileName>
<outputDirectory>${project.build.directory}/rocksdb</outputDirectory>
<retryCount>5</retryCount>
jojochuang and others added 6 commits October 10, 2026 23:21
Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: I3558f3366fec0202d8d1655d3dfcda44b5278769
Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: I13a27185f700fd46baba3e98693b4bfc93e660c3
Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: I44d2c7a10769175bd8d6ae5ea3a27a444cbdcf14
Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: Idb6c1390130e6dce6643ac6c532993783541ecee
…e wget retries

Run integration splits against ozone-integration-test modules when the CI
repo artifact is cached, use download-maven-plugin retries parameter, and query
Develocity builds forward from the configured start instant.

Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: I4ae2099799fcc29a72ae02e13f9cf9f6bc0583a1
…e-repo

Scoped integration runs only build ozone-integration-test, so root
generate-resources for libhadoop in target/native-lib was skipped and
TestDomainSocketFactory failed on CI client.

Co-authored-by: Cursor <cursoragent@cursor.com>
Change-Id: I7e0c90bd5c4d0e3578d6a343a424c5f8ccd3dcdf
@adoroszlai

adoroszlai commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Please continue work in #11320 instead of opening a new PR. (Also, please don't ignore review comments.)

@adoroszlai adoroszlai closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants