-
Notifications
You must be signed in to change notification settings - Fork 26
Portpatch 6.1.0 -> 7.0.0-SNAPSHOT #123
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
Open
juanfeSanahuja
wants to merge
62
commits into
develop
Choose a base branch
from
TASK-7786
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
ea7bc51
Prepare next release 5.5.0-SNAPSHOT
juanfeSanahuja 30c341f
Prepare release 6.1.0 XB-3.1.0 #TASK-7456
juanfeSanahuja 355e273
lib: Add async command execution. Allow stdin forwarding. #TASK-7524
j-coll 64fbb5f
lib: Remove unused constant #TASK-7524
j-coll 5b94b55
Merge branch 'TASK-7693' into TASK-7693-rel
juanfeSanahuja b82af6d
Merge pull request #110 from opencb/TASK-7693-rel
juanfeSanahuja c2490e9
Prepare release 5.5.0
juanfeSanahuja 804162d
Prepare next release 5.6.0-SNAPSHOT
juanfeSanahuja e1b66f8
Merge branch 'release-6.x.x' into TASK-7524
pfurio b95a575
Merge pull request #109 from opencb/TASK-7524
jtarraga d993fdd
Prepare release 5.6.0
juanfeSanahuja 995e70f
Prepare next release 5.7.0-SNAPSHOT
juanfeSanahuja eb02517
pom: Update distributionManagement #TASK-7783
juanfeSanahuja 55a2603
Prepare release 5.6.0
juanfeSanahuja 8b84ae6
Prepare next release 5.7.0-SNAPSHOT
juanfeSanahuja 68138db
pom: Update distributionManagement #TASK-7783
juanfeSanahuja cc3aef6
cicd: Rewrite the settings.xml for maven #TASK-7783
juanfeSanahuja c48c284
cicd: delete runner.tool_cache #TASK-7783
juanfeSanahuja 11e8c1f
cicd: fix base64 error #TASK-7783
juanfeSanahuja 51dd144
cicd: Configure GPG for loopback pinentry #TASK-7783
juanfeSanahuja a02546e
cicd: Rename server id to ossrh #TASK-7783
juanfeSanahuja 5db1c8d
cicd: Update url to server id to ossrh #TASK-7783
juanfeSanahuja 92e5a11
cicd: Deleted org.sonatype.plugins:nexus-staging-maven-plugin and dis…
juanfeSanahuja 521ae4e
cicd: Force the snapshot endpoint and authenticate there #TASK-7783
juanfeSanahuja 9b4ba6c
cicd: the plugin will use distributionManagement when your version en…
juanfeSanahuja 340a1a4
cicd: Unified publishing plugin for Sonatype Central releases and sna…
juanfeSanahuja f31ebc6
cicd: Unified publishing plugin using distribution management for Son…
juanfeSanahuja c5d89af
cicd: Delete snapshot url #TASK-7783
juanfeSanahuja 959ab47
cicd: Delete snapshot url #TASK-7783
juanfeSanahuja 8897b73
cicd: Delete snapshot url #TASK-7783
juanfeSanahuja f96de9c
cicd: Update distributionManagement #TASK-7783
juanfeSanahuja 7d3df08
cicd: Update distributionManagement #TASK-7783
juanfeSanahuja 1d8d71f
cicd: Migrate deploy sonatype maven plugin to central-publishing-mave…
juanfeSanahuja 40d5e34
cicd: Delete space after P to specify profiles #TASK-7783
juanfeSanahuja 3f6b804
cicd: Copy distributionmanagement inside the profile tag #TASK-7783
juanfeSanahuja 821fcf8
Prepare release 5.6.0
juanfeSanahuja ecef6b6
Prepare next release 5.7.0-SNAPSHOT
juanfeSanahuja 6cdfa9c
cicd: FIX mvn repository profile #TASK-7783
juanfeSanahuja b46c060
cicd: FIX maven-javadoc-plugin #TASK-7783
juanfeSanahuja ac6d240
Prepare release 5.6.0
juanfeSanahuja 8e4cb89
Prepare next release 5.7.0-SNAPSHOT
juanfeSanahuja cffe317
cicd: FIX Project name is missing #TASK-7783
juanfeSanahuja 19a11f4
Prepare release 5.6.0
juanfeSanahuja 92e40df
Preparing port patch from version 5.6.0 to 6.1.0-SNAPSHOT
juanfeSanahuja 957ac3b
Merge branch 'release-6.x.x' into TASK-7843
juanfeSanahuja 12e81e5
Merge pull request #119 from opencb/TASK-7843
juanfeSanahuja 77f2812
datastore: add smart splitter that would consider quotes, #TASK-7881
pfurio 6a637e3
Merge branch 'release-6.x.x' into TASK-7881
pfurio 19e2c23
Delete cellbase references in Xetabase test #TASK-7884
juanfeSanahuja 4b1e90a
Delete cellbase references in Xetabase test #TASK-7883
juanfeSanahuja a1c16f4
Merge branch 'TASK-7883' of github.com:opencb/java-common-libs into T…
juanfeSanahuja 024ed22
Update test reference to use the current branch workflow #TASK-7883
juanfeSanahuja 4a2a035
Update test reference to use the current branch workflow #TASK-7883
juanfeSanahuja 8f76683
Add sam tolls because it is necessary for test #TASK-7883
juanfeSanahuja 5b05d36
Add sam tolls because it is necessary for test #TASK-7883
juanfeSanahuja 335899c
Merge pull request #120 from opencb/TASK-7881
j-coll f3ef06b
Merge branch 'release-6.x.x' into TASK-7883
juanfeSanahuja 6c0efb4
Merge pull request #121 from opencb/TASK-7883
juanfeSanahuja f6992e9
Prepare release 6.1.0
juanfeSanahuja 06b3582
Preparing port patch from version 6.1.0 to 7.0.0-SNAPSHOT
juanfeSanahuja fb371b3
Merge branch 'develop' into TASK-7786
juanfeSanahuja 1331e2d
Merge branch 'develop' into TASK-7786
juanfeSanahuja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
- name: Deploy to Maven Central repository | ||
run: mvn clean deploy -DskipTests -P deploy-maven ${{ inputs.maven_opts }} --no-transfer-progress | ||
run: mvn clean deploy -DskipTests -Pdeploy-maven ${{ inputs.maven_opts }} --no-transfer-progress | ||
env: | ||
MAVEN_NEXUS_USER: ${{ secrets.MAVEN_USER_TOKEN }} | ||
MAVEN_NEXUS_PASSWORD: ${{ secrets.MAVEN_PASSWORD_TOKEN }} | ||
|
@@ -44,6 +44,6 @@ | |
distribution: 'temurin' | ||
java-version: '8' | ||
- name: Deploy to GitHub Packages repository | ||
run: mvn clean deploy -DskipTests -P deploy-github ${{ inputs.maven_opts }} --no-transfer-progress | ||
run: mvn clean deploy -DskipTests -Pdeploy-github ${{ inputs.maven_opts }} --no-transfer-progress | ||
Check failureCode scanning / SonarCloud GitHub Actions should not be vulnerable to script injections High
Change this workflow to not use user-controlled data directly in a run block. See more on SonarQube Cloud
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,17 +77,6 @@ | |
with: | ||
mongodb-version: 6.0 | ||
mongodb-replica-set: rs-test | ||
- name: K8s Tunnel MongoDB | ||
run: | | ||
wget https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl | ||
chmod +x ./kubectl | ||
echo "${{ secrets.AZURE_KUBE_CONFIG }}" > admin.conf | ||
./kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27018:27017 --kubeconfig ./admin.conf & | ||
- name: DockerHub login | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ env.DOCKER_HUB_USER }} | ||
password: ${{ env.DOCKER_HUB_PASSWORD }} | ||
- name: Install sshpass | ||
run: sudo apt-get install sshpass | ||
- name: Add SSH Host to known_hosts | ||
|
@@ -97,11 +86,11 @@ | |
env: | ||
SSH_HOST: ${{ env.SSH_HOST }} | ||
SSH_PORT: ${{ env.SSH_PORT }} | ||
- name: Run all OpenCB Junit tests, ie. java-common-libs, biodata, cellbase, opencga and opencga-enterprise | ||
- name: Run all OpenCB Junit tests, ie. java-common-libs, biodata, opencga and opencga-enterprise | ||
run: | | ||
cd opencga-enterprise | ||
ln -s ../opencga opencga-home | ||
./build.sh -t -l runShortTests -b -s -T ${{ inputs.task }} -c localhost:27018 -H hdp3.1 | ||
./build.sh -t -l runShortTests -b -s -T ${{ inputs.task }} | ||
Check failureCode scanning / SonarCloud GitHub Actions should not be vulnerable to script injections High test
Change this workflow to not use user-controlled data directly in a run block. See more on SonarQube Cloud
|
||
- name: Upload reports results to Github | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...-datastore-mongodb/src/test/java/org/opencb/commons/datastore/mongodb/SmartSplitTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package org.opencb.commons.datastore.mongodb; | ||
|
||
import org.junit.Test; | ||
import java.util.List; | ||
import static org.junit.Assert.assertEquals; | ||
|
||
public class SmartSplitTest { | ||
|
||
@Test | ||
public void testSmartSplitWithQuotedCommaValues() { | ||
String input = "\"a \",\" b\",\" c \""; | ||
List<String> result = MongoDBQueryUtils.smartSplit(input, ","); | ||
|
||
assertEquals(3, result.size()); | ||
assertEquals("a", result.get(0)); | ||
assertEquals("b", result.get(1)); | ||
assertEquals("c", result.get(2)); | ||
} | ||
|
||
@Test | ||
public void testSmartSplitWithQuotedSemicolonValues() { | ||
String input = "\"a \";\" b\";\" c \""; | ||
List<String> result = MongoDBQueryUtils.smartSplit(input, ";"); | ||
|
||
assertEquals(3, result.size()); | ||
assertEquals("a", result.get(0)); | ||
assertEquals("b", result.get(1)); | ||
assertEquals("c", result.get(2)); | ||
} | ||
|
||
@Test | ||
public void testSmartSplitWithNonQuotedValues() { | ||
String input = "a,b,c"; | ||
List<String> result = MongoDBQueryUtils.smartSplit(input, ","); | ||
|
||
assertEquals(3, result.size()); | ||
assertEquals("a", result.get(0)); | ||
assertEquals("b", result.get(1)); | ||
assertEquals("c", result.get(2)); | ||
} | ||
|
||
@Test | ||
public void testSmartSplitWithNonQuotedValuesAndSpaces() { | ||
String input = "a, b,c "; | ||
List<String> result = MongoDBQueryUtils.smartSplit(input, ","); | ||
|
||
assertEquals(3, result.size()); | ||
assertEquals("a", result.get(0)); | ||
assertEquals("b", result.get(1)); | ||
assertEquals("c", result.get(2)); | ||
} | ||
|
||
@Test | ||
public void testSmartSplitWithMixedValues() { | ||
String input = "\"a, with comma\",b,\"c\""; | ||
List<String> result = MongoDBQueryUtils.smartSplit(input, ","); | ||
|
||
assertEquals(3, result.size()); | ||
assertEquals("a, with comma", result.get(0)); | ||
assertEquals("b", result.get(1)); | ||
assertEquals("c", result.get(2)); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / SonarCloud
GitHub Actions should not be vulnerable to script injections High