Skip to content
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

Update CI config #5893

Merged
merged 4 commits into from
Aug 1, 2023
Merged

Update CI config #5893

merged 4 commits into from
Aug 1, 2023

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Jul 28, 2023

  • Remove duplicate target from cross-test
  • Remove needless --test-threads=1 as RUST_TEST_THREADS=1 already specifies it
  • Remove --cfg tokio_no_ipv6 as setup-cross-toolchain-action supports it
  • Automatically cancel all outdated workflows on PR (currently this is only set for ci.yml)
  • Remove --cfg tokio_no_atomic_u64 as tests/builds with --target target-specs/i686-unknown-linux-gnu.json handles these cases

@taiki-e taiki-e added the A-ci Area: The continuous integration setup label Jul 28, 2023
- Remove duplicate target from cross-test
- Remove needless --test-threads=1 (already specified by RUST_TEST_THREADS=1)
- Remove --cfg tokio_no_ipv6 as setup-cross-toolchain-action supports it
Currently, this is only set for ci.yml.
@taiki-e taiki-e marked this pull request as ready for review July 28, 2023 12:45
Comment on lines 466 to +467
RUST_TEST_THREADS: 1
RUSTFLAGS: --cfg tokio_unstable -Dwarnings --cfg tokio_no_ipv6 --cfg tokio_no_tuning_tests ${{ matrix.rustflags }}
RUSTFLAGS: --cfg tokio_unstable -Dwarnings --cfg tokio_no_tuning_tests ${{ matrix.rustflags }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I just realized these RUST* flags should be set before Swatinem/rust-cache@v2:

 - name: Set RUST env
   run: |
     echo RUST_TEST_THREADS=1 >> "$GITHUB_ENV"
     echo 'RUSTFLAGS=--cfg tokio_unstable -Dwarnings --cfg tokio_no_tuning_tests ${{ matrix.rustflags }}' >> "$GITHUB_ENV"

Copy link
Member Author

Choose a reason for hiding this comment

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

Considering how Swatinem/rust-cache works, it may be best for some workflows that meet certain conditions, but since we don't change rustflags often and sometimes set different rustflags for each step, I think it is also fine as-is.

tests/builds with --target target-specs/i686-unknown-linux-gnu.json handles these cases.
@taiki-e taiki-e merged commit e5e8855 into master Aug 1, 2023
@taiki-e taiki-e deleted the taiki-e/ci branch August 1, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: The continuous integration setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants