Skip to content

Commit

Permalink
storage: Delete opencga-storage-hadoop-deps. Fix profiles. #TASK-5240
Browse files Browse the repository at this point in the history
  • Loading branch information
j-coll committed Jan 29, 2024
1 parent de30db8 commit 4371bf2
Show file tree
Hide file tree
Showing 56 changed files with 898 additions and 4,514 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
with:
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6'
maven_opts: -Phdp3.1,RClient -Dopencga.war.name=opencga -Dcheckstyle.skip

test:
uses: ./.github/workflows/test-analysis.yml
Expand All @@ -24,7 +24,7 @@ jobs:
uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@develop
needs: test
with:
maven_opts: -P storage-hadoop,hdp3.1 -Dopencga.war.name=opencga
maven_opts: -P hdp3.1 -Dopencga.war.name=opencga
secrets: inherit

deploy-docker:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-aws-emr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
with:
maven_opts: -P storage-hadoop,emr6.1 -Dopencga.war.name=opencga
maven_opts: -Pemr6.1 -Dopencga.war.name=opencga

deploy-docker:
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
with:
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6'
maven_opts: -P hdp3.1,RClient -Dopencga.war.name=opencga -Dcheckstyle.skip

delete-docker:
uses: opencb/java-common-libs/.github/workflows/delete-docker-hub-workflow.yml@develop
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
build:
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
with:
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6'
maven_opts: -P hdp3.1,RClient -Dopencga.war.name=opencga -Dcheckstyle.skip

deploy-maven:
uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@develop
needs: build
with:
maven_opts: -P storage-hadoop,hdp3.1 -Dopencga.war.name=opencga
maven_opts: -P hdp3.1 -Dopencga.war.name=opencga
secrets: inherit

deploy-docker:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
with:
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6'
maven_opts: -Phdp3.1,RClient -Dopencga.war.name=opencga -Dcheckstyle.skip

test:
uses: ./.github/workflows/test-analysis.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -T 2 clean install -P storage-hadoop,hdp3.1,${{ inputs.test_profile }} -DskipTests -Dcheckstyle.skip org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=opencb_opencga
run: mvn -T 2 clean install -P hdp3.1,${{ inputs.test_profile }} -DskipTests -Dcheckstyle.skip org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=opencb_opencga

