Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] CI fails to download cryostat-core dependency #126

Closed
andrewazores opened this issue May 24, 2023 · 8 comments · Fixed by #149 or #151
Closed

[Task] CI fails to download cryostat-core dependency #126

andrewazores opened this issue May 24, 2023 · 8 comments · Fixed by #149 or #151
Assignees
Labels
chore Refactor, rename, cleanup, etc. ci good first issue Good for newcomers

Comments

@andrewazores
Copy link
Member

For example:

#125
(https://github.com/cryostatio/cryostat-agent/actions/runs/5070291951/jobs/9105123984?pr=125)
image

The project's pom.xml is configured to search the GitHub Maven Packages repository, but authentication is failing.

<repositories>

The CI workflow does have a step that is supposed to set up the Maven settings.xml that provides the credentials however:

servers: '[{"id": "github", "username": "dummy", "password": "${env.GITHUB_TOKEN_REF}"}]'

And the same or very similar configuration is used in the main Cryostat repository, which works and is able to download the cryostat-core dependency:

https://github.com/cryostatio/cryostat/blob/2b0cd5adacf8f928f8666f36663b0a5b31e0e76b/.github/workflows/ci-jobs.yml#L53

@andrewazores andrewazores added chore Refactor, rename, cleanup, etc. ci labels May 24, 2023
@ebaron
Copy link
Member

ebaron commented May 24, 2023

This is the pull_request_target issue right?

@andrewazores
Copy link
Member Author

I think so, yes. The secret is probably unreadable to the actions runners with the current configuration so the authentication fails because the password/token being provided in the Maven settings.xml would be an empty string.

@andrewazores
Copy link
Member Author

(it's frustrating that GitHub Packages still doesn't allow unauthenticated downloads)

@andrewazores
Copy link
Member Author

#149 (comment)

@andrewazores andrewazores reopened this Jun 15, 2023
@andrewazores
Copy link
Member Author

It looks like the CI job also needs to (re)trigger when PRs are labelled or unlabelled:

#150

This PR is failing because the runner thinks safe-to-test is missing, but it is actually there, and removing/re-adding the label doesn't trigger the job again, nor does it seem to be able to refresh its state on a re-run.

pull_request_target:

vs

https://github.com/cryostatio/cryostat/blob/main/.github/workflows/pr-ci.yml#L13

@maxcao13
Copy link
Member

Sounds good, I'll redo it today.

@maxcao13
Copy link
Member

Fixed with #151, hopefully.

@andrewazores
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Refactor, rename, cleanup, etc. ci good first issue Good for newcomers
Projects
No open projects
Status: Done
3 participants