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

(Re-)Apply cache in CI builds #2140

Closed
Kailai-Wang opened this issue Sep 18, 2023 · 2 comments · Fixed by #2156
Closed

(Re-)Apply cache in CI builds #2140

Kailai-Wang opened this issue Sep 18, 2023 · 2 comments · Fixed by #2156
Assignees
Labels
D6-automation CI/CD, tools, helper scripts I3-high should be completed within 5 working days

Comments

@Kailai-Wang
Copy link
Collaborator

Context

We have been suffering from the long building cycle of parachain/enclave build in CI - even with a minute change in source code we need to go through the whole compilation process.

We had a few attempts to accelerate the whole process but they weren't so successful:

But things might have changed and a retry is worth it. Ideas:

  • use buildx + cache mounts (with sccache) with docker, or
  • use plain sccache with binary build

Priority is set to high because it affects (benefits) all upcoming builds


✔️ Please set appropriate labels and assignees if applicable.

@Kailai-Wang Kailai-Wang added I3-high should be completed within 5 working days D6-automation CI/CD, tools, helper scripts labels Sep 18, 2023
@Kailai-Wang Kailai-Wang self-assigned this Sep 18, 2023
@Kailai-Wang Kailai-Wang changed the title Accelerate enclave build in CI (Re-)Apply cache in CI builds Sep 18, 2023
@Kailai-Wang
Copy link
Collaborator Author

buildx cache + cache mount didn't work - the problem is the cache mount isn't exported as image layer, so it won't get cached between CI runs.

See:moby/buildkit#1512

Here's an informative summary of the problem and its background, including possible solutions(workarounds): https://hackmd.io/@kobzol/S17NS71bh

@Kailai-Wang
Copy link
Collaborator Author

a plain copy in/out of sccache data seems to work - will submit a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D6-automation CI/CD, tools, helper scripts I3-high should be completed within 5 working days
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant