Gitlab CI/CD pipelines do not execute scripts
Summary
Steps to reproduce
.gitlab-ci.yml
install dependencies:
stage: install
script:
- mkdir -p .git/hooks/
- mkdir -p dist/app
- npm install
only:
refs:
- master
changes:
- package.json
Actual behavior
The pipeline succeeds without any job running.
Expected behavior
The job should run.
Relevant logs and/or screenshots
job log
Running with gitlab-runner 16.3.0~beta.108.g2b6048b4 (2b6048b4)
on green-5.saas-linux-small-amd64.runners-manager.gitlab.com/default xS6Vzpvo, system ID: s_6b1e4f06fcfd
feature flags: FF_USE_IMPROVED_URL_MASKING:true, FF_RESOLVE_FULL_TLS_CHAIN:false
Preparing the "docker+machine" executor
00:34
Using Docker executor with image nasheedstation/nasheedstation ...
Pulling docker image nasheedstation/nasheedstation ...
Using docker image sha256:2e38ee21fcef7cc4126678bab975054c3b9289eb3d905226419c7874fbb38888 for nasheedstation/nasheedstation with digest nasheedstation/nasheedstation@sha256:2492d352899106073fd7f854aa939c014a9a19058bbd510f3e7615519ea4f269 ...
Preparing environment
00:06
Running on runner-xs6vzpvo-project-16782488-concurrent-0 via runner-xs6vzpvo-s-l-s-amd64-1694439120-618061f7...
Getting source from Git repository
00:03
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/ibnYusrat/nasheedstation/.git/
Created fresh repository.
Checking out 3ad0edea as detached HEAD (ref is master)...
Skipping Git submodules setup
$ git remote set-url origin "${CI_REPOSITORY_URL}"
Restoring cache
00:00
Checking cache for default-3-protected...
WARNING: file does not exist
Failed to extract cache
Executing "step_script" stage of the job script
00:01
Using docker image sha256:2e38ee21fcef7cc4126678bab975054c3b9289eb3d905226419c7874fbb38888 for nasheedstation/nasheedstation with digest nasheedstation/nasheedstation@sha256:2492d352899106073fd7f854aa939c014a9a19058bbd510f3e7615519ea4f269 ...
v18.17.1
Saving cache for successful job
00:00
Creating cache default-3-protected...
WARNING: node_modules/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/ibnYusrat/nasheedstation)
WARNING: functions/node_modules/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/ibnYusrat/nasheedstation)
.firebase/: found 3 matching artifact files and directories
Uploading cache.zip to https://storage.googleapis.com/gitlab-com-runners-cache/project/16782488/default-3-protected
Created cache
Cleaning up project directory and file based variables
00:01
Job succeeded
Environment description
config.toml contents
Add your configuration here
Used GitLab Runner version
Possible fixes
A few more clarifications
The exact job does work perfectly if I run it locally with gitlab-executor exec shell "install dependencies"
and it used to work perfectly until just about a month ago. The file is practically the same as it was a month ago, and then suddenly this started to ahppen.