Skip to content

Commit 41cbdf3

Browse files
Merge branch 'master' into v6.3.1-dfci-FIX-10702-SAML
2 parents b055084 + 111af79 commit 41cbdf3

File tree

258 files changed

+17650
-2107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+17650
-2107
lines changed

.circleci/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ jobs:
467467
SUCCESS_COLOR: 'brightgreen'
468468
FAILURE_MESSAGE: 'Failing'
469469
FAILURE_COLOR: 'FF0A0A'
470-
SEVERITY_THRESHOLD: 'CRITICAL'
471470
TEST_REPO_URL: '[email protected]:cBioPortal/cbioportal-test.git'
472471
steps:
473472
- attach_workspace:
@@ -488,7 +487,7 @@ jobs:
488487
- run:
489488
name: Count vulnerabilities and update status badge
490489
command: |
491-
COUNT=$(jq '[.[] | select(.severity == "$SEVERITY_THRESHOLD")] | length' master_report.sbom)
490+
COUNT=$(jq '[.[] | select(.severity == "CRITICAL" or .severity == "HIGH")] | length' master_report.sbom)
492491
cd cbioportal-test
493492
if [ $COUNT -eq 0 ]; then
494493
jq --arg msg "$SUCCESS_MESSAGE" --arg col "$SUCCESS_COLOR" '.message = $msg | .color = $col' security-status.json > temp.json

.github/workflows/core-test.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
name: Core tests
2-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
pull_request_target:
6+
workflow_dispatch:
7+
inputs:
8+
ref:
9+
description: 'Branch or PR to test (default: main)'
10+
required: false
11+
default: 'master'
12+
13+
permissions:
14+
id-token: write # This is required for requesting the JWT
15+
contents: read # This is required for actions/checkout
16+
317
jobs:
418
build:
519
name: Setup and Test
@@ -12,6 +26,9 @@ jobs:
1226
ports:
1327
- 3306
1428
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=10
29+
env:
30+
TEST_DB_CLICKHOUSE_PASSWORD: ${{ secrets.TEST_DB_CLICKHOUSE_PASSWORD }}
31+
TEST_DB_MYSQL_PASSWORD: ${{ secrets.TEST_DB_MYSQL_PASSWORD }}
1532
steps:
1633
- name: 'Checkout cbioportal repo'
1734
uses: actions/checkout@v2
@@ -64,4 +81,8 @@ jobs:
6481
- name: 'Run integration tests separately'
6582
working-directory: ./cbioportal
6683
run: |
67-
mvn -U -Ppublic integration-test -Ddb.test.username=cbio_user -Ddb.test.password=somepassword
84+
mvn verify -Pintegration-test
85+
- name: 'Run e2e tests separately'
86+
working-directory: ./cbioportal
87+
run: |
88+
mvn verify -Pe2e-test

.github/workflows/dockerimage.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,13 @@ jobs:
128128
if: github.repository == 'cBioPortal/cbioportal' && github.ref == 'refs/heads/master'
129129
runs-on: ubuntu-latest
130130
env:
131-
DEPLOYMENT_FILE_PATH: "argocd/aws/203403084713/clusters/cbioportal-prod/apps/cbioportal/cbioportal_backend_master.yaml"
131+
DEPLOYMENT_FILE_PATH: "argocd/aws/203403084713/clusters/cbioportal-prod/apps/cbioportal"
132+
DEPLOYMENT_FILE_NAMES: "cbioportal_backend_master_blue.yaml cbioportal_backend_master_green.yaml"
132133
K8S_REPO: 'knowledgesystems/knowledgesystems-k8s-deployment'
133134
ARGOCD_CLI_VER: '2.13.3'
134135
ARGOCD_SERVER: 'argocd.cbioportal.org'
135136
ARGOCD_APP: 'cbioportal'
136-
ARGOCD_RESOURCE: 'apps:Deployment:default/cbioportal-backend-master'
137+
ARGOCD_RESOURCE_OPTIONS: '--resource apps:Deployment:default/cbioportal-backend-master-blue --resource apps:Deployment:default/cbioportal-backend-master-green'
137138
steps:
138139
- name: Extract metadata
139140
id: meta
@@ -164,14 +165,16 @@ jobs:
164165

