Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion site_scons/mongo/pip_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ def raiseSuggestion(ex, pip_pkg):
f" buildscripts/poetry_sync.sh -p '{executable}'\n"
)

# Remove ANSI escape codes from the output
ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')
clean_output = ansi_escape.sub('', poetry_dry_run_proc.stdout)

# String match should look like the following
# Package operations: 2 installs, 3 updates, 0 removals, 165 skipped
match = re.search(
r"Package operations: (\d+) \w+, (\d+) \w+, (\d+) \w+, (\d+) \w+",
poetry_dry_run_proc.stdout,
clean_output,
)
verbose("Requirements list:")
verbose(poetry_dry_run_proc.stdout)
Expand Down
1 change: 1 addition & 0 deletions site_scons/site_tools/integrate_bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ def bazel_build_thread_func(env, log_dir: str, verbose: bool, ninja_generate: bo

if ninja_generate:
for file in glob.glob("bazel-out/**/*.gen_source_list", recursive=True):
os.chmod(file, stat.S_IWRITE)
os.remove(file)
extra_args += ["--build_tag_filters=scons_link_lists"]
bazel_cmd = Globals.bazel_base_build_command + extra_args + ["//src/..."]
Expand Down