test:
name: Execute JUnit and Jacoco tests
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
mongodb-version: 6.0
mongodb-replica-set: rs-test
- name: Run Junit tests
run: mvn -B verify surefire-report:report --fail-never -P storage-hadoop,hdp3.1,${{ inputs.test_profile }} -Dcheckstyle.skip -Popencga-storage-hadoop-deps -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6' ${{ inputs.mvn_opts }}
run: mvn -B verify surefire-report:report --fail-never -P hdp3.1,${{ inputs.test_profile }} -Dcheckstyle.skip ${{ inputs.mvn_opts }}
- name: Publish Test Report
uses: scacap/action-surefire-report@v1
env:
Expand Down
34 changes: 21 additions & 13 deletions opencga-analysis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,33 @@
</dependency>
<dependency>
<groupId>org.opencb.opencga</groupId>
<artifactId>${opencga-storage-hadoop-deps.artifactId}</artifactId>
<classifier>shaded</classifier>
<artifactId>opencga-storage-hadoop-${opencga-hadoop-shaded.id}</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opencb.opencga</groupId>
<artifactId>${opencga-storage-hadoop-deps.artifactId}</artifactId>
<version>${project.parent.version}</version>
<classifier>tests</classifier>
<groupId>org.opencb.opencga.hadoop.thirdparty</groupId>
<artifactId>${opencga-hadoop-shaded.artifactId}</artifactId>
<version>${opencga.hadoop.thirdparty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opencb.opencga.hadoop.thirdparty</groupId>
<artifactId>${opencga-hadoop-shaded.artifactId}</artifactId>
<version>${opencga.hadoop.thirdparty.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opencb.opencga</groupId>
Expand All @@ -105,7 +112,6 @@
<dependency>
<groupId>org.opencb.commons</groupId>
<artifactId>commons-datastore-mongodb</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opencb.commons</groupId>
Expand Down Expand Up @@ -159,10 +165,6 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
Expand Down Expand Up @@ -232,10 +234,11 @@
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-test-framework</artifactId>
<scope>test</scope>
</dependency>

<!-- TODO Review -->
<dependency>
<!-- Need dependency for running hadoop tests. -->
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>test</scope>
Expand Down Expand Up @@ -271,12 +274,17 @@
<!-- This plugin is having a weird issue with biodata libraries. It fails if biodata is declared before. -->
<ignoredUsedUndeclaredDependencies>
<ignoredUsedUndeclaredDependency>
com.google.code.findbugs:jsr305:jar:3.0.2
com.google.code.findbugs:jsr305
</ignoredUsedUndeclaredDependency>
</ignoredUsedUndeclaredDependencies>
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>*</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
<ignoredNonTestScopedDependencies>
<ignoredNonTestScopedDependency>
org.opencb.commons:commons-datastore-mongodb
</ignoredNonTestScopedDependency>
</ignoredNonTestScopedDependencies>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.opencb.opencga.analysis.clinical.exomiser;

import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.opencb.biodata.models.clinical.ClinicalAcmg;
import org.opencb.biodata.models.clinical.ClinicalDiscussion;
import org.opencb.biodata.models.clinical.ClinicalProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@

package org.opencb.opencga.analysis.family.qc;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.math3.ode.nonstiff.RungeKuttaFieldIntegrator;
import org.apache.commons.lang3.StringUtils;
import org.opencb.biodata.models.clinical.qc.RelatednessReport;
import org.opencb.biodata.models.clinical.qc.RelatednessScore;
import org.opencb.biodata.models.variant.avro.VariantType;
Expand All @@ -34,19 +32,16 @@
import org.opencb.opencga.analysis.variant.relatedness.RelatednessAnalysis;
import org.opencb.opencga.analysis.wrappers.plink.PlinkWrapperAnalysisExecutor;
import org.opencb.opencga.catalog.exceptions.CatalogException;
import org.opencb.opencga.core.common.JacksonUtils;
import org.opencb.opencga.core.exceptions.ToolException;
import org.opencb.opencga.core.models.family.Family;
import org.opencb.opencga.core.models.individual.Individual;
import org.opencb.opencga.core.models.sample.Sample;
import org.opencb.opencga.storage.core.exceptions.StorageEngineException;
import org.opencb.opencga.storage.core.variant.adaptors.VariantQueryParam;
import org.opencb.opencga.storage.core.variant.query.VariantQueryUtils;

import java.io.*;
import java.net.URL;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static Collection<URL> getUrls() {
Collection<URL> urls = new LinkedList<>();
for (URL url : ClasspathHelper.forPackage("org.opencb.opencga")) {
String name = url.getPath().substring(url.getPath().lastIndexOf('/') + 1);
if (name.isEmpty() || (name.contains("opencga") && !name.contains("opencga-storage-hadoop-deps"))) {
if (name.isEmpty() || (name.contains("opencga") && !name.contains("opencga-hadoop-shaded"))) {
urls.add(url);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.opencb.opencga.analysis.family;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.*;
import org.junit.rules.ExpectedException;
import org.opencb.biodata.models.clinical.Disorder;
Expand Down
4 changes: 2 additions & 2 deletions opencga-app/app/cloud/docker/docker-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def build():


def tag_latest(image):
if "hdp" in tag or "dev" in tag:
if "hdi" in tag or "emr" in tag or "dev" in tag or "SNAPSHOT" in tag or "TASK" in tag:
print("Don't use tag " + tag + " as latest")
return
if server:
Expand Down Expand Up @@ -160,7 +160,7 @@ def delete():
build_folder = str(Path(__file__).resolve().parents[2])

# 2. Set docker tag to default value if not set
if args.tag is not None:
if args.tag is not None and not args.tag == "":
tag = args.tag
else:
# Read OpenCGA version from git.properties
Expand Down
111 changes: 0 additions & 111 deletions opencga-app/app/misc/scripts/opencga-storage-hadoop.sh

This file was deleted.

Loading

0 comments on commit 4371bf2

Please sign in to comment.