-
Notifications
You must be signed in to change notification settings - Fork 353
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
build_and_upload_contract CI job fails #273
build_and_upload_contract CI job fails #273
Comments
This is that kind of issue that goes away when debugging it (an heisenbug). Probably some kind of weird bug in CircleCI, related to (remote) docker containers, I/O redirection and such. Simplest way to "fix it" that I found was to change the shell to Anyway. Will create a pull request in |
Heisenburg? "Observation changes state"?
So odd... Why are you using Thank you for digging into this one and getting to the bottom. Such tricky issues |
Yes, heisenbug, exactly. See CosmWasm/optimizer#44 for the "fix". |
To silence some shell syntax warnings, thrown by the shell linter. Nice thing is that changing to
|
The beta2 built just succeded after a re-run of the unchanged CI job.
Yeah, always this one. Is there anything special about this? I wonder why it is so small (just 12KB compared to 200KB for the other contracts). This does not happen if I do But look at the paths in the console log: ../target/wasm32-unknown-unknown/release/deps/cw1_subkeys.wasm. This is not the folder we are looking for. In this folder we get a 15KB cw20_base.wasm when compiling I'm still not sure why this causes the hanging CI job or haning wasmopt, but we should fix our *.wasm search strategy first. |
This bug was introduced with rust-optimizer:0.11.0 where we traded the use of Rust stable against the unstable |
Huh, is this closed and tested? #284 seems to have errors. I would reopen this until we have a proper build on cosmwasm-plus ci we can point to |
Good catch, that is not the right path! I fixed it, and now the CI is passing! See https://app.circleci.com/pipelines/github/CosmWasm/cosmwasm-plus/1148/workflows/cb4ac4ca-9063-4af5-88a0-3e293da7465c/jobs/20430 So, I would say, this is the minimal change we need to do to make it work. Will cut v0.11.1 with this fix alone. |
👍 thanks
Let's use 0.11.2 to avoid any unnecessary confusion about the different versions and tags. |
We need to push 0.11.2 to docker hub and merge that into the cosmwasm-plus CircleCI in order to actually close this issue. I will push this to the docker hub: https://hub.docker.com/r/cosmwasm/rust-optimizer/tags?page=1&ordering=last_updated Please comment here when the cosmwasm-plus ci pr is ready |
I just tagged v0.11.2 with this (and an update to the dockerfile version number) and building and publishing to docker hub |
This started with
v0.6.0-beta1
which was the first release to include cw1155. However, the issue doesn't seem tied directly to this contract. See https://app.circleci.com/pipelines/github/CosmWasm/cosmwasm-plus/1101/workflows/7db524d2-1c96-4f5c-b216-858c2af3ba08/jobs/19391 (I re-ran this job and got the same results).It runs normally (in ~8 minutes) to compile all contracts and start optimizing. Then it just hangs for > 10 minutes at this point:
We could increase the timeout but I don't think that is the problem as no job should take > 10 minutes to optimize.
This is what we see when running locally:
So, it hangs while optimizing cw20_base.wasm?? Maybe some memory/cpu issue in CI? (As it works fine locally)
The text was updated successfully, but these errors were encountered: