Skip to content

Commit a6dfcc1

Browse files
committed
trying to debug failure
1 parent f32ee29 commit a6dfcc1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

python/private/pypi/dependency_resolver/dependency_resolver.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,13 @@ def main(
189189
absolute_output_file, requirements_file_tree
190190
)
191191
)
192-
cli(argv, standalone_mode = False)
192+
##breakpoint()
193+
try:
194+
cli(argv, standalone_mode = False)
195+
except Exception as exc:
196+
##breakpoint()
197+
print(exc)
198+
raise
193199
requirements_file_relative_path = Path(requirements_file_relative)
194200
content = requirements_file_relative_path.read_text()
195201
content = content.replace(absolute_path_prefix, "")
@@ -198,9 +204,14 @@ def main(
198204
# cli will exit(0) on success
199205
try:
200206
print("Checking " + requirements_file)
207+
##breakpoint()
201208
cli(argv)
202209
print("cli() should exit", file=sys.stderr)
203210
sys.exit(1)
211+
except Exception as exc:
212+
##breakpoint()
213+
print(exc)
214+
raise
204215
except SystemExit as e:
205216
if e.code == 2:
206217
print(

python/private/pypi/pip_compile.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ def pip_compile(
165165

166166
timeout = kwargs.pop("timeout", "short")
167167

168-
py_test(
168+
##py_test(
169+
py_binary(
169170
name = name + "_test",
170-
timeout = timeout,
171+
##timeout = timeout,
171172
# setuptools (the default python build tool) attempts to find user
172173
# configuration in the user's home direcotory. This seems to work fine on
173174
# linux and macOS, but fails on Windows, so we conditionally provide a fake

0 commit comments

Comments
 (0)