Skip to content

Comments

Force new cargo and target caching to fix CI#1023

Merged
alamb merged 1 commit intoapache:masterfrom
alamb:alamb/force_cache_clean
Dec 10, 2021
Merged

Force new cargo and target caching to fix CI#1023
alamb merged 1 commit intoapache:masterfrom
alamb:alamb/force_cache_clean

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Dec 10, 2021

Which issue does this PR close?

closes #1022 (I hope)

Rationale for this change

The arrow CI tests that rely on nightly are crashing with some sort of rustc internal compiler error due to the internal serialization format changing.

for example: https://github.com/apache/arrow-rs/runs/4468916693?check_suite_focus=true


thread 'rustc' panicked at 'assertion failed: sentinel == STR_SENTINEL', /rustc/e6b883c74f49f32cb5d1cbad3457f2b8805a4a38/compiler/rustc_serialize/src/opaque.rs:669:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Also on master: https://github.com/apache/arrow-rs/runs/4474503693?check_suite_focus=true

As @b41sh pointed out #779 (comment), it seems to be a bug in rust: rust-lang/rust#91663

What changes are included in this PR?

Use a new cache key (and thus force clean builds)

Are there any user-facing changes?

No -- CI only

path: /github/home/target
# this key equals the ones on `linux-build-lib` for re-use
key: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}
key: ${{ runner.os }}-${{ matrix.arch }}-target-nightly-cache3-${{ matrix.rust }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given this job is using nightly and some comments suggested rustc was getting confused about what could be reused / not ensure this target isn't shared with stable versions

path: /github/home/.cargo
# this key equals the ones on `linux-build-lib` for re-use
key: cargo-cache2-
key: cargo-wasm32-cache3-
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make the naming consistent (already uses a different target cache, below)

@alamb alamb marked this pull request as ready for review December 10, 2021 15:11
@alamb
Copy link
Contributor Author

alamb commented Dec 10, 2021

Merging this PR in to get CI checks running cleanly again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI tests using rust nightly are failing

1 participant