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

Cargo caching with forklift #2466

Merged
merged 38 commits into from
Dec 4, 2023
Merged
Changes from 34 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c44c327
add forklift for test abd build, use image with rust 1.71
AndWeHaveAPlan Oct 3, 2023
66650a4
rustc_wrapper mode
AndWeHaveAPlan Oct 21, 2023
50ed586
CI_IMAGE
AndWeHaveAPlan Oct 21, 2023
47c7e52
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 6, 2023
1e5d00d
forklift 0.6.9 + cargo alias
AndWeHaveAPlan Nov 9, 2023
da9adc1
forklift PATH
AndWeHaveAPlan Nov 9, 2023
e574b48
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 9, 2023
7283aef
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 10, 2023
960289f
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 13, 2023
ddbd679
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 14, 2023
e9c87b1
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 14, 2023
68928b2
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 16, 2023
07127de
rename rusty-cachier job to forklift
AndWeHaveAPlan Nov 16, 2023
ae9b6d4
forklift clean
AndWeHaveAPlan Nov 18, 2023
d8939f3
rm socket
AndWeHaveAPlan Nov 19, 2023
438dc59
rm -f forklift.sock
AndWeHaveAPlan Nov 19, 2023
9618a4c
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 19, 2023
630c4b7
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 19, 2023
46eb0e1
FORKLIFT_BYPASS
AndWeHaveAPlan Nov 19, 2023
419b1b6
multiline if
AndWeHaveAPlan Nov 19, 2023
4498bc6
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 20, 2023
3fd52ea
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 21, 2023
052f106
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 21, 2023
ca87623
revert build and test jobs
AndWeHaveAPlan Nov 23, 2023
c323e98
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 23, 2023
513d387
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 23, 2023
068c749
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 23, 2023
a7a1b1a
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 24, 2023
e746fe0
CI_JOB_NAME_SLUG
AndWeHaveAPlan Nov 24, 2023
0f2e999
revert
AndWeHaveAPlan Nov 24, 2023
f5127b6
{ fix
AndWeHaveAPlan Nov 24, 2023
3878c0a
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 27, 2023
8f2030c
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 27, 2023
26754af
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Nov 27, 2023
3ea4829
set env explicitly
AndWeHaveAPlan Dec 4, 2023
77560c6
forklift version from reference
AndWeHaveAPlan Dec 4, 2023
fd33cd6
move forklift vars
AndWeHaveAPlan Dec 4, 2023
87f98c1
Merge branch 'master' into es/forklift-test
AndWeHaveAPlan Dec 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,31 @@ default:
- !reference [.common-before-script, before_script]
- !reference [.prepare-env, before_script]
- !reference [.rust-info-script, script]
- !reference [.rusty-cachier, before_script]
- !reference [.forklift, before_script]
tags:
- linux-docker

# rusty-cachier's hidden job. Parts of this job are used to instrument the pipeline's other real jobs with rusty-cachier
# rusty-cachier's commands are described here: https://gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client#description
.rusty-cachier:
#
.forklift:
before_script:
# - curl -s https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client/-/raw/release/util/install.sh | bash
# - mkdir -p cargo_home cargo_target_dir
# - export CARGO_HOME=$CI_PROJECT_DIR/cargo_home
# - export CARGO_TARGET_DIR=$CI_PROJECT_DIR/cargo_target_dir
# - find . \( -path ./cargo_target_dir -o -path ./cargo_home \) -prune -o -type f -exec touch -t 202005260100 {} +
# - git restore-mtime
# - rusty-cachier --version
# - rusty-cachier project touch-changed
- echo tbd
- 'curl --header "PRIVATE-TOKEN: $FL_CI_GROUP_TOKEN" -o forklift -L "${CI_API_V4_URL}/projects/676/packages/generic/forklift/${FL_FORKLIFT_VERSION}/forklift_${FL_FORKLIFT_VERSION}_linux_amd64"'
- chmod +x forklift
- mkdir .forklift
- cp $FL_FORKLIFT_CONFIG .forklift/config.toml
- export FORKLIFT_PACKAGE_SUFFIX=${CI_JOB_NAME/ [0-9 \/]*}
- shopt -s expand_aliases
- export PATH=$PATH:$(pwd)
- |
if [ "$FORKLIFT_BYPASS" != "true" ]; then
echo "FORKLIFT_BYPASS not set, creating alias cargo='forklift cargo'"
alias cargo="forklift cargo"
fi
- ls -al
- rm -f forklift.sock
- forklift clean
#
- echo "FL_FORKLIFT_VERSION ${FL_FORKLIFT_VERSION}"
- echo "FORKLIFT_PACKAGE_SUFFIX $FORKLIFT_PACKAGE_SUFFIX"

.common-refs:
rules:
Expand Down