Skip to content

Commit

Permalink
[antlir][oss] some ci fixes (#264)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #264

Use nightly Rust compiler and enable the `nightly` feature of `hashbrown` so
that it compiles (see rust-lang/hashbrown#564)

This wouldn't really be a problem if we correctly copied the internally used
versions of Rust libraries, but we miss crate versions in most cases so
sometimes skew causes problems like this.

Disable broken sendstream test

Fix #219

Test Plan: Export to PR

Differential Revision: D64256300
  • Loading branch information
vmagro authored and facebook-github-bot committed Oct 11, 2024
1 parent 80b4a0b commit 69d51d1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
with:
submodules: true
- uses: facebook/install-dotslash@latest
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
targets: x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu
- name: BTRFS-ify antlir2-out
run: |
Expand Down Expand Up @@ -51,8 +52,7 @@ jobs:
--disable //antlir/antlir2/sendstream_parser:sendstream_parser-unittest \
--disable //antlir/antlir2/test_images/cfg/os/... \
--disable //antlir/antlir2/test_images/cfg/target_arch/... \
--disable //antlir/antlir2/test_images/package/erofs/... \
--disable //antlir/antlir2/test_images/package/tar/... \
--disable //antlir/antlir2/test_images/package/... \
--disable //antlir/antlir2/testing/tests:booted-image-test-that-should-fail \
--disable //antlir/antlir2/testing/tests:test-sh-booted-requires-units \
--disable //antlir/bzl/shape2/... \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Antlir can **reproducibly build**, **test**, and **run** OS images for
containers and hosts. Learn more by [reading the documentation](
https://facebookincubator.github.io/antlir/docs).
https://facebookincubator.github.io/antlir/docs/intro).

Antlir is licensed under the MIT License. See
[here](https://github.com/facebookincubator/antlir/blob/main/LICENSE).
56 changes: 32 additions & 24 deletions third-party/rust/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ load(":defs.bzl", "third_party_rust_cxx_library", "buildscript_run")
git_fetch(
name = "fbthrift-d83134f25cdb7b98.git",
repo = "https://github.com/facebook/fbthrift.git",
rev = "64642946d1cc737ba2d9fd99d322cdace2e607c9",
rev = "c8c356bc3d4703264c8b9853395fe8c510dddb23",
visibility = [],
)

Expand All @@ -20,7 +20,7 @@ git_fetch(
git_fetch(
name = "starlark-rust-a9d911d33fd77ff2.git",
repo = "https://github.com/facebook/starlark-rust.git",
rev = "781e1694d5cc28673218a3e243f5f36198fed3fc",
rev = "dfdd63ef988d72dec8ec2c6fdade82300e09acc0",
visibility = [],
)

Expand Down Expand Up @@ -1003,23 +1003,23 @@ cargo.rust_library(

alias(
name = "async-compression",
actual = ":async-compression-0.4.13",
actual = ":async-compression-0.4.14",
visibility = ["PUBLIC"],
)

http_archive(
name = "async-compression-0.4.13.crate",
sha256 = "7e614738943d3f68c628ae3dbce7c3daffb196665f82f8c8ea6b65de73c79429",
strip_prefix = "async-compression-0.4.13",
urls = ["https://static.crates.io/crates/async-compression/0.4.13/download"],
name = "async-compression-0.4.14.crate",
sha256 = "998282f8f49ccd6116b0ed8a4de0fbd3151697920e7c7533416d6e25e76434a7",
strip_prefix = "async-compression-0.4.14",
urls = ["https://static.crates.io/crates/async-compression/0.4.14/download"],
visibility = [],
)

cargo.rust_library(
name = "async-compression-0.4.13",
srcs = [":async-compression-0.4.13.crate"],
name = "async-compression-0.4.14",
srcs = [":async-compression-0.4.14.crate"],
crate = "async_compression",
crate_root = "async-compression-0.4.13.crate/src/lib.rs",
crate_root = "async-compression-0.4.14.crate/src/lib.rs",
edition = "2018",
features = [
"brotli",
Expand Down Expand Up @@ -3507,18 +3507,18 @@ cargo.rust_library(
)

http_archive(
name = "cc-1.1.28.crate",
sha256 = "2e80e3b6a3ab07840e1cae9b0666a63970dc28e8ed5ffbcdacbfc760c281bfc1",
strip_prefix = "cc-1.1.28",
urls = ["https://static.crates.io/crates/cc/1.1.28/download"],
name = "cc-1.1.29.crate",
sha256 = "58e804ac3194a48bb129643eb1d62fcc20d18c6b8c181704489353d13120bcd1",
strip_prefix = "cc-1.1.29",
urls = ["https://static.crates.io/crates/cc/1.1.29/download"],
visibility = [],
)

cargo.rust_library(
name = "cc-1.1.28",
srcs = [":cc-1.1.28.crate"],
name = "cc-1.1.29",
srcs = [":cc-1.1.29.crate"],
crate = "cc",
crate_root = "cc-1.1.28.crate/src/lib.rs",
crate_root = "cc-1.1.29.crate/src/lib.rs",
edition = "2018",
features = ["parallel"],
platform = {
Expand Down Expand Up @@ -4285,7 +4285,7 @@ cargo.rust_library(
crate_root = "cmake-0.1.51.crate/src/lib.rs",
edition = "2021",
visibility = [],
deps = [":cc-1.1.28"],
deps = [":cc-1.1.29"],
)

cargo.rust_library(
Expand Down Expand Up @@ -5332,7 +5332,7 @@ cargo.rust_binary(
],
visibility = [],
deps = [
":cc-1.1.28",
":cc-1.1.29",
":cxxbridge-flags-1.0.128",
],
)
Expand Down Expand Up @@ -8827,6 +8827,7 @@ cargo.rust_library(
"ahash",
"default",
"inline-more",
"nightly",
"raw",
],
visibility = [],
Expand Down Expand Up @@ -8890,6 +8891,7 @@ cargo.rust_library(
"default-hasher",
"equivalent",
"inline-more",
"nightly",
"raw-entry",
],
visibility = [],
Expand Down Expand Up @@ -10891,7 +10893,7 @@ cargo.rust_binary(
],
visibility = [],
deps = [
":cc-1.1.28",
":cc-1.1.29",
":pkg-config-0.3.31",
":vcpkg-0.2.15",
],
Expand Down Expand Up @@ -12182,7 +12184,7 @@ cargo.rust_binary(
visibility = [],
deps = [
":bindgen-0.59.2",
":cc-1.1.28",
":cc-1.1.29",
":cmake-0.1.51",
":subprocess-0.2.9",
],
Expand Down Expand Up @@ -13529,7 +13531,7 @@ cargo.rust_binary(
edition = "2018",
visibility = [],
deps = [
":cc-1.1.28",
":cc-1.1.29",
":pkg-config-0.3.31",
":vcpkg-0.2.15",
],
Expand Down Expand Up @@ -13713,6 +13715,12 @@ cargo.rust_library(
visibility = [],
)

alias(
name = "owo-colors",
actual = ":owo-colors-3.5.0",
visibility = ["PUBLIC"],
)

http_archive(
name = "owo-colors-3.5.0.crate",
sha256 = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f",
Expand Down Expand Up @@ -17037,7 +17045,7 @@ cargo.rust_binary(
"once_cell",
],
visibility = [],
deps = [":cc-1.1.28"],
deps = [":cc-1.1.29"],
)

buildscript_run(
Expand Down Expand Up @@ -17119,7 +17127,7 @@ cargo.rust_binary(
"dev_urandom_fallback",
],
visibility = [],
deps = [":cc-1.1.28"],
deps = [":cc-1.1.29"],
)

buildscript_run(
Expand Down

0 comments on commit 69d51d1

Please sign in to comment.