Skip to content

CI improvements#10

Merged
EnricoMi merged 2 commits intoarmadaproject:masterfrom
EnricoMi:ci-improve
Mar 18, 2025
Merged

CI improvements#10
EnricoMi merged 2 commits intoarmadaproject:masterfrom
EnricoMi:ci-improve

Conversation

@EnricoMi
Copy link
Copy Markdown
Collaborator

@EnricoMi EnricoMi commented Mar 17, 2025

  • Caches MVN dependencies
  • Fetches MVN dependencies before compilation to improve log readability
  • Builds Docker image

Signed-off-by: Enrico Minack <github@enrico.minack.dev>
- spark_version: "3.5.5"
scala_version: "2.13.8"
- spark_version: "4.0.1-SNAPSHOT"
scala_version: "2.13.8"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Right now, we don't have good integration tests that confirm that all these different version work, (even if they happen to build). Those tests will hopefully get added as a part of: G-Research/spark#45

I have run the demo on 3.3.4, 3.5.3 and 4.1.0 snapshot with the default scala versions, so I believe those to work.

I'm hesitant to add all these other versions until they are tested, because it will be harder for people to know what works. What do you think?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For the time being, we can setup the demo to run as integration tests in the CI.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have moved the new Spark versions into #11.

run: mvn --batch-mode dependency:go-offline
- name: Build
run: mvn install
run: mvn --batch-mode install No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How hard would it be to add a call to?:

scripts/createImage.sh -s "sparkhome"

that script fails in master right now with spark 3.5, because of some pom changes in our master.

that failure would have been caught earlier if we could have tested it here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have added that.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Scala 2.13 now successfully builds the image

@EnricoMi EnricoMi force-pushed the ci-improve branch 7 times, most recently from 826eeae to ae8d24e Compare March 17, 2025 21:32
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Copy link
Copy Markdown
Collaborator

@GeorgeJahad GeorgeJahad left a comment

Choose a reason for hiding this comment

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

This looks good to me, but out of curiosity, why not build the "-snapshot" versions?

@EnricoMi
Copy link
Copy Markdown
Collaborator Author

Could be done if the right branch would be checked out. Room for later improvement.

@EnricoMi EnricoMi merged commit 32a68a1 into armadaproject:master Mar 18, 2025
6 checks passed
@EnricoMi EnricoMi deleted the ci-improve branch March 18, 2025 16:52
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.

2 participants