2

Cache doesn't work on test-agent workflow · Issue #251 · metalbear-co/mirrord ·...

 2 years ago
source link: https://github.com/metalbear-co/mirrord/issues/251
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Member

aviramha commented 4 days ago

This is because the test runs as sudo so files generated are owned by root and inaccessible by the cache step.
I think the solution would be to chown + chmod /home/runner after the test step.

 Warning:  Error: EACCES: permission denied, unlink 'target/.rustc_info.json'
Saving paths:
    /home/runner/.cargo/bin
    /home/runner/.cargo/.crates2.json
    /home/runner/.cargo/.crates.toml
    /home/runner/.cargo/git
    /home/runner/.cargo/registry/cache
    /home/runner/.cargo/registry/index
    ./target
In directory:
    /home/runner/work/mirrord/mirrord
Using key:
    v0-rust-test_agent-1.65.0-nightly-x86_64-unknown-linux-gnu-40336865fe7d-9171b6d895d02fffccae
/usr/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/mirrord/mirrord --files-from manifest.txt
/usr/bin/tar: target/debug/incremental/blackbox-34daxfo3mm4ec/s-gcn94hk6gy-smlylx.lock: Cannot open: Permission denied
/usr/bin/tar: target/debug/incremental/mirrord_agent-14k6tje8q69ge/s-gcn94f070r-wi6mfi.lock: Cannot open: Permission denied
/usr/bin/tar: target/debug/incremental/mirrord_protocol-2pyu3jgyyh7tj/s-gcn9432fvv-ldv9o9.lock: Cannot open: Permission denied
/usr/bin/tar: target/debug/incremental/mirrord_agent-3ih4vx5zbudzn/s-gcn94f06zn-10xo0pv.lock: Cannot open: Permission denied
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to save: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK