Skip to content

Commit

Permalink
Add pytorch-lightning to GATK conda env, temporarily disable jacoco i…
Browse files Browse the repository at this point in the history
…n build.gradle
  • Loading branch information
droazen committed Sep 27, 2024
1 parent 22902a1 commit 9e8c3da
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 36 deletions.
27 changes: 14 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id "application" // provides installDist
id 'maven-publish'
id 'signing'
id "jacoco"
// id "jacoco"
id "de.undercouch.download" version "5.4.0" //used for downloading GSA lib
id "com.github.johnrengelman.shadow" version "8.1.1" //used to build the shadow and sparkJars
id "com.github.ben-manes.versions" version "0.12.0" //used for identifying dependencies that need updating
Expand Down Expand Up @@ -625,18 +625,19 @@ task bundle(type: Zip) {
}
}

jacocoTestReport {
dependsOn test

group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
getAdditionalSourceDirs().from(sourceSets.main.allJava.srcDirs)

reports {
xml.required = true
html.required = true
}
}
//jacocoTestReport {
// dependsOn test
//
// group = "Reporting"
// description = "Generate Jacoco coverage reports after running tests."
// getAdditionalSourceDirs().from(sourceSets.main.allJava.srcDirs)
//
// reports {
// xml.required = true
// html.required = true
// }
//}
//}

task condaStandardEnvironmentDefinition(type: Copy) {
from "scripts"
Expand Down
46 changes: 23 additions & 23 deletions scripts/docker/dockertest.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

plugins {
id "java" // set up default java compile and test tasks
id "jacoco"
// id "jacoco"
}

repositories {
Expand Down Expand Up @@ -113,9 +113,9 @@ def getJVMArgs(runtimeAddOpens, testAddOpens) {

test {
jvmArgs = getJVMArgs(runtimeAddOpens, testAddOpens)
jacoco {
jvmArgs = getJVMArgs(runtimeAddOpens, testAddOpens)
}
// jacoco {
// jvmArgs = getJVMArgs(runtimeAddOpens, testAddOpens)
// }
}

task testOnPackagedReleaseJar(type: Test){
Expand Down Expand Up @@ -153,22 +153,22 @@ task testOnPackagedReleaseJar(type: Test){

// Task intended to collect coverage data from testOnPackagedReleaseJar executed inside the docker image
// the classpath for these tests is set at execution time for testOnPackagedReleaseJar
task jacocoTestReportOnPackagedReleaseJar(type: JacocoReport) {
String sourceFiles = "$System.env.SOURCE_DIR"
String testClassesUnpacked = "$System.env.CP_DIR"

dependsOn testOnPackagedReleaseJar
executionData testOnPackagedReleaseJar
additionalSourceDirs.setFrom(sourceSets.main.allJava.srcDirs)

sourceDirectories.setFrom(sourceFiles)
classDirectories.setFrom(testClassesUnpacked)

group = "Reporting"
description = "Generate Jacoco coverage reports after running tests inside the docker image."

reports {
xml.required = true
html.required = true
}
}
//task jacocoTestReportOnPackagedReleaseJar(type: JacocoReport) {
// String sourceFiles = "$System.env.SOURCE_DIR"
// String testClassesUnpacked = "$System.env.CP_DIR"
//
// dependsOn testOnPackagedReleaseJar
// executionData testOnPackagedReleaseJar
// additionalSourceDirs.setFrom(sourceSets.main.allJava.srcDirs)
//
// sourceDirectories.setFrom(sourceFiles)
// classDirectories.setFrom(testClassesUnpacked)
//
// group = "Reporting"
// description = "Generate Jacoco coverage reports after running tests inside the docker image."
//
// reports {
// xml.required = true
// html.required = true
// }
//}
1 change: 1 addition & 0 deletions scripts/gatkcondaenv.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies:
- conda-forge::scipy=1.11.4
- conda-forge::h5py=3.10.0
- conda-forge::pytorch=2.1.0=*mkl*100
- conda-forge::pytorch-lightning=2.4.0 # supports Pytorch >= 2.1 and <= 2.4
- conda-forge::scikit-learn=1.3.2
- conda-forge::matplotlib=3.8.2
- conda-forge::pandas=2.1.3
Expand Down

0 comments on commit 9e8c3da

Please sign in to comment.