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

Hotfix/checkout fails in ci #1136

Merged

Conversation

JulienGrv
Copy link
Contributor

@JulienGrv JulienGrv commented Jan 26, 2025

Git checkout is failing in CI for branches in fork repositories but also for PR somehow because the token SUBMODULE_PAT only exists for the asammdf repository. I removed the token because it should not be needed as libdeflate is a public repository (tested in my repository and it worked) or is there any reason why it might be needed that I overlooked?

@danielhrisca
Copy link
Owner

From what I saw the submodule was not properly retrieved in the github actions jobs without the token

@JulienGrv
Copy link
Contributor Author

JulienGrv commented Jan 28, 2025

Tests pipelines are passing so it works without token. I have to check for the other pipelines. If you look at my other opened pull requests where I did not edit the main.yml, you will see that tests pipelines are failing because the token is required, which does not work because I don't have a SUBMODULE_PAT token defined in my repository settings. I could add it but it should not be necessary because libdeflate is a public repository.

I will look at the other pipelines though. Maybe we need to update to checkout v4.

I will come back to you with more info

@JulienGrv JulienGrv force-pushed the hotfix/checkout-fails-in-ci branch from aae1aeb to 94678ca Compare January 28, 2025 22:42
@JulienGrv
Copy link
Contributor Author

JulienGrv commented Jan 28, 2025

I removed the token for all the pipelines/workflows and they are all able to checkout now (tests, wheels, coveralls, and pyinstaller_build).

The reason it was failing with the token is that: SUBMODULE_PAT is a secret that only exists in your repository and is not accessible for branches and PR coming from other repositories. To fix this I removed the token. I don't know why you added the token initially because from my understanding it is not necessary to have it in order to clone libdeflate because libdeflate is a public repository on github.com

@danielhrisca
Copy link
Owner

let me know when your pull requests are ready

@JulienGrv
Copy link
Contributor Author

@danielhrisca this one is ready to merge thank you

@danielhrisca danielhrisca merged commit e5382cd into danielhrisca:development Jan 30, 2025
20 of 25 checks passed
@danielhrisca
Copy link
Owner

thanks

@JulienGrv JulienGrv deleted the hotfix/checkout-fails-in-ci branch January 30, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants