-
Notifications
You must be signed in to change notification settings - Fork 19
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
chore: e2e improve docker cache #16
Conversation
…n into rafilx/e2e-improve-parallel
…p/bbn-e2e-testnet-2820217771/bbn-test-a/bbn-test-a-node-babylon-default-a-2/ibc_08-wasm/state/wasm: permission denied
…io/babylon into rafilx/e2e-improve-docker-cache
…n into rafilx/e2e-improve-docker-cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question, otherwise LGTM! great work!
Add upgrade to insert BTC headers Should be merged after #16
- Add multiple CI jobs to run e2e - `e2e-docker-build-*` builds docker and saves it as an artifact - `e2e-run-*` runs each e2e test individually - remove the need of sudo on running e2e tests due to removing error check in ClearResources 🥲 it errors out due to `unlinkat /tmp/bbn-e2e-testnet-2820217771/bbn-test-a/bbn-test-a-node-babylon-default-a-2/ibc_08-wasm/state/wasm: permission denied` - removing the need of sudo to run e2e speeds up the run because it uses the go cache created from job `build` TLDR; It is not a pretty solution, but reduces the CI running time of e2e > Accepting suggestions/inputs to make it better ![image](https://github.com/user-attachments/assets/acfb51e9-d09e-4e60-b384-34fc11c0aa41) :heavy_check_mark: CI time reduced to 8min
Add upgrade to insert BTC headers Should be merged after #16
@@ -40,12 +40,11 @@ func (cb *CurrentBranchConfigurer) ConfigureChains() error { | |||
|
|||
func (cb *CurrentBranchConfigurer) ConfigureChain(chainConfig *chain.Config) error { | |||
cb.t.Logf("starting e2e infrastructure from current branch for chain-id: %s", chainConfig.Id) | |||
tmpDir, err := os.MkdirTemp("", "bbn-e2e-testnet-") | |||
tmpDir, err := os.MkdirTemp("", "bbn-e2e-testnet-*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this? Just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// If pattern includes a "*", the random string replaces the last "*" instead.
func MkdirTemp(dir, pattern string) (string, error) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
}, | ||
withUpgrade(baseSetup), // base set up with upgrade | ||
containerManager, | ||
upgradePath, | ||
0, | ||
), nil | ||
} | ||
|
||
func identifierName(t *testing.T) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? Just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you would run two or more tests at the same time they might match the name of the container and mess up everything 🤯
e2e-docker-build-*
builds docker and saves it as an artifacte2e-run-*
runs each e2e test individuallyit errors out due to
unlinkat /tmp/bbn-e2e-testnet-2820217771/bbn-test-a/bbn-test-a-node-babylon-default-a-2/ibc_08-wasm/state/wasm: permission denied
build
TLDR; It is not a pretty solution, but reduces the CI running time of e2e
✔️ CI time reduced to 8min