Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
clee2000 committed Nov 6, 2023
1 parent a775d11 commit 945a0c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update_test_file_ratings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ jobs:
- name: Get merge base info
run: |
python3 test-infra/torchci/scripts/td/get_merge_base_info.py
python3 test-infra/tools/torchci/torchci/td/get_merge_base_info.py
env:
ROCKSET_API_KEY: ${{ secrets.ROCKSET_API_KEY }}

- name: Generate file test ratings
run: |
python3 test-infra/torchci/scripts/td/calculate_file_test_rating.py
python3 test-infra/torchci/scripts/td/td_heuristic_historical_edited_files.py
python3 test-infra/tools/torchci/td/calculate_file_test_rating.py
python3 test-infra/tools/torchci/td/td_heuristic_historical_edited_files.py
# Do not run this one, it won't change
# python3 test-infra/torchci/scripts/td/td_heuristic_profiling.py
# python3 test-infra/tools/torchci/td/td_heuristic_profiling.py
env:
ROCKSET_API_KEY: ${{ secrets.ROCKSET_API_KEY }}
Expand Down
13 changes: 13 additions & 0 deletions tools/torchci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This is meant to contain all the random python scripts we make for things like
TD, alerting, revert tracking, etc.

It was originally located in torchci/scripts but moved to here to separate the
python from the javascript/typescript.

To run these files without needing to modify `sys.path` in each file, either
1. Run `pip install -e .` from within `tools/torchci`. The `-e` is important.
2. Add to your `PYTHONPATH` env var via `export PYTHONPATH="${PYTHONPATH}:<repo root>/tools/torchci"`.
3. Run every file as a module, ex `cd tools/torchci && python -m torchci.td.td_rockset_analysis`.

The tests folder should contain all test related files and mirror the torchci
folder.

0 comments on commit 945a0c7

Please sign in to comment.