Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
marina-p committed Mar 6, 2025
1 parent c8d0244 commit 1d67cdf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci_build_test_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ jobs:
name: restler-drop-${{ env.RESTLER_VERSION }}-${{ runner.os }}
path: ${{ github.workspace }}/restlerDrop

- name: Debug: output contents of the RESTler drop directory
run: |
echo "Contents of the RESTler drop directory:"
ls -R ${{ github.workspace }}/restlerDrop
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
Expand Down
18 changes: 18 additions & 0 deletions restler-quick-start.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ def compile_spec(api_spec_path, restler_dll_path):
os.makedirs(RESTLER_TEMP_DIR)

with usedir(RESTLER_TEMP_DIR):

# Check that the executable exists
if not os.path.exists(restler_dll_path):
print(f"RESTler dll not found when compiling at {restler_dll_path}")
exit(-1)

# Check that all files below exist, and print an informative message that includes the function name
if not os.path.exists(api_spec_path):
print(f"API spec not found at {api_spec_path}")
exit(-1)

command=f"dotnet \"{restler_dll_path}\" compile --api_spec \"{api_spec_path}\""
print(f"command: {command}")
subprocess.run(command, shell=True)
Expand Down Expand Up @@ -145,6 +156,13 @@ def test_spec(ip, port, host, use_ssl, restler_dll_path, task):
restler_dll_path = Path(os.path.abspath(args.restler_drop_dir)).joinpath('restler', 'Restler.dll')
print(f"\nrestler_dll_path: {restler_dll_path}\n")

# Check that the RESTler dll exists
if not os.path.exists(restler_dll_path):
print(f"RESTler dll not found at {restler_dll_path}")
exit(-1)



if args.task == "replay":
replay_from_dir(args.ip, args.port, args.host, args.use_ssl, restler_dll_path.absolute(), args.replay_bug_buckets_dir)
else:
Expand Down

0 comments on commit 1d67cdf

Please sign in to comment.