165166
- name: Update Master Deployment File
166167
run: |
167-
sed -i "s|image:.*|image: $DOCKER_SHA|" $DEPLOYMENT_FILE_PATH
168+
for FILE in $DEPLOYMENT_FILE_NAMES; do
169+
sed -i "s|image:.*|image: $DOCKER_SHA|" $DEPLOYMENT_FILE_PATH/$FILE
170+
done
168171
169172
- name: Add and commit changes to deployment file
170173
run: |
171174
git config --global user.email "[email protected]"
172175
git config --global user.name "cBioPortal Backend Github Action"
173-
if ! git diff --quiet "$DEPLOYMENT_FILE_PATH"; then
174-
git add $DEPLOYMENT_FILE_PATH
176+
if ! git diff --quiet; then
177+
git add -A
175178
git commit -m "Update master deployment"
176179
else
177180
echo "No changes to commit."
@@ -196,4 +199,4 @@ jobs:
196199
with:
197200
version: ${{ env.ARGOCD_CLI_VER }}
198201
command: app sync ${{ env.ARGOCD_APP }}
199-
options: --resource ${{ env.ARGOCD_RESOURCE }}
202+
options: ${{ env.ARGOCD_RESOURCE_OPTIONS }}

.github/workflows/integration-test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Integration tests
2-
on: [push, pull_request]
2+
on: [push, pull_request_target]
33
jobs:
44
build:
55
name: Integration tests
@@ -45,7 +45,9 @@ jobs:
4545
cat $PORTAL_SOURCE_DIR/src/main/resources/application.properties | \
4646
sed 's|spring.datasource.url=.*|spring.datasource.url=jdbc:mysql://cbioportal-database:3306/cbioportal?useSSL=false|' | \
4747
sed 's|spring.datasource.username=.*|spring.datasource.username=cbio_user|' | \
48-
sed 's|spring.datasource.password=.*|spring.datasource.password=somepassword|' \
48+
sed 's|spring.datasource.password=.*|spring.datasource.password=somepassword|' | \
49+
sed 's|session.service.url=.*|session.service.url=http://cbioportal-session:5001/api/sessions/my_portal/|' | \
50+
sed 's|feature.study.export=.*|feature.study.export=true|' \
4951
> application.properties
5052
- name: 'Dump Properties'
5153
working-directory: ./cbioportal-docker-compose
@@ -71,6 +73,11 @@ jobs:
7173
working-directory: ./cbioportal-docker-compose
7274
run: |
7375
$PORTAL_SOURCE_DIR/test/integration/test_load_study.sh
76+
- name: 'TEST - Import and Export of study_es_0_import_export'
77+
if: steps.startup.conclusion == 'success'
78+
working-directory: ./cbioportal-docker-compose
79+
run: |
80+
$PORTAL_SOURCE_DIR/test/integration/test_import_export.sh
7481
- name: 'TEST - Add OncoKB annotations to study'
7582
if: steps.startup.conclusion == 'success'
7683
working-directory: ./cbioportal-docker-compose
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Markdown links check
2+
on: [pull_request]
3+
jobs:
4+
build:
5+
name: Markdown links check
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
# Docs here https://github.com/tcort/github-action-markdown-link-check
10+
- uses: tcort/github-action-markdown-link-check@v1
11+
continue-on-error: true
12+
with:
13+
use-quiet-mode: 'yes'
14+
use-verbose-mode: 'no'
15+
config-file: markdown_links_check_config.json

.github/workflows/retype-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
dotnet-version: 7.0.x
2121

22-
- uses: retypeapp/action-build@latest
22+
- uses: retypeapp/action-build@ddc4449f15ae65b75e13198b88200bfd64aef168 # before v3.10.0, which breaks the news on homepage
2323

2424
- uses: retypeapp/action-github-pages@latest
2525
with:

.github/workflows/security-integration-test.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Update POM for Snapshot Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
update-pom:
10+
runs-on: ubuntu-latest
11+
if: github.event_name == 'release'
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
ref: 'master'
19+
token: '${{ secrets.GITHUB_TOKEN }}'
20+
21+
- name: Setup Git identity
22+
run: |
23+
git config --local user.email "[email protected]"
24+
git config --local user.name "github-actions"
25+
26+
- name: Download semver management tool
27+
run: |
28+
wget -q https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver
29+
chmod +x semver
30+
31+
- name: Update pom with snapshot release version
32+
run: |
33+
TAG=${{ github.event.release.tag_name }}
34+
VERSION=${TAG#v}
35+
SNAPSHOT_VERSION=$(./semver bump patch $VERSION)
36+
SNAPSHOT_TAG=v"$SNAPSHOT_VERSION"-SNAPSHOT
37+
sed -i "s|<version>\(.*\)-SNAPSHOT</version>|<version>$SNAPSHOT_TAG</version>|" pom.xml
38+
git add pom.xml
39+
git commit -m "Prepare for $SNAPSHOT_TAG"
40+
git push

.github/workflows/sonarcloud.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ on:
33
push:
44
branches:
55
- master
6-
pull_request:
6+
pull_request_target:
77
types: [opened, synchronize, reopened]
88
jobs:
99
build:
1010
name: sonarcloud
1111
runs-on: ubuntu-latest
12+
env:
13+
TEST_DB_CLICKHOUSE_PASSWORD: ${{ secrets.TEST_DB_CLICKHOUSE_PASSWORD }}
14+
TEST_DB_MYSQL_PASSWORD: ${{ secrets.TEST_DB_MYSQL_PASSWORD }}
1215
steps:
1316
- uses: actions/checkout@v2
1417
with:
@@ -43,8 +46,11 @@ jobs:
4346
- name: 'Run integration tests'
4447
run: |
4548
mvn verify -Pintegration-test
49+
- name: 'Run e2e tests'
50+
run: |
51+
mvn verify -Pe2e-test
4652
- name: Code Coverage
4753
env:
4854
SONAR_TOKEN: de1b5cc660cd210dde840f492c371da6cc801763
4955
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
run: mvn sonar:sonar -Pcoverage
56+
run: mvn sonar:sonar -Pcoverage

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ From the [GitHub Help Page of Using Pull Requests](https://help.github.com/artic
2828

2929
### Programming
3030
* Make sure you have a [GitHub account](https://github.com/signup/free).
31-
* Familiarize yourself with the [project documentation](https://docs.cbioportal.org), including the [Feature Development Guide](https://docs.cbioportal.org/development/feature-development-guide/), the [Architecture docs](https://docs.cbioportal.org/2.1-deployment/architecture-overview), the [backend code organization](docs/Backend-Code-Organization.md) and [backend development guidelines](docs/Backend-Development-Guidelines.md).
31+
* Familiarize yourself with the [project documentation](https://docs.cbioportal.org), including the [Feature Development Guide](https://docs.cbioportal.org/development/feature-development-guide/), the [Architecture docs](https://docs.cbioportal.org/2.1-deployment/architecture-overview), the [backend code organization](https://docs.cbioportal.org/development/backend-code-organization/) and [backend development guidelines](https://docs.cbioportal.org/development/backend-development-guidelines/).
3232
* Find a [good first issue](https://github.com/cBioPortal/cbioportal/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22) to start with
3333
* Check if the issue will require frontend or backend changes. If it is for the frontend look at how to set up the [frontend repo](https://github.com/cbioPortal/cbioportal-frontend/) instead
3434
* Fork the cbioportal or cbioportal-frontend project on GitHub depending on what your working on. For general instructions on forking a GitHub project, see [Forking a Repo](https://help.github.com/articles/fork-a-repo/) and [Syncing a fork](https://help.github.com/articles/syncing-a-fork/).

0 commit comments

Comments
 (0)