Job failed, not uploading cache.
I am trying to use the .zephyr jobs with the following .gitlab-ci.yml file:
include:
- project: 'zygoon/zephyr-ci-pipelines'
file: '/zephyr.yml'
variables:
CI_ZEPHYR_BOARD: rpi_pico
CI_ZEPHYR_SDK_TOOLCHAIN: arm-zephyr-eabi
CI_ZEPHYR_SDK_VERSION: 0.16.4
blinky:
extends: .zephyr
needs:
- job: zephyr-cache
optional: true
script:
- pwd
- ls
- west build -p auto -b "$CI_ZEPHYR_BOARD" zephyr/samples/basic/blinky
When I run the pipeline, I get a 'Job failed' error with the following log:
Running with gitlab-runner 16.6.0~beta.105.gd2263193 (d2263193)
on blue-3.saas-linux-small-amd64.runners-manager.gitlab.com/default zxwgkjAP, system ID: s_d5d3abbdfd0a
feature flags: FF_USE_IMPROVED_URL_MASKING:true
Preparing the "docker+machine" executor
Using Docker executor with image ubuntu:22.04 ...
Pulling docker image ubuntu:22.04 ...
Using docker image sha256:b6548eacb0639263e9d8abfee48f8ac8b327102a05335b67572f715c580a968e for ubuntu:22.04 with digest ubuntu@sha256:8eab65df33a6de2844c9aefd19efe8ddb87b7df5e9185a4ab73af936225685bb ...
Preparing environment 00:01
Running on runner-zxwgkjap-project-52726209-concurrent-0 via runner-zxwgkjap-s-l-s-amd64-1701623879-e5f7887d...
Getting source from Git repository 00:01
Fetching changes with git depth set to 20...
Initialized empty Git repository in /builds/XXXXX/YYYYYY/.git/
Created fresh repository.
Checking out b7cd9ea7 as detached HEAD (ref is add-ci)...
Skipping Git submodules setup
$ git remote set-url origin "${CI_REPOSITORY_URL}"
Restoring cache 00:00
Checking cache for zephyr-sdk-0.16.4-linux-x86_64-non_protected...
WARNING: file does not exist
Failed to extract cache
Checking cache for west-workspace-v3.1.0-non_protected...
WARNING: file does not exist
Failed to extract cache
Checking cache for pip-cache-v3.1.0-non_protected...
WARNING: file does not exist
Failed to extract cache
Executing "step_script" stage of the job script
Using docker image sha256:b6548eacb0639263e9d8abfee48f8ac8b327102a05335b67572f715c580a968e for ubuntu:22.04 with digest ubuntu@sha256:8eab65df33a6de2844c9aefd19efe8ddb87b7df5e9185a4ab73af936225685bb ...
$ echo -e "\e[0K""section_start"":$(date +%s):""install_deps""[collapsed=true]\r\e[0K""Installing distribution dependencies"
Installing distribution dependencies 00:36
$ echo -e "\e[0K""section_start"":$(date +%s):""install_west""[collapsed=true]\r\e[0K""Installing west"
Installing west 00:02
$ echo -e "\e[0K""section_start"":$(date +%s):""system_info""[collapsed=true]\r\e[0K""Querying system information"
Querying system information 00:00
$ echo -e "\e[0K""section_start"":$(date +%s):""west_init_update""[collapsed=true]\r\e[0K""Initializing and updating west workspace (url=${CI_ZEPHYR_MANIFEST_URL}, revision=${CI_ZEPHYR_MANIFEST_REV})"
Initializing and updating west workspace (url=https://github.com/zephyrproject-rtos/zephyr, revision=v3.1.0)
$ echo -e "\e[0K""section_start"":$(date +%s):""install_more_deps""[collapsed=true]\r\e[0K""Installing extra Python dependencies"
Installing extra Python dependencies
$ echo -e "\e[0K""section_start"":$(date +%s):""install_zephyr_sdk""[collapsed=true]\r\e[0K""Installing Zephyr SDK (version=${CI_ZEPHYR_SDK_VERSION})"
Installing Zephyr SDK (version=0.16.4)
Saving cache for failed job 00:00
Not uploading cache zephyr-sdk-0.16.4-linux-x86_64-non_protected due to policy
Not uploading cache west-workspace-v3.1.0-non_protected due to policy
Not uploading cache pip-cache-v3.1.0-non_protected due to policy
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1
I do not see the actual build step executing so I guess the job is failing because of the failed cache upload.
Am I missing something ?