-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds ci-queue-pct lambda code to aws/lambdas and include it to the re…
…lease (#6259) Move from meta closed repository to test-infra repository the code for ci-queue-pct lambda. This lambda is the one that computes the queue percentile times used in https://hud.pytorch.org/sli The reason for this migration is related to start the effort to organize our Lambdas, using this as an example of how we should be moving forward. Test workflow: https://github.com/pytorch/test-infra/actions/runs/13162528997 Created release: https://github.com/pytorch/test-infra/releases/tag/v20250205-165758
- Loading branch information
1 parent
88e4f1e
commit 3cf0808
Showing
6 changed files
with
710 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.zip | ||
deployment/ | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
all: run-local | ||
|
||
clean: | ||
rm -rf deployment | ||
rm -rf venv | ||
rm -rf deployment.zip | ||
|
||
venv/bin/python: | ||
virtualenv venv | ||
venv/bin/pip install -r requirements.txt | ||
|
||
.PHONY: run-local | ||
run-local: venv/bin/python | ||
venv/bin/python ci_queue_pct.py --max-hours 70 --worker-pool-size 8 # --rebuild-table | ||
|
||
.PHONY: run-local-loop | ||
run-local-loop: venv/bin/python | ||
while true ; do venv/bin/python ci_queue_pct.py --max-hours 70 --worker-pool-size 8 ; done | ||
|
||
deployment.zip: | ||
mkdir -p deployment | ||
cp ci_queue_pct.py ./deployment/. | ||
pip3.10 install -r requirements.txt -t ./deployment/. --platform manylinux2014_x86_64 --only-binary=:all: --implementation cp --python-version 3.10 --upgrade | ||
cd ./deployment && zip -q -r ../deployment.zip . | ||
|
||
.PHONY: create-deployment-package | ||
create-deployment-package: deployment.zip |
Oops, something went wrong.