Skip to content

Commit 5f2413b

Browse files
authored
Merge pull request #9896 from IQSS/develop
Merge v6.0 into master
2 parents 9f4ddbb + 62a9811 commit 5f2413b

File tree

883 files changed

+8660
-13356
lines changed

Some content is hidden

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

883 files changed

+8660
-13356
lines changed

Diff for: .env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
APP_IMAGE=gdcc/dataverse:unstable
22
POSTGRES_VERSION=13
33
DATAVERSE_DB_USER=dataverse
4-
SOLR_VERSION=8.11.1
4+
SOLR_VERSION=9.3.0

Diff for: .github/workflows/container_app_pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge'
2626
- uses: actions/setup-java@v3
2727
with:
28-
java-version: "11"
28+
java-version: "17"
2929
distribution: 'adopt'
3030
- uses: actions/cache@v3
3131
with:

Diff for: .github/workflows/container_app_push.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
- name: Checkout repository
3737
uses: actions/checkout@v3
3838

39-
- name: Set up JDK 11
39+
- name: Set up JDK
4040
uses: actions/setup-java@v3
4141
with:
42-
java-version: "11"
42+
java-version: "17"
4343
distribution: temurin
4444
cache: maven
4545

@@ -99,17 +99,21 @@ jobs:
9999
name: "Package & Publish"
100100
runs-on: ubuntu-latest
101101
# Only run this job if we have access to secrets. This is true for events like push/schedule which run in
102-
# context of main repo, but for PRs only true if coming from the main repo! Forks have no secret access.
103-
if: needs.check-secrets.outputs.available == 'true'
102+
# context of the main repo, but for PRs only true if coming from the main repo! Forks have no secret access.
103+
#
104+
# Note: The team's decision was to not auto-deploy an image on any git push where no PR exists (yet).
105+
# Accordingly, only run for push events on branches develop and master.
106+
if: needs.check-secrets.outputs.available == 'true' &&
107+
( github.event_name != 'push' || ( github.event_name == 'push' && contains(fromJSON('["develop", "master"]'), github.ref_name)))
104108
steps:
105109
- uses: actions/checkout@v3
106110
- uses: actions/setup-java@v3
107111
with:
108-
java-version: "11"
112+
java-version: "17"
109113
distribution: temurin
110114

111115
# Depending on context, we push to different targets. Login accordingly.
112-
- if: ${{ github.event_name != 'pull_request' }}
116+
- if: github.event_name != 'pull_request'
113117
name: Log in to Docker Hub registry
114118
uses: docker/login-action@v2
115119
with:

Diff for: .github/workflows/container_base_push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
packages: read
3535
strategy:
3636
matrix:
37-
jdk: [ '11' ]
37+
jdk: [ '17' ]
3838
# Only run in upstream repo - avoid unnecessary runs in forks
3939
if: ${{ github.repository_owner == 'IQSS' }}
4040

Diff for: .github/workflows/cypress_ui.yml.future

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# THIS IS AN OLD TRAVIS-CI.ORG JOB FILE
44
# To be used with Github Actions, it would be necessary to refactor it.
5+
# In addition, it needs to be rewritten to use our modern containers.
56
# Keeping it as the future example it has been before.
67
# See also #5846
78
#
@@ -30,8 +31,6 @@ jobs:
3031
directories:
3132
# we also need to cache folder with Cypress binary
3233
- ~/.cache
33-
# we want to cache the Glassfish and Solr dependencies as well
34-
- conf/docker-aio/dv/deps
3534
before_install:
3635
- cd tests
3736
install:

Diff for: .github/workflows/deploy_beta_testing.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
environment: beta-testing
1211

1312
steps:
1413
- uses: actions/checkout@v3
1514

1615
- uses: actions/setup-java@v3
1716
with:
1817
distribution: 'zulu'
19-
java-version: '11'
18+
java-version: '17'
19+
20+
- name: Enable API Session Auth feature flag
21+
working-directory: src/main/resources/META-INF
22+
run: echo -e "dataverse.feature.api-session-auth=true" >> microprofile-config.properties
2023

2124
- name: Build application war
2225
run: mvn package
@@ -34,7 +37,6 @@ jobs:
3437
deploy-to-payara:
3538
needs: build
3639
runs-on: ubuntu-latest
37-
environment: beta-testing
3840

3941
steps:
4042
- uses: actions/checkout@v3
@@ -51,29 +53,29 @@ jobs:
5153
- name: Copy war file to remote instance
5254
uses: appleboy/scp-action@master
5355
with:
54-
host: ${{ secrets.PAYARA_INSTANCE_HOST }}
55-
username: ${{ secrets.PAYARA_INSTANCE_USERNAME }}
56-
key: ${{ secrets.PAYARA_INSTANCE_SSH_PRIVATE_KEY }}
56+
host: ${{ secrets.BETA_PAYARA_INSTANCE_HOST }}
57+
username: ${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }}
58+
key: ${{ secrets.BETA_PAYARA_INSTANCE_SSH_PRIVATE_KEY }}
5759
source: './${{ env.war_file }}'
58-
target: '/home/${{ secrets.PAYARA_INSTANCE_USERNAME }}'
60+
target: '/home/${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }}'
5961
overwrite: true
6062

6163
- name: Execute payara war deployment remotely
6264
uses: appleboy/[email protected]
6365
env:
6466
INPUT_WAR_FILE: ${{ env.war_file }}
6567
with:
66-
host: ${{ secrets.PAYARA_INSTANCE_HOST }}
67-
username: ${{ secrets.PAYARA_INSTANCE_USERNAME }}
68-
key: ${{ secrets.PAYARA_INSTANCE_SSH_PRIVATE_KEY }}
68+
host: ${{ secrets.BETA_PAYARA_INSTANCE_HOST }}
69+
username: ${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }}
70+
key: ${{ secrets.BETA_PAYARA_INSTANCE_SSH_PRIVATE_KEY }}
6971
envs: INPUT_WAR_FILE
7072
script: |
7173
APPLICATION_NAME=dataverse-backend
72-
ASADMIN='/usr/local/payara5/bin/asadmin --user admin'
74+
ASADMIN='/usr/local/payara6/bin/asadmin --user admin'
7375
$ASADMIN undeploy $APPLICATION_NAME
7476
$ASADMIN stop-domain
75-
rm -rf /usr/local/payara5/glassfish/domains/domain1/generated
76-
rm -rf /usr/local/payara5/glassfish/domains/domain1/osgi-cache
77+
rm -rf /usr/local/payara6/glassfish/domains/domain1/generated
78+
rm -rf /usr/local/payara6/glassfish/domains/domain1/osgi-cache
7779
$ASADMIN start-domain
7880
$ASADMIN deploy --name $APPLICATION_NAME $INPUT_WAR_FILE
7981
$ASADMIN stop-domain

Diff for: .github/workflows/maven_unit_test.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,9 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
jdk: [ '11' ]
25+
jdk: [ '17' ]
2626
experimental: [false]
2727
status: ["Stable"]
28-
#
29-
# JDK 17 builds disabled due to non-essential fails marking CI jobs as completely failed within
30-
# Github Projects, PR lists etc. This was consensus on Slack #dv-tech. See issue #8094
31-
# (This is a limitation of how Github is currently handling these things.)
32-
#
33-
#include:
34-
# - jdk: '17'
35-
# experimental: true
36-
# status: "Experimental"
3728
continue-on-error: ${{ matrix.experimental }}
3829
runs-on: ubuntu-latest
3930
steps:
@@ -68,6 +59,14 @@ jobs:
6859
6960
# We don't want to cache the WAR file, so delete it
7061
- run: rm -rf ~/.m2/repository/edu/harvard/iq/dataverse
62+
63+
# Upload the built war file. For download, it will be wrapped in a ZIP by GitHub.
64+
# See also https://github.com/actions/upload-artifact#zipped-artifact-downloads
65+
- uses: actions/upload-artifact@v3
66+
with:
67+
name: dataverse-java${{ matrix.jdk }}.war
68+
path: target/dataverse*.war
69+
retention-days: 7
7170
push-app-img:
7271
name: Publish App Image
7372
permissions:

