Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#63 create build matrix and build action #64

Merged
merged 59 commits into from
Aug 16, 2023

Conversation

TebaleloS
Copy link
Collaborator

@TebaleloS TebaleloS commented Jul 21, 2023

Notes

  • Added sbt build matrix
  • Added Jacoco code coverage configs

Closes #63

@TebaleloS TebaleloS self-assigned this Jul 21, 2023
@TebaleloS TebaleloS marked this pull request as ready for review July 26, 2023 10:19
@miroslavpojer
Copy link
Collaborator

miroslavpojer commented Jul 27, 2023

I am missing Jacoco GH Action. Support for Jacoco itself has been add, but GH Action workflow is missing. It should be added together.
Please, decide if mention Jacoco in root Readme file.
Get inspiration in atum repository.

Copy link
Collaborator

@miroslavpojer miroslavpojer left a comment

Choose a reason for hiding this comment

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

  • pulled
  • built
  • test ran
  • code review
  • jacoco reports generated
  • Jacoco optional report comment generated by GHAction - Missing

Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % Provided,
"org.apache.spark" %% "spark-sql" % sparkVersion % Provided,
"com.typesafe" % "config" % typesafeVersion, //TODO to check if used
Copy link
Collaborator

Choose a reason for hiding this comment

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

Found TODO in this file.
In the code there are 4 another TODOs - these should be updated with Issue where is planned to solved them.

project/JacocoSetup.scala Outdated Show resolved Hide resolved
project/plugins.sbt Outdated Show resolved Hide resolved
project/plugins.sbt Outdated Show resolved Hide resolved
.github/workflows/release.yml Show resolved Hide resolved
version.sbt Outdated Show resolved Hide resolved
project/plugins.sbt Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

JaCoCo server module code coverage report - scala 2.12.12

File Coverage [0%]
package.scala 0%
Total Project Coverage 12.45%

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

JaCoCo agent module code coverage report - spark:2 - scala 2.12.12

File Coverage [69.28%]
MeasureResult.scala 100% 🍏
AtumAgent.scala 100% 🍏
AtumContext.scala 95.28% 🍏
Measurement.scala 54.61%
MeasurementProcessor.scala 0%
Total Project Coverage 69.28%

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

JaCoCo server module code coverage report - scala 2.12.12

File Coverage [0%]
package.scala 0%
Total Project Coverage 12.45%

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

JaCoCo agent module code coverage report - spark:2 - scala 2.12.12

File Coverage [69.28%]
MeasureResult.scala 100% 🍏
AtumAgent.scala 100% 🍏
AtumContext.scala 95.28% 🍏
Measurement.scala 54.61%
MeasurementProcessor.scala 0%
Total Project Coverage 69.28%

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

JaCoCo server module code coverage report - scala 2.12.12

File Coverage [0%]
package.scala 0%
Total Project Coverage 12.45%

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

JaCoCo agent module code coverage report - spark:2 - scala 2.12.12

File Coverage [69.28%]
MeasureResult.scala 100% 🍏
AtumAgent.scala 100% 🍏
AtumContext.scala 95.28% 🍏
Measurement.scala 54.61%
MeasurementProcessor.scala 0%
Total Project Coverage 69.28%

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

JaCoCo server module code coverage report - scala 2.12.12

File Coverage [0%]
package.scala 0%
Total Project Coverage 12.45%

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

JaCoCo agent module code coverage report - spark:2 - scala 2.12.12

File Coverage [69.28%]
MeasureResult.scala 100% 🍏
AtumAgent.scala 100% 🍏
AtumContext.scala 95.28% 🍏
Measurement.scala 54.61%
MeasurementProcessor.scala 0%
Total Project Coverage 69.28%

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

JaCoCo server module code coverage report - scala 2.12.12

File Coverage [0%]
package.scala 0%
Total Project Coverage 12.45%

)
.enablePlugins(TomcatPlugin)
.enablePlugins(AutomateHeaderPlugin)
.jvmPlatform(scalaVersions = Seq(scala212))
Copy link
Collaborator

Choose a reason for hiding this comment

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

won't scala 2.11 be supported?

Copy link
Collaborator Author

@TebaleloS TebaleloS Aug 8, 2023

Choose a reason for hiding this comment

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

It will be supported but again, 2.12 should be the default version.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good for now. 2.13 should be added eventually too.

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

JaCoCo agent module code coverage report - spark:2 - scala 2.12.12

File Coverage [69.28%]
MeasureResult.scala 100% 🍏
AtumAgent.scala 100% 🍏
AtumContext.scala 95.28% 🍏
Measurement.scala 54.61%
MeasurementProcessor.scala 0%
Total Project Coverage 69.28%

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

JaCoCo server module code coverage report - scala 2.12.12

File Coverage [0%]
package.scala 0%
Total Project Coverage 12.45%

@@ -0,0 +1,23 @@
# Release
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add the reference to this file into README.md like we have it in other libs

)
.enablePlugins(TomcatPlugin)
.enablePlugins(AutomateHeaderPlugin)
.jvmPlatform(scalaVersions = Seq(scala212))
Copy link
Contributor

Choose a reason for hiding this comment

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

Good for now. 2.13 should be added eventually too.

addSbtPlugin("za.co.absa.sbt" % "sbt-jacoco" % "3.4.1-absa.4" from "https://github.com/AbsaOSS/sbt-jacoco/releases/download/3.4.1-absa.4/sbt-jacoco-3.4.1-absa.4.jar")
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.2")

// To add release plugin
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add this above the JaCoco plugins block. It's kind of lost here.

Copy link
Contributor

@benedeki benedeki left a comment

Choose a reason for hiding this comment

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

Nice, about the extra part of code coverage 😎

@TebaleloS TebaleloS merged commit 1bcaa3d into master Aug 16, 2023
4 of 5 checks passed
@TebaleloS TebaleloS deleted the feature/#63-Create-build-matrix-and-build-action branch August 16, 2023 11:15
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.

Create build matrix and build action
4 participants