-
-
Notifications
You must be signed in to change notification settings - Fork 840
fix: restore E2E stability and address regressions (#11887) #11996
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
purvanshjoshi
wants to merge
9
commits into
cBioPortal:master
Choose a base branch
from
purvanshjoshi:fix/e2e-regressions-and-stability
base: master
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
9 commits
Select commit
Hold shift + click to select a range
60900d1
fix: restore E2E stability by fixing NPEs, permission logic regressio…
purvanshjoshi 2fa5e4e
Merge remote-tracking branch 'upstream/master' into fix/e2e-regressio…
purvanshjoshi 2e64a1b
fix: address Copilot review - harden download permission bypass, add …
purvanshjoshi b6414df
fix: resolve ClickHouse E2E startup crash by removing download_groups…
purvanshjoshi 23faf0b
fix: resolve CircleCI 500 errors by correcting MyBatis collection map…
purvanshjoshi aad6ae0
fix: ensure alterationEventTypes is never null in AlterationEnrichmen…
purvanshjoshi 31217e3
Merge branch 'master' into fix/e2e-regressions-and-stability
purvanshjoshi 2311863
Merge branch 'master' into fix/e2e-regressions-and-stability
purvanshjoshi 0d35714
Merge upstream master
purvanshjoshi 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
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| name: Integration tests | ||
| on: [push, pull_request] | ||
| jobs: | ||
| build: | ||
| name: Integration tests | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| PORTAL_SOURCE_DIR: /home/runner/work/cbioportal/cbioportal/cbioportal | ||
| PORTAL_COMPOSE_DIR: /home/runner/work/cbioportal/cbioportal/cbioportal-docker-compose | ||
| PORTAL_INFO_DIR: /home/runner/work/cbioportal/cbioportal/portalInfo | ||
| steps: | ||
| - name: 'Checkout cbioportal repo' | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| path: ./cbioportal | ||
| - name: 'Set up JDK 21' | ||
| uses: oracle-actions/setup-java@v1 | ||
| with: | ||
| website: oracle.com | ||
| release: 21 | ||
| - name: 'Cache Maven packages' | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.m2 | ||
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
| restore-keys: ${{ runner.os }}-m2 | ||
| - name: 'Copy application.properties' | ||
| working-directory: ./cbioportal | ||
| run: | | ||
| cp src/main/resources/application.properties.EXAMPLE src/main/resources/application.properties | ||
| - name: 'Build cbioportal' | ||
| working-directory: ./cbioportal | ||
| run: | | ||
| echo "<settings><servers><server><id>github</id><username>${{ github.actor }}</username><password>${{ secrets.GITHUB_TOKEN }}</password></server></servers></settings>" > settings.xml | ||
| mvn --settings settings.xml -DskipTests clean install | ||
| - name: 'Checkout cbioportal-docker-compose repo' | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: cbioportal/cbioportal-docker-compose | ||
| path: ./cbioportal-docker-compose | ||
| - name: 'Initialize cbioportal-docker-compose' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: | | ||
| cd ./data && ./init.sh && rm -rf ./studies/* && cd ../config && \ | ||
| cat $PORTAL_SOURCE_DIR/src/main/resources/application.properties | \ | ||
| sed 's|spring.datasource.url=.*|spring.datasource.url=jdbc:mysql://cbioportal-database:3306/cbioportal?useSSL=false|' | \ | ||
| sed 's|spring.datasource.username=.*|spring.datasource.username=cbio_user|' | \ | ||
| sed 's|spring.datasource.password=.*|spring.datasource.password=somepassword|' | \ | ||
| sed 's|session.service.url=.*|session.service.url=http://cbioportal-session:5001/api/sessions/my_portal/|' | \ | ||
| sed 's|feature.study.export=.*|feature.study.export=true|' | \ | ||
| sed 's|#\?session.endpoint.publisher-api-key=.*|session.endpoint.publisher-api-key=TEST|' \ | ||
| > application.properties && \ | ||
| DB_VERSION=$(mvn -q -DforceStdout -Dexpression=db.version -f $PORTAL_SOURCE_DIR/pom.xml help:evaluate || true) && \ | ||
| if [ -n "$DB_VERSION" ]; then echo "db.version=${DB_VERSION}" > maven.properties; else : > maven.properties; fi && \ | ||
| echo "maven.properties => $(cat maven.properties | tr -d '\n' || echo '(empty)')" | ||
| - name: 'Dump Properties' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: cat config/application.properties | ||
| - name: 'Start cbioportal-docker-compose' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: | | ||
| docker compose -f docker-compose.yml -f $PORTAL_SOURCE_DIR/test/integration/docker-compose-localbuild.yml up -d | ||
| - name: 'Wait for cbioportal to initialize ...' | ||
| id: startup | ||
| uses: nev7n/wait_for_response@v1 | ||
| with: | ||
| url: 'http://localhost:8080/api/health' | ||
| responseCode: 200 | ||
| timeout: 900000 | ||
| interval: 30000 | ||
| - name: Log cBioPortal Service | ||
| if: ${{ failure() && steps.startup.conclusion == 'failure' }} | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: docker compose logs cbioportal | ||
| - name: 'TEST - Validate and load study_es_0' | ||
| if: steps.startup.conclusion == 'success' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: | | ||
| $PORTAL_SOURCE_DIR/test/integration/test_load_study.sh | ||
| - name: 'TEST - Import and Export of study_es_0_import_export' | ||
| if: steps.startup.conclusion == 'success' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: | | ||
| $PORTAL_SOURCE_DIR/test/integration/test_import_export.sh | ||
| - name: 'TEST - Publish virtual study' | ||
| if: steps.startup.conclusion == 'success' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: | | ||
| $PORTAL_SOURCE_DIR/test/integration/test_publish_vs.sh | ||
| - name: 'TEST - Add OncoKB annotations to study' | ||
| if: steps.startup.conclusion == 'success' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: | | ||
| $PORTAL_SOURCE_DIR/test/integration/test_integration_test_oncokb_import.sh | ||
| - name: 'TEST - Update OncoKB annotations' | ||
| if: steps.startup.conclusion == 'success' | ||
| working-directory: ./cbioportal-docker-compose | ||
| run: | | ||
| $PORTAL_SOURCE_DIR/test/integration/test_update_oncokb.sh |
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,36 @@ | ||
| name: Security integration tests | ||
| on: [push, pull_request] | ||
| jobs: | ||
| build: | ||
| name: Security integration tests | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| PORTAL_SOURCE_DIR: /home/runner/work/cbioportal/cbioportal/cbioportal | ||
| PORTAL_COMPOSE_DIR: /home/runner/work/cbioportal/cbioportal/cbioportal-docker-compose | ||
| PORTAL_INFO_DIR: /home/runner/work/cbioportal/cbioportal/portalInfo | ||
| steps: | ||
| - name: 'Checkout cbioportal repo' | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| path: ./cbioportal | ||
| - name: 'Set up JDK 21' | ||
| uses: oracle-actions/setup-java@v1 | ||
| with: | ||
| website: oracle.com | ||
| release: 21 | ||
| - name: 'Cache Maven packages' | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.m2 | ||
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
| restore-keys: ${{ runner.os }}-m2 | ||
| - name: 'Download Chrome' | ||
| uses: browser-actions/setup-chrome@v1 | ||
| - name: 'Copy Application.Properties' | ||
| working-directory: ./cbioportal | ||
| run: | | ||
| cp src/main/resources/application.properties.EXAMPLE src/main/resources/application.properties | ||
| - name: 'Run integration tests' | ||
| working-directory: ./cbioportal | ||
| run: | | ||
| mvn verify -Pintegration-test |
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
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 |
|---|---|---|
|
|
@@ -2,5 +2,6 @@ | |
|
|
||
| public enum AccessLevel { | ||
| READ, | ||
| LIST | ||
| LIST, | ||
| DOWNLOAD | ||
| } | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.