Skip to content

Commit 6387e45

Browse files
committed
Merge remote-tracking branch 'IQSS/develop' into LocallyFAIR
# Conflicts: # src/main/java/edu/harvard/iq/dataverse/api/Access.java # src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
2 parents f8002ff + 5dc8b47 commit 6387e45

157 files changed

Lines changed: 4627 additions & 1554 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Add bugs to project board
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- labeled
8+
9+
jobs:
10+
add-to-project:
11+
name: Add bug to project
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/add-to-project@v1.0.2
15+
with:
16+
project-url: https://github.com/orgs/IQSS/projects/34
17+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
18+
labeled: "Type: Bug"

.github/workflows/container_app_pr.yml

Lines changed: 2 additions & 2 deletions
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@v5
2727
with:
28-
java-version: "17"
28+
java-version: "21"
2929
distribution: 'adopt'
3030
- uses: actions/cache@v5
3131
with:
@@ -69,7 +69,7 @@ jobs:
6969
-Dapp.image.tag=${{ env.IMAGE_TAG }}
7070
-Ddocker.registry=ghcr.io -Ddocker.platforms=${{ env.PLATFORMS }}
7171
72-
- uses: marocchino/sticky-pull-request-comment@v2
72+
- uses: marocchino/sticky-pull-request-comment@v3
7373
with:
7474
header: registry-push
7575
hide_and_recreate: true

.github/workflows/container_app_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
${{ env.REGISTRY }} -Ddocker.platforms=${{ env.PLATFORMS }}
142142
-P ct deploy
143143
144-
- uses: marocchino/sticky-pull-request-comment@v2
144+
- uses: marocchino/sticky-pull-request-comment@v3
145145
if: ${{ github.event_name == 'pull_request' }}
146146
with:
147147
header: registry-push

.github/workflows/container_maintenance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ jobs:
173173
with:
174174
platforms: ${{ env.PLATFORMS }}
175175
- name: Setup Trivy binary for vulnerability scanning
176-
uses: aquasecurity/setup-trivy@v0.2.5
176+
uses: aquasecurity/setup-trivy@v0.2.6
177177
with:
178-
version: v0.63.0
178+
version: v0.69.3
179179

180180
# Execute matrix build for the discovered branches
181181
- name: Execute build matrix script

.github/workflows/deploy_beta_testing.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/setup-java@v5
2020
with:
2121
distribution: 'zulu'
22-
java-version: '17'
22+
java-version: '21'
2323

2424
- name: Enable API Session Auth feature flag
2525
working-directory: src/main/resources/META-INF
@@ -79,11 +79,11 @@ jobs:
7979
envs: INPUT_WAR_FILE
8080
script: |
8181
APPLICATION_NAME=dataverse-backend
82-
ASADMIN='/usr/local/payara6/bin/asadmin --user admin'
82+
ASADMIN='/usr/local/payara7/bin/asadmin --user admin'
8383
$ASADMIN undeploy $APPLICATION_NAME
8484
#$ASADMIN stop-domain
85-
#rm -rf /usr/local/payara6/glassfish/domains/domain1/generated
86-
#rm -rf /usr/local/payara6/glassfish/domains/domain1/osgi-cache
85+
#rm -rf /usr/local/payara7/glassfish/domains/domain1/generated
86+
#rm -rf /usr/local/payara7/glassfish/domains/domain1/osgi-cache
8787
#$ASADMIN start-domain
8888
$ASADMIN deploy --name $APPLICATION_NAME $INPUT_WAR_FILE
8989
#$ASADMIN stop-domain
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: 'Deploy to dataverse-internal.iq.harvard.edu'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
buildlabel:
7+
description: 'Custom label that will appear after the version number (the equivalent of the old "build number" entry). Leaving it empty will default to the legacy behavior, i.e. " build <branch>-<checksum>".'
8+
type: string
9+
required: false
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: deploy-to-internal
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v6
24+
25+
- uses: actions/setup-java@v5
26+
with:
27+
distribution: 'zulu'
28+
java-version: '21'
29+
30+
- name: Set build number
31+
run: scripts/installer/custom-build-number "${{ github.event.inputs.buildlabel }}"
32+
33+
- name: Build application war
34+
run: mvn package
35+
36+
- name: Get war file name
37+
working-directory: target
38+
run: echo "war_file=$(ls *.war | head -1)">> $GITHUB_ENV
39+
40+
- name: Upload war artifact
41+
uses: actions/upload-artifact@v7
42+
with:
43+
name: built-app
44+
path: ./target/${{ env.war_file }}
45+
46+
deploy-to-payara:
47+
needs: build
48+
if: ${{ github.repository_owner == 'IQSS' }}
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- uses: actions/checkout@v6
53+
54+
- name: Download war artifact
55+
uses: actions/download-artifact@v8
56+
with:
57+
name: built-app
58+
path: ./
59+
60+
- name: Get war file name
61+
run: echo "war_file=$(ls *.war | head -1)">> $GITHUB_ENV
62+
63+
- name: Copy war file to remote instance
64+
uses: appleboy/scp-action@master
65+
with:
66+
host: ${{ secrets.INTERNAL_PAYARA_INSTANCE_HOST }}
67+
username: ${{ secrets.INTERNAL_PAYARA_INSTANCE_USERNAME }}
68+
key: ${{ secrets.INTERNAL_PAYARA_INSTANCE_SSH_PRIVATE_KEY }}
69+
source: './${{ env.war_file }}'
70+
target: '/home/${{ secrets.INTERNAL_PAYARA_INSTANCE_USERNAME }}'
71+
overwrite: true
72+
73+
- name: Execute payara war deployment remotely
74+
uses: appleboy/ssh-action@v1.2.5
75+
env:
76+
INPUT_WAR_FILE: ${{ env.war_file }}
77+
with:
78+
host: ${{ secrets.INTERNAL_PAYARA_INSTANCE_HOST }}
79+
username: ${{ secrets.INTERNAL_PAYARA_INSTANCE_USERNAME }}
80+
key: ${{ secrets.INTERNAL_PAYARA_INSTANCE_SSH_PRIVATE_KEY }}
81+
envs: INPUT_WAR_FILE
82+
script: |
83+
APPLICATION_NAME=dataverse-backend
84+
ASADMIN='/usr/local/payara7/bin/asadmin --user admin'
85+
$ASADMIN undeploy $APPLICATION_NAME
86+
#$ASADMIN stop-domain
87+
#$ASADMIN start-domain
88+
$ASADMIN deploy --name $APPLICATION_NAME $INPUT_WAR_FILE
89+
#$ASADMIN stop-domain
90+
#$ASADMIN start-domain
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'Generate dataverse war file'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
buildlabel:
7+
description: 'Custom label that will appear after the version number (the equivalent of the old "build number" entry). Leaving it empty will default to the legacy behavior, i.e. " build <branch>-<checksum>".'
8+
type: string
9+
required: false
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- uses: actions/setup-java@v5
19+
with:
20+
distribution: 'zulu'
21+
java-version: '21'
22+
23+
- name: Set build number
24+
run: scripts/installer/custom-build-number "${{ github.event.inputs.buildlabel }}"
25+
26+
- name: Build application war
27+
run: mvn package
28+
29+
- name: Get war file name
30+
working-directory: target
31+
run: echo "war_file=$(ls *.war | head -1)">> $GITHUB_ENV
32+
33+
- name: Upload war artifact
34+
uses: actions/upload-artifact@v7
35+
with:
36+
name: built-app
37+
path: ./target/${{ env.war_file }}

.github/workflows/maven_unit_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
jdk: [ '17' ]
32+
jdk: [ '21' ]
3333
experimental: [false]
3434
status: ["Stable"]
3535
continue-on-error: ${{ matrix.experimental }}
@@ -87,7 +87,7 @@ jobs:
8787
strategy:
8888
fail-fast: false
8989
matrix:
90-
jdk: [ '17' ]
90+
jdk: [ '21' ]
9191
experimental: [ false ]
9292
status: [ "Stable" ]
9393
#
@@ -140,7 +140,7 @@ jobs:
140140
- uses: actions/checkout@v6
141141
- uses: actions/setup-java@v5
142142
with:
143-
java-version: '17'
143+
java-version: '21'
144144
distribution: temurin
145145
cache: maven
146146

.github/workflows/spi_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/checkout@v6
4141
- uses: actions/setup-java@v5
4242
with:
43-
java-version: '17'
43+
java-version: '21'
4444
distribution: 'adopt'
4545
server-id: central
4646
server-username: MAVEN_USERNAME
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v6
6767
- uses: actions/setup-java@v5
6868
with:
69-
java-version: '17'
69+
java-version: '21'
7070
distribution: 'adopt'
7171
- uses: actions/cache@v5
7272
with:
@@ -78,7 +78,7 @@ jobs:
7878
- name: Set up Maven Central Repository
7979
uses: actions/setup-java@v5
8080
with:
81-
java-version: '17'
81+
java-version: '21'
8282
distribution: 'adopt'
8383
server-id: central
8484
server-username: MAVEN_USERNAME

conf/jhove/jhove.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xmlns="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig"
55
xsi:schemaLocation="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig
6-
file:///usr/local/payara6/glassfish/domains/domain1/config/jhoveConfig.xsd">
6+
file:///usr/local/payara7/glassfish/domains/domain1/config/jhoveConfig.xsd">
77
<jhoveHome>/usr/local/src/jhove</jhoveHome>
88
<defaultEncoding>utf-8</defaultEncoding>
99
<tempDirectory>/tmp</tempDirectory>

0 commit comments

Comments
 (0)