atomicdata-dev / atomic-server

An open source headless CMS / real-time database. Powerful table editor, full-text search, and SDKs for JS / React / Svelte.
https://atomicserver.eu
MIT License
1.01k stars 46 forks source link

CodeCov build failing #357

Closed joepio closed 2 years ago

joepio commented 2 years ago

https://github.com/joepio/atomic-data-rust/runs/5691867486?check_suite_focus=true#step:6:351

error: no rules expected the token `aarch64_apple`
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:257:13
    |
165 |     macro_rules! features {
    |     --------------------- when calling this macro
...
257 |             aarch64_apple: true,
    |             ^^^^^^^^^^^^^ no rules expected this token in macro call

error[E0425]: cannot find value `AES` in module `cpu::arm`
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/aead/aes.rs:[381](https://github.com/joepio/atomic-data-rust/runs/5691867486?check_suite_focus=true#step:6:381):65
    |
381 |         if cpu::intel::AES.available(cpu_features) || cpu::arm::AES.available(cpu_features) {
    |                                                                 ^^^ not found in `cpu::arm`
    |
help: consider importing this constant
    |
15  | use crate::cpu::intel::AES;
    |

error[E0425]: cannot find value `PMULL` in module `cpu::arm`
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/aead/gcm.rs:315:26
    |
315 |             || cpu::arm::PMULL.available(cpu_features)
    |                          ^^^^^ not found in `cpu::arm`

error[E0425]: cannot find value `ARMCAP_STATIC` in this scope
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:235:41
    |
235 |             if self.mask == self.mask & ARMCAP_STATIC {
    |                                         ^^^^^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `ring` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
error: process didn't exit successfully: `cargo +nightly test --tests --workspace --manifest-path /home/runner/work/atomic-data-rust/atomic-data-rust/Cargo.toml --target-dir /home/runner/work/atomic-data-rust/atomic-data-rust/target/llvm-cov-target --all-features --color never` (exit status: 101)
Error: Process completed with exit code 1.
joepio commented 2 years ago

Seems like a rust compiler nightly issue, should be fixed now

https://github.com/briansmith/ring/issues/1469

joepio commented 2 years ago

I can't say I like having a dependency on working nightly compiler in my CI, but that's a temporary thing: https://github.com/taiki-e/cargo-llvm-cov/issues/2

joepio commented 2 years ago

It's working again