Skip to content

Expose only TestHelpers and ExtraRulesTests as part of Bazel releases#6235

Merged
SimplyDanny merged 1 commit intomainfrom
bazel-exposed-tests
Sep 5, 2025
Merged

Expose only TestHelpers and ExtraRulesTests as part of Bazel releases#6235
SimplyDanny merged 1 commit intomainfrom
bazel-exposed-tests

Conversation

@SimplyDanny
Copy link
Collaborator

Other test targets don't need to be released.

@SwiftLintBot
Copy link

2 Messages
📖 Building this branch resulted in the same binary size as when built on main.
📖 Skipping OSS check because SwiftLint hasn't changed compared to main.

Generated by 🚫 Danger

@SimplyDanny SimplyDanny merged commit 54646f4 into main Sep 5, 2025
22 checks passed
@SimplyDanny SimplyDanny deleted the bazel-exposed-tests branch September 5, 2025 15:30
@@ -1,44 +1,15 @@
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library", "swift_test")
load("//bazel:copts.bzl", "STRICT_COPTS", "TARGETED_COPTS")
load(":generated_tests.bzl", "generated_tests")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this load will fail when given a release archive since it's excluded from release_files. I had to patch locally by adding the file:

def generated_tests():
    pass

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The idea is to stop exposing Tests/BUILD and with that all test sources. The only relevant test targets should be ExtraRulesTests and TestHelpers. This then also avoids that generated_tests.bzl is required. Is that reasonable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If you like, you can try bazel.tar.gz which would be the archive for the next release.

Copy link
Contributor

Choose a reason for hiding this comment

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

Gotcha, I saw the analysis error on 0.60.0 but that linked archive looks good

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.

3 participants