Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
536 commits
Select commit Hold shift + click to select a range
6726b5c
Refactor foxx unit tests so they will run correctly
JoshuaSBrown Dec 30, 2024
f81bc28
Standardize error throw calls
JoshuaSBrown Dec 30, 2024
4fbf514
Fix key check
JoshuaSBrown Dec 30, 2024
ae5dcef
Fix premature ; in test expect call
JoshuaSBrown Dec 30, 2024
07fc637
Correct unit tests
JoshuaSBrown Dec 31, 2024
a53f9d4
Switch let to const.
JoshuaSBrown Dec 31, 2024
da9608e
Address review feedback
JoshuaSBrown Jan 2, 2025
8089e1a
Merge branch '1180-refactor-authz' into add-support-for-authz-lookup
JoshuaSBrown Jan 2, 2025
a758095
Add javascript linter and formatter to CI
JoshuaSBrown Jan 2, 2025
733f1bd
Revert "Revert JavaScript linter commit from devel"
JoshuaSBrown Jan 2, 2025
16331e6
Add Javascript github action back
JoshuaSBrown Jan 2, 2025
7d2ce43
Attempt 2
JoshuaSBrown Jan 2, 2025
ff0fb5e
Add useful log output to github action
JoshuaSBrown Jan 2, 2025
391bdea
Address the fact that prettier won't show file changes
JoshuaSBrown Jan 2, 2025
63b0891
Fix github action
JoshuaSBrown Jan 2, 2025
817a916
Split linting and formatting of javascript into separate actions
JoshuaSBrown Jan 2, 2025
65be1fe
Format and lint javascript
JoshuaSBrown Jan 2, 2025
e2266f2
Add diff to same command as prettier check so diff is obvious
JoshuaSBrown Jan 2, 2025
9f26f19
Try to update eslint
JoshuaSBrown Jan 2, 2025
f195e89
add .eslintrc file
JoshuaSBrown Jan 2, 2025
50bd30f
udpate node version for es linter
JoshuaSBrown Jan 2, 2025
b8acbb3
Remove eslintrc
JoshuaSBrown Jan 2, 2025
08d7be9
Turn browser off
JoshuaSBrown Jan 2, 2025
974bfd7
Switch to CommonJS for formatting
JoshuaSBrown Jan 2, 2025
05f77bc
Add missing config file
JoshuaSBrown Jan 2, 2025
5c549a2
Add opionated format rules
JoshuaSBrown Jan 2, 2025
15a08cf
Add eslint config file that is up to spec
JoshuaSBrown Jan 2, 2025
2a67ef3
install globals'
JoshuaSBrown Jan 2, 2025
310d471
change install commands for linter
JoshuaSBrown Jan 2, 2025
5aaeb45
Create temporary package.json so npm eslint will work
JoshuaSBrown Jan 2, 2025
335ebc3
Add npx call
JoshuaSBrown Jan 2, 2025
3ab4c60
Prevent formatter from killing full pipeline of checks
JoshuaSBrown Jan 2, 2025
9e92708
Address eslint errors
JoshuaSBrown Jan 2, 2025
8ddadbc
Remove randomly added custom global
JoshuaSBrown Jan 2, 2025
c7a0527
Merge pull request #1203 from ORNL/1202-refactor-fix-eslint-reported-…
JoshuaSBrown Jan 2, 2025
dcb4a45
Specifically allow job to fail
JoshuaSBrown Jan 2, 2025
1dcd30d
Clean up linter and formatter.
JoshuaSBrown Jan 2, 2025
2b1267c
Add Changelog comment
JoshuaSBrown Jan 2, 2025
38a7f37
Apply suggestions from code review
JoshuaSBrown Jan 2, 2025
b6e22eb
Merge pull request #1197 from ORNL/1190-refactor-unit-testing-foxx
JoshuaSBrown Jan 2, 2025
0fe9096
Merge pull request #1201 from ORNL/1200-feature-github-action-javascr…
JoshuaSBrown Jan 2, 2025
dd71e7c
Merge branch 'devel' into 1180-refactor-authz
JoshuaSBrown Jan 2, 2025
8873691
Apply prettier formatting
JoshuaSBrown Jan 2, 2025
aff72db
Turn on hard failure for formatting of javascript in github action
JoshuaSBrown Jan 2, 2025
3a9a7eb
Fix minor differences between prettier
JoshuaSBrown Jan 2, 2025
5e572bd
Merge branch '1180-refactor-authz' into add-support-for-authz-lookup
JoshuaSBrown Jan 2, 2025
e919b44
Update authz.test.js
JoshuaSBrown Jan 2, 2025
88be445
Add better comments around database method
JoshuaSBrown Jan 2, 2025
97eab94
Add better comments around database method
JoshuaSBrown Jan 2, 2025
f48b08e
Merge pull request #1206 from ORNL/1205-refactor-formatting-across-ja…
JoshuaSBrown Jan 2, 2025
9d3622b
Apply formatting
JoshuaSBrown Jan 2, 2025
ff1814b
Merge branch 'devel' into 1180-refactor-authz
JoshuaSBrown Jan 2, 2025
eaf34fa
Format authz test
JoshuaSBrown Jan 2, 2025
3771f9c
Format authz file
JoshuaSBrown Jan 2, 2025
7dae7ca
Apply formatting to posix path
JoshuaSBrown Jan 2, 2025
2bb1213
Address formatting issues
JoshuaSBrown Jan 2, 2025
73c7f8c
Apply formatting
JoshuaSBrown Jan 2, 2025
5c800ed
Address merge conflicts
JoshuaSBrown Jan 2, 2025
1f99bb9
Fix syntax change
JoshuaSBrown Jan 2, 2025
a263250
Address formatting of jquery file
JoshuaSBrown Jan 6, 2025
72e7c69
add more descriptive posix path error message
JoshuaSBrown Jan 6, 2025
3aa31af
Remove redundant password file creation command
JoshuaSBrown Jan 6, 2025
212854d
Add eslint plugin for jsdoc to github action
JoshuaSBrown Jan 7, 2025
b950598
Update esling.config.js to error if invalid jsdoc
JoshuaSBrown Jan 7, 2025
596acb3
Add missing eslint jsdoc plugin
JoshuaSBrown Jan 7, 2025
31080a6
Remove non existant rule
JoshuaSBrown Jan 7, 2025
2be130b
Fix jsdoc issues in data_router
JoshuaSBrown Jan 7, 2025
dfa1db5
Fix JSDOc issues in process.js fiel
JoshuaSBrown Jan 7, 2025
5d102c9
Fix JSDOc issues in repo_router.js
JoshuaSBrown Jan 7, 2025
51c6508
Address JSDoc in tasks.js
JoshuaSBrown Jan 7, 2025
d13579a
Address JSDoc linting issues
JoshuaSBrown Jan 7, 2025
2e46fad
Switch to ignores statement
JoshuaSBrown Jan 7, 2025
93de854
Address more eslint jsdoc items
JoshuaSBrown Jan 7, 2025
bbfc3a9
Fix additional jsdoc items
JoshuaSBrown Jan 7, 2025
a619019
Try to satisfy linter
JoshuaSBrown Jan 7, 2025
dfc1d91
Be more selective about eslint rules
JoshuaSBrown Jan 7, 2025
5987c17
Address items in tasks.js
JoshuaSBrown Jan 7, 2025
af94af0
Address additional eslint items with JSDOc
JoshuaSBrown Jan 7, 2025
d8b2978
Ignore jquery with eslint
JoshuaSBrown Jan 7, 2025
1bfd9ff
Remove requrie description because seems to be faulty
JoshuaSBrown Jan 7, 2025
d1b3181
Address finicky jsdoc linter
JoshuaSBrown Jan 7, 2025
f19dd7d
Fix js formatting
JoshuaSBrown Jan 7, 2025
5428ae4
Merge pull request #1212 from ORNL/1211-fix-jsdoc-errors
JoshuaSBrown Jan 7, 2025
c517953
Feature DLT 1109 foxx new token data (#1194)
t-ramz Jan 7, 2025
eba25db
Merge branch 'devel' into 1180-refactor-authz
JoshuaSBrown Jan 7, 2025
f60d2f7
Merge pull request #1181 from ORNL/1180-refactor-authz
JoshuaSBrown Jan 7, 2025
20b50d1
Add ci jobs to improve security posture
JoshuaSBrown Jan 7, 2025
1dc2e2e
Change to unit stage for testing
JoshuaSBrown Jan 8, 2025
73e1087
Remove sast job
JoshuaSBrown Jan 8, 2025
8975239
Attempt to fix semgrep sast job failure
JoshuaSBrown Jan 8, 2025
1ce6aae
Debug jobs
JoshuaSBrown Jan 8, 2025
3ebe26c
Add test stage for sast template job
JoshuaSBrown Jan 8, 2025
b2cdea8
Add missing test stage
JoshuaSBrown Jan 8, 2025
3ee2f59
Add dependency scanning
JoshuaSBrown Jan 8, 2025
6362541
Split sast into separate test stage
JoshuaSBrown Jan 8, 2025
bc172a4
Remove commented out line
JoshuaSBrown Jan 8, 2025
1152b71
Remove extra comment that is unused
JoshuaSBrown Jan 8, 2025
9ef7198
Debugging log failure
JoshuaSBrown Jan 8, 2025
62f3586
Address jsdoc and typo in description
JoshuaSBrown Jan 7, 2025
f2cdfc2
Remove outdated comments
JoshuaSBrown Jan 7, 2025
1f521ca
Make comments JSDoc compliant
JoshuaSBrown Jan 7, 2025
bf4abd7
Address merge conflict
JoshuaSBrown Jan 8, 2025
049b1f8
Address formatting inconsistency
JoshuaSBrown Jan 8, 2025
d1e61d3
Account for multiple images returned in log
JoshuaSBrown Jan 9, 2025
4b3d1ee
Update .gitlab/common.yml
JoshuaSBrown Jan 9, 2025
9f478cf
Debugging log container matching
JoshuaSBrown Jan 9, 2025
f275346
Fix typo in gitlab anchor
JoshuaSBrown Jan 9, 2025
de815e4
Debug escape anchor
JoshuaSBrown Jan 9, 2025
2ca1127
Debug
JoshuaSBrown Jan 9, 2025
89beb59
Debug anchor 2
JoshuaSBrown Jan 9, 2025
43ae584
Debug anchor 3
JoshuaSBrown Jan 9, 2025
f617273
Debug anchor 4
JoshuaSBrown Jan 9, 2025
e7dae65
Debug anchor 5
JoshuaSBrown Jan 9, 2025
a8f9f09
Debug 6
JoshuaSBrown Jan 9, 2025
58d78e0
Debug 7
JoshuaSBrown Jan 9, 2025
dbf0912
Debug 8
JoshuaSBrown Jan 9, 2025
0b71b00
Fix names of containers from gcs-authz to gcs
JoshuaSBrown Jan 9, 2025
680c41e
Cleanup add comment back in
JoshuaSBrown Jan 9, 2025
a8a6a47
Update common.yml
JoshuaSBrown Jan 9, 2025
28918ef
Remove Exports
JoshuaSBrown Jan 9, 2025
5e52a0a
Merge pull request #1221 from ORNL/1219-daps-bug-gitlab-ci-gcs-log
JoshuaSBrown Jan 9, 2025
238fc1b
Update data_router.js
JoshuaSBrown Jan 9, 2025
7afcbb8
Update repo_router.js
JoshuaSBrown Jan 9, 2025
57de21a
Update task_router.js
JoshuaSBrown Jan 9, 2025
1028adb
Update eslint.config.js
JoshuaSBrown Jan 9, 2025
f2214f1
Update eslint.config.js
JoshuaSBrown Jan 9, 2025
1dd9821
Merge branch 'devel' into 1216-DAPS-feature-add-improved-ci-scanning
JoshuaSBrown Jan 9, 2025
42e174b
Merge branch 'devel' into 1209-feature-add-jsdoc-linter
JoshuaSBrown Jan 9, 2025
a1e15d0
fix jsdoc comment in posix path
JoshuaSBrown Jan 9, 2025
b3ccd1c
Address JSDOc complaints
JoshuaSBrown Jan 9, 2025
2ac3869
Address JSDoc errors
JoshuaSBrown Jan 9, 2025
32ca96e
Address linter
JoshuaSBrown Jan 9, 2025
0aff63a
Address linter errors
JoshuaSBrown Jan 9, 2025
c97251a
Fix order of parameters
JoshuaSBrown Jan 9, 2025
6ca1ee2
Apply formatting
JoshuaSBrown Jan 9, 2025
7555914
Merge pull request #1196 from ORNL/add-support-for-authz-lookup
JoshuaSBrown Jan 9, 2025
eb5f961
Merge branch '1180-refactor-authz' of github.com:ORNL/DataFed into 11…
JoshuaSBrown Jan 11, 2025
d85dccb
Add missing argument form strategy method call
JoshuaSBrown Jan 13, 2025
2f6e767
Merge branch '1180-refactor-authz' of github.com:ORNL/DataFed into 11…
JoshuaSBrown Jan 13, 2025
ad3f203
Apply prettier
JoshuaSBrown Jan 13, 2025
604fb5d
Update posix_path.js
JoshuaSBrown Jan 13, 2025
fbe4323
Address ai suggestion about better error message
JoshuaSBrown Jan 13, 2025
52838c9
Debugging log failure
JoshuaSBrown Jan 8, 2025
73e1be3
Account for multiple images returned in log
JoshuaSBrown Jan 9, 2025
fb88293
Update .gitlab/common.yml
JoshuaSBrown Jan 9, 2025
93ab582
Debugging log container matching
JoshuaSBrown Jan 9, 2025
8209957
Fix typo in gitlab anchor
JoshuaSBrown Jan 9, 2025
ccfc6b6
Debug escape anchor
JoshuaSBrown Jan 9, 2025
00c1d5c
Debug
JoshuaSBrown Jan 9, 2025
6222b54
Debug anchor 2
JoshuaSBrown Jan 9, 2025
3f1344c
Debug anchor 3
JoshuaSBrown Jan 9, 2025
34b015d
Debug anchor 4
JoshuaSBrown Jan 9, 2025
7ecee16
Debug anchor 5
JoshuaSBrown Jan 9, 2025
3813182
Debug 6
JoshuaSBrown Jan 9, 2025
85a3799
Debug 7
JoshuaSBrown Jan 9, 2025
f110c75
Debug 8
JoshuaSBrown Jan 9, 2025
e901493
Fix names of containers from gcs-authz to gcs
JoshuaSBrown Jan 9, 2025
6cf6fcd
Cleanup add comment back in
JoshuaSBrown Jan 9, 2025
141b257
Update common.yml
JoshuaSBrown Jan 9, 2025
286351e
Remove Exports
JoshuaSBrown Jan 9, 2025
2d55899
Cleanup comments and apply formatting
JoshuaSBrown Jan 13, 2025
c4dd784
Update nlhoman json version
JoshuaSBrown Jan 13, 2025
c9722c2
Update protobuf versions
JoshuaSBrown Jan 13, 2025
655fee0
Merge pull request #1218 from ORNL/1216-DAPS-feature-add-improved-ci-…
JoshuaSBrown Jan 13, 2025
3fb41c0
Add tests for authz router
JoshuaSBrown Jan 14, 2025
e1a2048
Specify ubuntu 20.04 explicitly
JoshuaSBrown Jan 14, 2025
62abbc6
Revert dependency versions
JoshuaSBrown Jan 14, 2025
0048e84
Fix problems with path consistent method
JoshuaSBrown Jan 14, 2025
431b090
Merge pull request #1227 from ORNL/1126-fix-json-nlhoman-bug
JoshuaSBrown Jan 14, 2025
67de479
Merge branch 'devel' into 1180-refactor-authz
JoshuaSBrown Jan 14, 2025
077dd67
Cleanup javascript
JoshuaSBrown Jan 14, 2025
ce5d2ad
Format javascript
JoshuaSBrown Jan 14, 2025
de98a85
Feature DLT 1127 relay new token data (#1217)
t-ramz Jan 14, 2025
2065742
[DLT-1110] Update files with prettier
AronPerez Dec 16, 2024
bc08132
[DLT-1110] Split branches
AronPerez Jan 3, 2025
60e7532
[DLT-1110] Update model, make logic private, remove controller form t…
AronPerez Jan 9, 2025
f7032d6
[DLT-1110] Add commnets to logic
AronPerez Jan 9, 2025
8807286
[DLT-1110] Correct HTML escape, francy tree init
AronPerez Jan 10, 2025
eb25b64
[DLT-1110] Pull out template HTML
AronPerez Jan 10, 2025
626c79d
[DLT-1110] Fix update bug
AronPerez Jan 11, 2025
870f1fc
[DLT-1110] Dependency injection
AronPerez Jan 14, 2025
3679a4f
[DLT-1110] Update if statements
AronPerez Jan 14, 2025
474673e
[DLT-1110] Update style
AronPerez Jan 14, 2025
48199c5
Merge pull request #1208 from ORNL/feat/DLT-1110/mapped-collection-en…
AronPerez Jan 14, 2025
f12bbc3
Revert "[DLT-1110] Mapped Collection Endpoint Browse (1/4)"
AronPerez Jan 14, 2025
80f5201
Merge pull request #1231 from ORNL/revert-1208-feat/DLT-1110/mapped-c…
AronPerez Jan 14, 2025
d8985b8
Merge branch 'devel' into 1209-feature-add-jsdoc-linter
JoshuaSBrown Jan 14, 2025
4bd8cab
Merge pull request #1210 from ORNL/1209-feature-add-jsdoc-linter
JoshuaSBrown Jan 15, 2025
76da5d7
Merge branch 'devel' into 1180-refactor-authz
JoshuaSBrown Jan 15, 2025
21c3ee7
Address eslint
JoshuaSBrown Jan 15, 2025
0f078c2
Address remaining eslint items
JoshuaSBrown Jan 15, 2025
39814b4
Fix bug on task_router.js abort function (#1234)
t-ramz Jan 15, 2025
33c44e9
Address Aaron feedback
JoshuaSBrown Jan 15, 2025
8866891
Reorder createRecord
JoshuaSBrown Jan 16, 2025
4e20244
Apply formatting
JoshuaSBrown Jan 16, 2025
443ee5f
Throw error if OpenStack error code returned from API
JoshuaSBrown Jan 16, 2025
3a50b2f
Add dependency between logs
JoshuaSBrown Jan 16, 2025
03aa9a6
Add dependencies on end to end jobs as well
JoshuaSBrown Jan 16, 2025
df1e436
Job rule is not supported
JoshuaSBrown Jan 16, 2025
ebecfab
Remove always run log
JoshuaSBrown Jan 16, 2025
3222810
add end to end signal job
JoshuaSBrown Jan 16, 2025
23eca53
Fix tag of signal
JoshuaSBrown Jan 16, 2025
812c2bf
Merge pull request #1238 from ORNL/1236-bug-job-not-failing-with-setu…
JoshuaSBrown Jan 16, 2025
5ca6bcf
Merge branch 'devel' into 1180-refactor-authz
JoshuaSBrown Jan 16, 2025
049a4f4
Merge branch '1236-bug-job-not-failing-with-setup-script' into devel
JoshuaSBrown Jan 16, 2025
c7cdae3
Merge branch 'devel' into 1180-refactor-authz
JoshuaSBrown Jan 16, 2025
e7972b8
Merge pull request #1224 from ORNL/1180-refactor-authz
JoshuaSBrown Jan 17, 2025
beb78ca
Feature DLT 1120 retrieve transfer token (#1228)
t-ramz Jan 22, 2025
fcf4780
Bug daps 1243 datafed web logging (#1251)
t-ramz Jan 23, 2025
45eb9bf
[DLT-1110] Mapped Collection Endpoint Browse (1/4) (#1240)
AronPerez Jan 23, 2025
4f86a90
Fix edge case in GridFTP Authz where '/' is used
JoshuaSBrown Jan 27, 2025
fdc8f3c
cpp-py-formatter
Jan 27, 2025
2aaca81
Add changelog comment
JoshuaSBrown Jan 27, 2025
c44ed18
Merge branch '1257-bug-authz-root-path-stripping-leading-forward-slas…
JoshuaSBrown Jan 27, 2025
1ded325
Address prettier formatting
JoshuaSBrown Jan 27, 2025
eb92f7b
Merge pull request #1258 from ORNL/1257-bug-authz-root-path-stripping…
JoshuaSBrown Jan 27, 2025
3a47ffd
Add method for testing config, fix bug in global config, fix redundan…
JoshuaSBrown Jan 28, 2025
0e1fc90
Make error detection clearer in bool
JoshuaSBrown Jan 28, 2025
ebc4ff6
Add mock core server
JoshuaSBrown Jan 28, 2025
c150f5d
Add integration and, liveness test for mock
JoshuaSBrown Jan 28, 2025
b601f1c
Address mock integration setup and consolidate
JoshuaSBrown Jan 29, 2025
1043226
Apply formatting
JoshuaSBrown Jan 29, 2025
2b550c1
Remove unused timeout variable from mock
JoshuaSBrown Jan 29, 2025
8c6f3a0
Address JSDoc complaints
JoshuaSBrown Jan 29, 2025
1c14b10
Apply prettier
JoshuaSBrown Jan 29, 2025
44e99b9
Fix formatting and eslint prettier issues
JoshuaSBrown Jan 29, 2025
5ab5fb3
Address codacy feedback
JoshuaSBrown Jan 29, 2025
a763b4c
Add changelog comment
JoshuaSBrown Jan 29, 2025
e39988d
Merge branch 'devel' into 1255-feature-mock-core-server-integration-t…
JoshuaSBrown Jan 29, 2025
cac82e3
Merge pull request #1262 from ORNL/1261-fix-JSDoc-errors
JoshuaSBrown Jan 29, 2025
968a52b
Clean up grammar in comment
JoshuaSBrown Jan 29, 2025
3010be2
Add note in Config.h
JoshuaSBrown Jan 29, 2025
ce5e14d
Apply clang formatting
JoshuaSBrown Jan 29, 2025
9f899ff
Fix merge conflict
JoshuaSBrown Jan 29, 2025
763231c
Address merge conflict
JoshuaSBrown Jan 29, 2025
9e447ce
Address codacy issues
JoshuaSBrown Jan 29, 2025
1b2ebf6
Merge pull request #1260 from ORNL/1255-feature-mock-core-server-inte…
JoshuaSBrown Jan 29, 2025
bf39513
Add env var
JoshuaSBrown Jan 31, 2025
7b9e415
Update Arangodb packaged version to using 3.12.4
JoshuaSBrown Jan 31, 2025
c99eefb
Fix confusion in key uses in end to end tests
JoshuaSBrown Jan 31, 2025
714381f
Add change log comment
JoshuaSBrown Feb 1, 2025
5ab82dc
Add changelog comment
JoshuaSBrown Feb 1, 2025
1b0583a
Merge pull request #1274 from ORNL/1273-bug-ci-wrong-key
JoshuaSBrown Feb 1, 2025
7b2aa4a
Initial commit to fix log output from AuthzWorker.cpp
JoshuaSBrown Feb 1, 2025
f8f7b5d
Merge pull request #1271 from ORNL/1269-bug-premature-shutdown-arango…
JoshuaSBrown Feb 3, 2025
840577a
Merge branch 'devel' into 1268-bug-foxx-docker-file-unbound-env-var
JoshuaSBrown Feb 3, 2025
68018f5
Add compose entries for foxx tests
JoshuaSBrown Feb 3, 2025
9516014
Merge branch 'devel' into 1268-bug-foxx-docker-file-unbound-env-var
JoshuaSBrown Feb 3, 2025
692df8d
Merge pull request #1270 from ORNL/1268-bug-foxx-docker-file-unbound-…
JoshuaSBrown Feb 3, 2025
5b17a7e
Merge branch 'devel' into 1276-bug-authzworker-log-output
JoshuaSBrown Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/javascript-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: JavaScript Formatter
on: push
jobs:
format-javascript:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout Code
uses: actions/checkout@v4

# Step 2: Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18' # Specify your Node.js version

# Step 3: Install Prettier and ESLint globally
- name: Install Prettier
run: |
npm install -g prettier

# Step 4: Run Prettier to format code
- name: Run prettier
run: |
prettier "**/*.js" --write
git diff
git reset --hard
prettier --check "**/*.js"

# Step 5: Report status
- name: Complete
run: echo "Formatting completed successfully!"

28 changes: 28 additions & 0 deletions .github/workflows/javascript-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: JavaScript Linter
on: push
jobs:
lint-javascript:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout Code
uses: actions/checkout@v4

# Step 2: Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18' # MOre up to date version needed for linter

# Step 3: Instal ESLint and run
- name: Install ESLint
run: |
npm init -y
npm install eslint@latest @babel/eslint-parser@latest eslint-define-config globals eslint-plugin-jsdoc --save
npx eslint "**/*.js"

# Step 4: Report status
- name: Complete
run: echo "Linting completed successfully!"

4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Unit-Testing
on: push
jobs:
unit-test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: ${{ always() }}
steps:
- uses: actions/checkout@v2
Expand All @@ -15,7 +15,7 @@ jobs:
./scripts/generate_datafed.sh
- name: Build
run: |
cmake -S. -B build -DCMAKE_BUILD_TYPE=Debug
cmake -S. -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_WEB_SERVER=OFF
cmake --build build -j4
- name: Run tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ python/datafed_pkg/datafed/Version_pb2.py
python/datafed_pkg/datafed/__pycache__/
python/datafed_pkg/dist/
web/package.json
repository/gridftp/globus5/authz/mock_core/Version.hpp
repository/gridftp/globus5/authz/source/Version.hpp
repository/server/Version.hpp
scripts/globus/datafed-home-repo.sh
Expand Down
6 changes: 6 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ include:
- local: .gitlab/stage_provision_client.yml
- local: .gitlab/stage_image_check.yml
- local: .gitlab/stage_build.yml
- local: .gitlab/stage_test.yml
- local: .gitlab/stage_unit.yml
- local: .gitlab/end_to_end.yml

stages:
Expand All @@ -34,9 +36,12 @@ stages:
- provision-client
- image-check
- build
- test # Required for gitlab sast templates
- unit
- end-to-end-setup-arango
- end-to-end-setup
- end-to-end-test
- end-to-end-test-finish-signal
- log
- deploy-pypi-package

Expand All @@ -50,3 +55,4 @@ variables:
HARBOR_USER: 'robot$$datafed+harbor_datafed_gitlab_ci_registry_2'
REGISTRY: 'camden.ornl.gov'
DATAFED_DEPENDENCIES_INSTALL_PATH: "/shared/install"
DOCKER_TLS_CERTDIR: "" # Required for running docker in docker
19 changes: 17 additions & 2 deletions .gitlab/build/build_core_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ build-core:
extends: .docker_build_script
stage: build
variables:
IMAGE_TAG: "datafed/core"
PROJECT: "datafed"
COMPONENT: "core"
GIT_STRATEGY: clone
DOCKER_FILE_PATH: "core/docker/Dockerfile"
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- ci-datafed-core
- docker
Expand All @@ -31,8 +33,21 @@ retag-image:
extends: .docker_retag_image
stage: build
variables:
IMAGE_TAG: "datafed/core"
PROJECT: "datafed"
COMPONENT: "core"
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- docker
rules:
- changes:
- docker/**/*
- scripts/**/*
- core/**/*
- common/**/*
- CMakeLists.txt
- cmake/**/*
- .gitlab-ci.yml
when: never
- when: on_success
23 changes: 20 additions & 3 deletions .gitlab/build/build_foxx_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,44 @@ build-foxx:
extends: .docker_build_script
stage: build
variables:
IMAGE_TAG: "datafed/foxx"
PROJECT: "datafed"
COMPONENT: "foxx"
GIT_STRATEGY: clone
DOCKER_FILE_PATH: "docker/Dockerfile.foxx"
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- docker
rules:
- changes:
- docker/**/*
- scripts/**/*
- web/**/*
- core/database/**/*
- core/CMakeLists.txt
- common/proto/**/*
- .gitlab-ci.yml
- CMakeLists.txt
when: on_success

retag-image:
extends: .docker_retag_image
stage: build
variables:
IMAGE_TAG: "datafed/foxx"
PROJECT: "datafed"
COMPONENT: "foxx"
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- docker
rules:
- changes:
- docker/**/*
- scripts/**/*
- core/database/**/*
- core/CMakeLists.txt
- common/proto/**/*
- .gitlab-ci.yml
- CMakeLists.txt
when: never
- when: on_success
37 changes: 26 additions & 11 deletions .gitlab/build/build_gcs_base_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ include:
build-gcs-base:
stage: build
variables:
IMAGE_TAG: "datafed/gcs-base"
PROJECT: "datafed"
COMPONENT: "gcs-base"
GIT_SUBMODULE_STRATEGY: recursive
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- ci-datafed-globus
- docker
Expand All @@ -31,28 +33,41 @@ build-gcs-base:
- cd "external/globus-connect-server-deploy/docker"
- git checkout "$DATAFED_GCS_SUBMODULE_VERSION"
- docker login "${REGISTRY}" -u "${HARBOR_USER}" -p "${HARBOR_DATAFED_GITLAB_CI_REGISTRY_TOKEN}"
- docker build --progress plain -t "${REGISTRY}/${IMAGE_TAG}-${BRANCH_LOWER}:latest" - < "./docker-files/Dockerfile.ubuntu-20.04"
- docker tag "${REGISTRY}/${IMAGE_TAG}-${BRANCH_LOWER}:latest" "${REGISTRY}/${IMAGE_TAG}-${BRANCH_LOWER}:$CI_COMMIT_SHA"
- export DATAFED_HARBOR_REPOSITORY="${IMAGE_TAG}-${BRANCH_LOWER}"
- docker build --progress plain -t "${REGISTRY}/${PROJECT}/${COMPONENT}-${BRANCH_LOWER}:latest" - < "./docker-files/Dockerfile.ubuntu-20.04"
- docker tag "${REGISTRY}/${PROJECT}/${COMPONENT}-${BRANCH_LOWER}:latest" "${REGISTRY}/${PROJECT}/${COMPONENT}-${BRANCH_LOWER}:$CI_COMMIT_SHA"
- export DATAFED_HARBOR_REPOSITORY="${COMPONENT}-${BRANCH_LOWER}"
- export DATAFED_HARBOR_USERNAME="${HARBOR_USER}"
- export DATAFED_HARBOR_PASSWORD="${HARBOR_DATAFED_GITLAB_CI_REGISTRY_TOKEN}"
- docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:latest"
- docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
- docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:latest"
- docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
- cd "${CI_PROJECT_DIR}"
- |
while [ "$(${CI_PROJECT_DIR}/scripts/ci_harbor_artifact_count.sh)" == "0" ]; do
while [ "$(${CI_PROJECT_DIR}/scripts/ci_harbor_artifact_count.sh -r ${DATAFED_HARBOR_REPOSITORY})" == "0" ]; do
echo "Artifact missing from harbor..."
docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:latest"
docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:latest"
docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
sleep 5 # Optional: Add a sleep to avoid busy waiting
done
- cat "./harbor_check.log"
- cat "${CI_PROJECT_DIR}/harbor_check.log"

retag-image:
extends: .docker_retag_image
stage: build
variables:
IMAGE_TAG: "datafed/gcs-base"
PROJECT: "datafed"
COMPONENT: "gcs-base"
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- docker
rules:
- changes:
- docker/**/*
- scripts/**/*
- common/**/*
- .gitlab-ci.yml
- CMakeLists.txt
- cmake/**/*
when: never
- when: on_success
40 changes: 28 additions & 12 deletions .gitlab/build/build_gcs_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ include:
build-gcs:
stage: build
variables:
IMAGE_TAG: "datafed/gcs"
PROJECT: "datafed"
COMPONENT: "gcs"
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- ci-datafed-globus
- docker
Expand All @@ -28,31 +30,45 @@ build-gcs:
script:
- BRANCH_LOWER=$(echo "$CI_COMMIT_REF_NAME" | tr '[:upper:]' '[:lower:]')
- echo "$BRANCH_LOWER"
- ./scripts/generate_datafed.sh
- "${CI_PROJECT_DIR}/scripts/generate_datafed.sh"
- docker login "${REGISTRY}" -u "${HARBOR_USER}" -p "${HARBOR_DATAFED_GITLAB_CI_REGISTRY_TOKEN}"
- docker build --build-arg DEPENDENCIES="${REGISTRY}/datafed/dependencies-${BRANCH_LOWER}:latest" --build-arg RUNTIME="${REGISTRY}/datafed/runtime-${BRANCH_LOWER}:latest" --build-arg GCS_IMAGE="${REGISTRY}/datafed/gcs-base-${BRANCH_LOWER}:latest" -f repository/docker/Dockerfile.gcs -t "${REGISTRY}/${IMAGE_TAG}-${BRANCH_LOWER}:latest" .
- docker tag "${REGISTRY}/${IMAGE_TAG}-${BRANCH_LOWER}:latest" "${REGISTRY}/${IMAGE_TAG}-${BRANCH_LOWER}:$CI_COMMIT_SHA"
- export DATAFED_HARBOR_REPOSITORY="${IMAGE_TAG}-${BRANCH_LOWER}"
- docker build --build-arg DEPENDENCIES="${REGISTRY}/datafed/dependencies-${BRANCH_LOWER}:latest" --build-arg RUNTIME="${REGISTRY}/datafed/runtime-${BRANCH_LOWER}:latest" --build-arg GCS_IMAGE="${REGISTRY}/datafed/gcs-base-${BRANCH_LOWER}:latest" -f repository/docker/Dockerfile.gcs -t "${REGISTRY}/${PROJECT}/${COMPONENT}-${BRANCH_LOWER}:latest" .
- docker tag "${REGISTRY}/${PROJECT}/${COMPONENT}-${BRANCH_LOWER}:latest" "${REGISTRY}/${PROJECT}/${COMPONENT}-${BRANCH_LOWER}:$CI_COMMIT_SHA"
- export DATAFED_HARBOR_REPOSITORY="${COMPONENT}-${BRANCH_LOWER}"
- export DATAFED_HARBOR_USERNAME="${HARBOR_USER}"
- export DATAFED_HARBOR_PASSWORD="${HARBOR_DATAFED_GITLAB_CI_REGISTRY_TOKEN}"
- docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:latest"
- docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
- docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:latest"
- docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
- |
while [ "$(./scripts/ci_harbor_artifact_count.sh)" == "0" ]; do
while [ "$(${CI_PROJECT_DIR}/scripts/ci_harbor_artifact_count.sh -r ${DATAFED_HARBOR_REPOSITORY})" == "0" ]; do
echo "Artifact missing from harbor..."
docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:latest"
docker push "${REGISTRY}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:latest"
docker push "${REGISTRY}/${PROJECT}/${DATAFED_HARBOR_REPOSITORY}:$CI_COMMIT_SHA"
sleep 5 # Optional: Add a sleep to avoid busy waiting
done
- cat "./harbor_check.log"
- cat "${CI_PROJECT_DIR}/harbor_check.log"

retag-image:
extends: .docker_retag_image
stage: build
variables:
IMAGE_TAG: "datafed/gcs"
PROJECT: "datafed"
COMPONENT: "gcs"
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- ci-datafed-globus
- docker
rules:
- changes:
- docker/**/*
- scripts/**/*
- common/**/*
- .gitlab-ci.yml
- CMakeLists.txt
- cmake/**/*
- repository/docker/entrypoint_authz.sh
- repository/docker/Dockerfile.gcs
when: never
- when: on_success
18 changes: 16 additions & 2 deletions .gitlab/build/build_repo_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ build-repo:
extends: .docker_build_script
stage: build
variables:
IMAGE_TAG: "datafed/repo"
PROJECT: "datafed"
COMPONENT: "repo"
GIT_STRATEGY: clone
DOCKER_FILE_PATH: "repository/docker/Dockerfile"
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- ci-datafed-repo
- docker
Expand All @@ -29,8 +31,20 @@ retag-image:
extends: .docker_retag_image
stage: build
variables:
IMAGE_TAG: "datafed/repo"
PROJECT: "datafed"
COMPONENT: "repo"
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
tags:
- docker
rules:
- changes:
- docker/**/*
- scripts/**/*
- web/**/*
- common/proto/**/*
- .gitlab-ci.yml
when: never
- when: on_success

Loading