Skip to content

Conversation

@andygrove
Copy link
Member

Summary

  • Remove -pl spark -am flags from Maven compile in docs/build.sh - this was causing Maven to look for comet-common in remote repos instead of building it locally
  • Add setup-java step to the docs workflow since it runs Maven compile

Fixes https://github.com/apache/datafusion-comet/actions/runs/21340755149/job/61419724609

Test plan

  • Verify docs workflow passes after merge

🤖 Generated with Claude Code

The docs workflow was failing because:
1. Using `-pl spark -am` in Maven compile caused it to look for
   comet-common in remote repos instead of building it locally
2. Missing Java setup step while running Maven compile

Changes:
- Remove `-pl spark -am` flags from Maven compile command
- Add setup-java step with Java 17 and Maven cache

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@andygrove andygrove changed the title fix: Fix docs workflow dependency resolution failure build: Fix docs workflow dependency resolution failure Jan 25, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.13%. Comparing base (f09f8af) to head (65f17b0).
⚠️ Report is 886 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3275      +/-   ##
============================================
+ Coverage     56.12%   60.13%   +4.00%     
- Complexity      976     1456     +480     
============================================
  Files           119      175      +56     
  Lines         11743    16085    +4342     
  Branches       2251     2665     +414     
============================================
+ Hits           6591     9673    +3082     
- Misses         4012     5066    +1054     
- Partials       1140     1346     +206     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andygrove andygrove marked this pull request as draft January 26, 2026 14:01
@andygrove
Copy link
Member Author

I need to test this more

Add generate-docs Maven profile that can be explicitly enabled to
generate documentation content during the package phase. This replaces
the previous approach of running separate compile and exec:java commands.

Changes:
- Add generate-docs profile to spark/pom.xml that runs GenerateDocs
- Update dev/generate-release-docs.sh to use the profile
- Update docs/build.sh to use the profile with custom temp path

The profile approach:
- Avoids dependency resolution issues by running in the package phase
- Only generates docs when explicitly requested with -Pgenerate-docs
- Does not run during normal builds by default
- Works for both release docs and docs website builds

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@andygrove andygrove marked this pull request as ready for review January 26, 2026 14:30
@andygrove
Copy link
Member Author

I need to test this more

I reverted to using maven and added a specific profile for generating docs. This is ready for review now.

Copy link
Contributor

@mbutrovich mbutrovich left a comment

Choose a reason for hiding this comment

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

Thanks for sticking with this, @andygrove!

@andygrove andygrove merged commit 01afc54 into apache:main Jan 26, 2026
130 checks passed
@andygrove andygrove deleted the fix-docs-workflow branch January 26, 2026 15:48
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