-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir][oss] fix/disable more tests and enable those that work (#236)
Summary: Pull Request resolved: #236 We don't have centos8 in OSS and it's not worth adding. We don't yet have buckified gtest. Buck binaries are built against the system platform which then conflicts with the system platform installed in the image (this would be a good use case for epilatow's antlir2 toolchain stuff) Enable a lot of other tests that should work. Test Plan: https://github.com/facebookincubator/antlir/actions/runs/9079202977/job/24947904836?pr=236 Reviewed By: sergeyfd Differential Revision: D57311394 fbshipit-source-id: 2dca30d2a04db515dde62d8c19f9c8d52e7cd0b7
- Loading branch information
1 parent
530cda0
commit 59e7aad
Showing
9 changed files
with
112 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[file.".meta/package"] | ||
op = "added" | ||
|
||
[file.".meta/package".diff] | ||
mode = "u+rw,g+r,o+r" | ||
file-type = "regular-file" | ||
user = "root" | ||
group = "root" | ||
text = """ | ||
foo:bar | ||
""" | ||
|
||
[file.".meta/revision"] | ||
op = "added" | ||
|
||
[file.".meta/revision".diff] | ||
mode = "u+rw,g+r,o+r" | ||
file-type = "regular-file" | ||
user = "root" | ||
group = "root" | ||
text = """ | ||
deadbeef | ||
""" | ||
|
||
[file.".meta/target"] | ||
op = "diff" | ||
|
||
[file.".meta/target".diff] | ||
text-patch = """ | ||
--- parent | ||
+++ child | ||
@@ -1 +1 @@ | ||
-antlir//antlir/antlir2/features/dot_meta/tests:base | ||
+antlir//antlir/antlir2/features/dot_meta/tests:dot_meta | ||
""" |
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
def _impl(ctx): | ||
tests = ctx.uquery().kind(".*_test", ctx.cli_args.pattern) | ||
|
||
tests = tests - ctx.uquery().attrregexfilter("labels", "disabled", tests) | ||
disable = ctx.unconfigured_targets([t for disable in ctx.cli_args.disable for t in disable]) | ||
tests = tests - disable | ||
ctx.output.print("\n".join([str(t.label) for t in tests])) | ||
|
||
find_tests = bxl_main( | ||
impl = _impl, | ||
cli_args = { | ||
"disable": cli_args.list(cli_args.target_expr(), default = []), | ||
"pattern": cli_args.list(cli_args.string(), default = ["antlir//..."]), | ||
}, | ||
) |