-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
ci: bump nixpkgs to latest nixpkgs-unstable + use poetry 1.4.0 #2890
Conversation
ISTM the env in GitLab needs to be regenerated, otherwise the tests will fail? |
Possibly a temporary GitLab problem. I re-ran the pipeline and got past this to a bunch of errors in legacy build. https://gitlab.com/satoshilabs/trezor/trezor-firmware/-/pipelines/810452875 |
legacy fails because protobuf version in poetry does not match protoc version in the nix env. could we downgrade protoc easily? |
got a workaround in b780936 but for that matter, with the above nix env I have poetry 1.3.2, i thought this was supposed to be 1.4.0 ? |
We can downgrade to 3.20, 3.19, 3.17 and 3.8 very easily, and fairly easily to whatever is in nixpkgs used by the current master. |
3.19 is what we had before so let's go with that. |
why did this fail so horribly? do we need to regenerate the environment after all? |
Seems like poetry-side issue, perhaps clearing gitlab cache could help? @vdovhanych can you please clear it and retrigger this branch? https://gitlab.com/satoshilabs/trezor/trezor-firmware/-/pipelines |
we're left with:
and some weird btconly failures:
not worried about matching some altcoins that will be gone very soon(tm) |
rebased and took the chance to improve check-bitcoin-only. |
managed to reproduce it, it only manifests with wtf, this is the offending line: https://github.com/trezor/trezor-firmware/blob/master/crypto/cardano.c#L162
this works:
this doesn't:
either there's miscompilation or the ASAN thing is getting confused, or I don't know |
Btw, I just noticed that pyright is already a part of nixpkgs, so we might want to drop our custom code. |
Hypothesis: ASan instrumentation confuses gcc's Still might be worth investigating further in case it's a gcc bug. |
We used to require a very specific version of pyright while nixpkgs has whatever's the latest on NPM. Is it still the case or can we now use the latter? (cc @grdddj) We currently have |
we don't typecheck with that version. haven't looked into whether it's easily fixable or not |
It would be nice to increase the version, it might bring some improvements (enable us to do less So I think we can use the |
|
You found a gcc bug! This is a minimum
The gcc that is used to compile the tests is pulled by the
|
Updating |
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.
ahhh, the new clippy with the unnecessary_cast lint :))
[no changelog]
[no changelog]
[no changelog]
[no changelog]
No, I didn't. |
--no-update
)Fixes #2805