ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
25 stars 17 forks source link

[CI] - CI Job complaining about missing CI script #1015

Closed JoshuaSBrown closed 1 month ago

JoshuaSBrown commented 1 month ago

Description

Seeing the following error when attempting to run a CI job. This is indicative that the CI job might be running the ./scripts/ci_harbor_artifact_count.sh script from the wrong relative path.

Screenshot (174)

$ while [ "$(./scripts/ci_harbor_artifact_count.sh)" == "0" ]; do # collapsed multi-line command
bash: line 239: ./scripts/ci_harbor_artifact_count.sh: No such file or directory
$ cat "./harbor_check.log"
cat: ./harbor_check.log: No such file or directory
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit status 1

Verifying that the script is where it is supposed to be by logging into the runner VM.

cloud@ci-datafed-globus2:/home/gitlab-runner/builds/atE7ckEEH/0/dlsw/datafed/datafed$ ls -la ./scripts/ | grep harbor
-rwxr-xr-x  1 gitlab-runner docker  2408 Oct 28 09:24 ci_harbor_artifact_count.sh
JoshuaSBrown commented 1 month ago

Screenshot (186)