-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2][rpm] remove unnecessary details from repomd.xml
Summary: Since these repos are materialized to local directories by buck2 as a part of image builds, `dnf` is perfectly happy without `revision`, `checksum`, `size`, `open-checksum` and `open-size`. Removing this is a small simplification, but it simplifies the snapshot process such that a repo with pre-built and stored xml blobs can have `repomd.xml` written directly by the buck2 rule without actually needing to checksum/inspect the xml files at all. Test Plan: ```name="Force usage of repo-built version" ❯ hg diff diff --git a/fbcode/antlir/antlir2/package_managers/dnf/rules/makerepo/BUCK b/fbcode/antlir/antlir2/package_managers/dnf/rules/makerepo/BUCK --- a/fbcode/antlir/antlir2/package_managers/dnf/rules/makerepo/BUCK +++ b/fbcode/antlir/antlir2/package_managers/dnf/rules/makerepo/BUCK @@ -1,8 +1,10 @@ load("//antlir/bzl:build_defs.bzl", "buck_sh_binary", "rust_binary") -load("//antlir/bzl:internal_external.bzl", "is_facebook") +# load("//antlir/bzl:internal_external.bzl", "is_facebook") oncall("antlir") +is_facebook = False + rust_binary( name = "makerepo.rc" if is_facebook else "makerepo", srcs = glob(["src/**/*.rs"]), ``` ```name="Unit tests" ❯ buck2 test fbcode//antlir/antlir2/features/rpm/tests/... Buck UI: https://www.internalfb.com/buck2/e2cb2559-21c6-4488-a28d-9dff1f6a3d40 Test UI: https://www.internalfb.com/intern/testinfra/testrun/6755399687630739 Tests finished: Pass 104. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` Reviewed By: epilatow Differential Revision: D67994895 fbshipit-source-id: 41245ad5d909505ced42aefd47623f4a77fc0a8f
- Loading branch information
1 parent
9398343
commit 646f32f
Showing
6 changed files
with
21 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,6 @@ repo( | |
":signed-with-wrong-key", | ||
":signed-sha512", | ||
], | ||
timestamp = 0, | ||
visibility = [ | ||
], | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,9 @@ rust_binary( | |
"anyhow", | ||
"clap", | ||
"flate2", | ||
"hex", | ||
"quick-xml", | ||
"serde", | ||
"serde_json", | ||
"sha2", | ||
], | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,7 +198,6 @@ repo( | |
name = "repo", | ||
compress = "none", | ||
rpms = all_rpms, | ||
timestamp = 0, | ||
visibility = [ | ||
], | ||
) |