Failing gprd-cny-gitaly jobs due to Git authentication for patcher submodule updates
The gprd-cny-gitaly jobs are failing with:
fatal: could not read Username for 'https://ops.gitlab.net': No such device or address
This occurs when the CI job tries to update the patcher submodule with git pull origin master.
- Failing job: https://ops.gitlab.net/gitlab-com/gl-infra/deployer/-/jobs/21293844
- Retry also failed: https://ops.gitlab.net/gitlab-com/gl-infra/deployer/-/jobs/21294344
Root Cause
GitLab automatically injects CI_JOB_TOKEN credentials for the initial repository clone and submodule initialization, but manual Git operations later in the job (like the patcher update in .gitlab-ci.yml) don't automatically have credentials configured.
When git pull tries to authenticate to https://ops.gitlab.net, it attempts to prompt for credentials interactively, which fails in the CI environment with "No such device or address".
I opened a fix: https://ops.gitlab.net/gitlab-com/gl-infra/deployer/-/merge_requests/660
Edited by Mawreen Dela Cruz