Skip to content

buck2_test: add an allowlist for env-vars in buckconfig - #1413

Open
lf- wants to merge 1 commit into
facebook:mainfrom
MercuryTechnologies:jade/push-mtmwlwzzylzn
Open

buck2_test: add an allowlist for env-vars in buckconfig#1413
lf- wants to merge 1 commit into
facebook:mainfrom
MercuryTechnologies:jade/push-mtmwlwzzylzn

Conversation

@lf-

@lf- lf- commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

This allows consumers to allowlist environment variables without patching buck itself. Concretely, my motivation on this is propagating things like OpenTelemetry endpoints into test harnesses: at Mercury we have a fancy test harness which starts postgres and stuff around tests which we would like to have observability for.

We would like to not make that Facebook's problem, thus the buckconfig addition.

A bit :vibed: but I did a pass on all the docs. The e2e tests are completely :vibed: since we can't run them outside fb so I haven't looked hard at them at all, so feel free to hack them up.

This allows consumers to allowlist environment variables without
patching buck itself. Concretely, my motivation on this is propagating
things like OpenTelemetry endpoints into test harnesses: at Mercury we
have a fancy test harness which starts postgres and stuff around tests
which we would like to have observability for.

We would like to *not* make that Facebook's problem, thus the
buckconfig addition.

A bit :vibed: but I did a pass on all the docs. The e2e tests are
completely :vibed: since we can't run them outside fb so I haven't
looked hard at them at all, so feel free to hack them up.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 24, 2026
@meta-codesync

meta-codesync Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D113602608. (Because this pull request was imported automatically, there will not be any future comments.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant