Skip to content

ci: fix parallel build (-T) failure in pentaho-cdf-rca [DEVO-14414] - #1226

Open
cardosov wants to merge 1 commit into
masterfrom
fix/cdf-rca-reactor-edge
Open

ci: fix parallel build (-T) failure in pentaho-cdf-rca [DEVO-14414]#1226
cardosov wants to merge 1 commit into
masterfrom
fix/cdf-rca-reactor-edge

Conversation

@cardosov

Copy link
Copy Markdown

The unpack-plugins execution resolves pentaho:pentaho-cdf:zip via maven-dependency-plugin , which are resolved directly from the repositories at execution time and do not participate in the reactor dependency graph. Serial builds only worked by accident of the declaration order; under -T the two modules are considered independent and run concurrently, so pentaho-cdf's zip is not yet attached when cdf-rca reaches process-sources.

  • Declare pentaho-cdf explicitly (provided/zip) so the reactor orders it before this module.
  • Move the unpack from process-sources to generate-resources, matching the pattern used by cdf-js and cdf-webpackage.

The unpack-plugins execution resolves pentaho:pentaho-cdf:zip via
maven-dependency-plugin <artifactItems>, which are resolved directly from
the repositories at execution time and do not participate in the reactor
dependency graph. Serial builds only worked by accident of the <modules>
declaration order; under -T the two modules are considered independent and
run concurrently, so pentaho-cdf's zip is not yet attached when cdf-rca
reaches process-sources.

- Declare pentaho-cdf explicitly (provided/zip) so the reactor orders it
  before this module.
- Move the unpack from process-sources to generate-resources, matching the
  pattern used by cdf-js and cdf-webpackage.

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed OSS Licenses high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Malicious Packages high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@buildguy

Copy link
Copy Markdown

@buildguy

Copy link
Copy Markdown

✅ Build finished in 5m 20s

Build command:

mvn clean verify -B -e -Daudit -Djs.no.sandbox

👌 All tests passed!

Tests run: 71, Failures: 0, Skipped: 0    Test Results


ℹ️ This is an automatic message

@hitachivantarasonarqube

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are localized to build configuration and directly address the stated parallel build race by enforcing reactor ordering and consistent lifecycle binding.

Pull request overview

This PR fixes a Maven reactor ordering issue that caused pentaho-cdf-rca to race against the pentaho-cdf assembly during parallel builds (-T), by making the dependency explicit and aligning the unpack lifecycle phase with the established pattern in other assembly modules.

Changes:

  • Adds an explicit pentaho:pentaho-cdf (type zip, scope provided) dependency to create a reactor build-order edge.
  • Moves the maven-dependency-plugin unpack-plugins execution from process-sources to generate-resources.
File summaries
File Description
assemblies/cdf-rca/pom.xml Adds an explicit reactor dependency on pentaho-cdf and rebinds the unpack execution to generate-resources to avoid parallel build races.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@cardosov cardosov changed the title Fix parallel build (-T) failure in pentaho-cdf-rca ci: fix parallel build (-T) failure in pentaho-cdf-rca [DEVO-14414] Aug 31, 2026
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.

3 participants