fix excessive environment copying
This commit is contained in:
parent
b69eb6f364
commit
77cbb15b64
3 changed files with 5 additions and 7 deletions
|
@ -63,7 +63,7 @@ allprojects:
|
||||||
mlir: ["check-mlir"]
|
mlir: ["check-mlir"]
|
||||||
openmp: ["check-openmp"]
|
openmp: ["check-openmp"]
|
||||||
parallel-libs: ["check-all"]
|
parallel-libs: ["check-all"]
|
||||||
polly: ["check-polly-tests", "check-polly"]
|
polly: ["check-polly-tests", "check-polly"] # TODO: redundant?
|
||||||
pstl: ["check-all"] # There does not seem to be a more specific target.
|
pstl: ["check-all"] # There does not seem to be a more specific target.
|
||||||
llvm: ["check-llvm"]
|
llvm: ["check-llvm"]
|
||||||
|
|
||||||
|
|
|
@ -50,12 +50,11 @@ if __name__ == '__main__':
|
||||||
steps.extend(generic_windows(os.getenv('ph_projects', ';'.join(windows_projects))))
|
steps.extend(generic_windows(os.getenv('ph_projects', ';'.join(windows_projects))))
|
||||||
steps.extend(bazel([], force=True))
|
steps.extend(bazel([], force=True))
|
||||||
if os.getenv('ph_skip_generated') is None:
|
if os.getenv('ph_skip_generated') is None:
|
||||||
gen_env = os.environ.copy()
|
|
||||||
# BUILDKITE_COMMIT might be an alias, e.g. "HEAD". Resolve it to make the build hermetic.
|
# BUILDKITE_COMMIT might be an alias, e.g. "HEAD". Resolve it to make the build hermetic.
|
||||||
if ('BUILDKITE_COMMIT' not in env) or (env['BUILDKITE_COMMIT'] == "HEAD"):
|
if os.getenv('BUILDKITE_COMMIT', 'HEAD') == "HEAD":
|
||||||
env['BUILDKITE_COMMIT'] = repo.head.commit.hexsha
|
env['BUILDKITE_COMMIT'] = repo.head.commit.hexsha
|
||||||
for gen in steps_generators:
|
for gen in steps_generators:
|
||||||
steps.extend(from_shell_output(gen, env=gen_env))
|
steps.extend(from_shell_output(gen, env=env))
|
||||||
|
|
||||||
notify = []
|
notify = []
|
||||||
for e in notify_emails:
|
for e in notify_emails:
|
||||||
|
|
|
@ -68,9 +68,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Add custom checks.
|
# Add custom checks.
|
||||||
if os.getenv('ph_skip_generated') is None:
|
if os.getenv('ph_skip_generated') is None:
|
||||||
env = os.environ.copy()
|
if os.getenv('BUILDKITE_COMMIT', 'HEAD') == "HEAD":
|
||||||
# BUILDKITE_COMMIT might be an alias, e.g. "HEAD". Resolve it to make the build hermetic.
|
env['BUILDKITE_COMMIT'] = repo.head.commit.hexsha
|
||||||
env["BUILDKITE_COMMIT"] = repo.head.commit.hexsha
|
|
||||||
for gen in steps_generators:
|
for gen in steps_generators:
|
||||||
steps.extend(from_shell_output(gen, env=env))
|
steps.extend(from_shell_output(gen, env=env))
|
||||||
modified_files = cp.get_changed_files(patch)
|
modified_files = cp.get_changed_files(patch)
|
||||||
|
|
Loading…
Reference in a new issue