Diff for: .github/workflows/shellcheck.yml

-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
# Exclude old scripts
3434
exclude: |
3535
*/.git/*
36-
conf/docker-aio/*
3736
doc/*
3837
downloads/*
3938
scripts/database/*
@@ -43,5 +42,4 @@ jobs:
4342
scripts/issues/*
4443
scripts/r/*
4544
scripts/tests/*
46-
scripts/vagrant/*
4745
tests/*

Diff for: .github/workflows/shellspec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
shellspec
6161
shellspec-macos:
6262
name: "MacOS"
63-
runs-on: macos-10.15
63+
runs-on: macos-latest
6464
steps:
6565
- name: Install shellspec
6666
run: curl -fsSL https://git.io/shellspec | sh -s 0.28.1 --yes

Diff for: .github/workflows/spi_release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Dataverse SPI
22

33
on:
44
push:
5-
branch:
5+
branches:
66
- "develop"
77
paths:
88
- "modules/dataverse-spi/**"
99
pull_request:
10-
branch:
10+
branches:
1111
- "develop"
1212
paths:
1313
- "modules/dataverse-spi/**"
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/checkout@v3
4141
- uses: actions/setup-java@v3
4242
with:
43-
java-version: '11'
43+
java-version: '17'
4444
distribution: 'adopt'
4545
server-id: ossrh
4646
server-username: MAVEN_USERNAME
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v3
6767
- uses: actions/setup-java@v3
6868
with:
69-
java-version: '11'
69+
java-version: '17'
7070
distribution: 'adopt'
7171
- uses: actions/cache@v2
7272
with:
@@ -78,7 +78,7 @@ jobs:
7878
- name: Set up Maven Central Repository
7979
uses: actions/setup-java@v3
8080
with:
81-
java-version: '11'
81+
java-version: '17'
8282
distribution: 'adopt'
8383
server-id: ossrh
8484
server-username: MAVEN_USERNAME
@@ -91,4 +91,4 @@ jobs:
9191
env:
9292
MAVEN_USERNAME: ${{ secrets.DATAVERSEBOT_SONATYPE_USERNAME }}
9393
MAVEN_PASSWORD: ${{ secrets.DATAVERSEBOT_SONATYPE_TOKEN }}
94-
MAVEN_GPG_PASSPHRASE: ${{ secrets.DATAVERSEBOT_GPG_PASSWORD }}
94+
MAVEN_GPG_PASSPHRASE: ${{ secrets.DATAVERSEBOT_GPG_PASSWORD }}

Diff for: .gitignore

-15
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ GRTAGS
1818
.Trashes
1919
ehthumbs.db
2020
Thumbs.db
21-
.vagrant
2221
*.pyc
2322
*.swp
2423
scripts/api/py_api_wrapper/demo-data/*
@@ -39,17 +38,6 @@ scripts/api/setup-all.*.log
3938
# ctags generated tag file
4039
tags
4140

42-
# dependencies I'm not sure we're allowed to redistribute / have in version control
43-
conf/docker-aio/dv/deps/
44-
45-
# no need to check aoi installer zip into vc
46-
conf/docker-aio/dv/install/dvinstall.zip
47-
# or copy of test data
48-
conf/docker-aio/testdata/
49-
50-
# docker-aio creates maven/ which reports 86 new files. ignore this wd.
51-
maven/
52-
5341
scripts/installer/default.config
5442
*.pem
5543

@@ -71,8 +59,5 @@ scripts/search/data/binary/trees.png.thumb140
7159
src/main/webapp/resources/images/cc0.png.thumb140
7260
src/main/webapp/resources/images/dataverseproject.png.thumb140
7361

74-
# apache-maven is downloaded by docker-aio
75-
apache-maven*
76-
7762
# Docker development volumes
7863
/docker-dev-volumes

Diff for: Vagrantfile

-27
This file was deleted.

Diff for: conf/docker-aio/0prep_deps.sh

-19
This file was deleted.

Diff for: conf/docker-aio/1prep.sh

-39
This file was deleted.

0 commit comments

Comments
 (0)