-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
bazel: bazelize docs/generated/redact_safe.md
generation
#67923
Comments
This is easily something that we can't bazelize -- we can't pass the entire source tree into a Bazel If we still want this file in-tree and we still want it generated along with the rest of our documentation, then we'll either have to find a more sensible (incremental, not monolithic) way to construct this file, or we'll have to accept that we can't use Bazel to build it. cc @knz |
The function of this is twofold. One is to ensure we get a GitHub PR notification when a type is added to this list. Another is to document the list of these types, for folk who want to know how the type they're looking at will be treated. I'm not sure what "incremental" would look like? In any case, this is more or less the same challenge as ensuring our linter tests can run. What does Bazel think about the linters? |
(This is hypothetical, I haven't designed this and don't think that trying to implement this makes sense given the ROI.) We'd need a way to compute the list of "redact-safe" types for an individual Go package, and then a way to union all those redact-safe types across all of our Go packages and our dependencies. i.e., the same thing, but computed incrementally rather than doing a
Yeah, so the linters don't really run "inside" the Bazel sandbox. You can use Bazel to build a test binary containing the linter tests and then run it from within the workspace, but that's meaningfully different from asking Bazel to run a test itself, in which case all the dependencies for the test would have to be captured in the sandbox -- and the "dependencies" for the linter include the entire source tree, which is a non-starter. Similarly, we can't capture the entire source tree as a dependency for I think the way this is going to go is that whatever command we have people run to generate documentation ( |
This file can't properly be bazelfied because generating it requires access to the entire source tree, which we can't easily pass into the Bazel sandbox. Instead it gets special non-Bazel support in `dev` and a special validation in CI. Closes cockroachdb#67923 Release note: None
This file can't properly be bazelfied because generating it requires access to the entire source tree, which we can't easily pass into the Bazel sandbox. Instead it gets special non-Bazel support in `dev` and a special validation in CI. Closes cockroachdb#67923 Release note: None
68836: dev: generate `docs/generated/redact_safe.md` in `dev` r=rail a=rickystewart This file can't properly be bazelfied because generating it requires access to the entire source tree, which we can't easily pass into the Bazel sandbox. Instead it gets special non-Bazel support in `dev` and a special validation in CI. Closes #67923 Release note: None Co-authored-by: Ricky Stewart <[email protected]>
Epic CRDB-8035
The text was updated successfully, but these errors were encountered: