-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ch] Dynamo replicator: add try catch, script for local testing (#5715)
* Add try catch to catch errors when inserting * Add simple script so you can see the insert query (and test in console). Adds sample json with sample record for workflow_job (only 1 though) Tested by * Running new test_lambda_function script to see what the query would be, changed the database to fortesting, ran in console * Making new lambda, testing that insert still works for workflow_job, tested that errors get sent to gen_errors table in #5714
- Loading branch information
Showing
5 changed files
with
1,685 additions
and
20 deletions.
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 @@ | ||
INSERT INTO default.workflow_job SETTINGS async_insert=1, wait_for_async_insert=1 FORMAT JSONEachRow {"runner_id": 11744598, "dynamoKey": "pytorch/pytorch/30663751078", "head_branch": "use_amazon2_docker", "workflow_name": "pull", "runner_group_name": "Default", "created_at": "2024-09-25T18:36:43Z", "check_run_url": "https://github.com/gitapi/repos/pytorch/pytorch/check-runs/30663751078", "head_sha": "6863c4c6dd6684be24c6be9a27ec129022fa992f", "conclusion": "cancelled", "run_url": "https://github.com/gitapi/repos/pytorch/pytorch/actions/runs/11038643569", "id": 30663751078, "run_id": 11038643569, "runner_name": "i-0b2fd9afbc986e218", "steps": [{"conclusion": "success", "number": 1, "completed_at": "2024-09-25T18:36:52Z", "name": "Set up job", "started_at": "2024-09-25T18:36:47Z", "status": "completed"}, {"conclusion": "success", "number": 2, "completed_at": "2024-09-25T18:36:59Z", "name": "Set up runner", "started_at": "2024-09-25T18:36:53Z", "status": "completed"}, {"conclusion": "success", "number": 3, "completed_at": "2024-09-25T18:37:01Z", "name": "Setup SSH (Click me for login details)", "started_at": "2024-09-25T18:36:59Z", "status": "completed"}, {"conclusion": "success", "number": 4, "completed_at": "2024-09-25T18:40:14Z", "name": "Checkout PyTorch", "started_at": "2024-09-25T18:37:01Z", "status": "completed"}, {"conclusion": "success", "number": 5, "completed_at": "2024-09-25T18:40:17Z", "name": "Setup Linux", "started_at": "2024-09-25T18:40:14Z", "status": "completed"}, {"conclusion": "skipped", "number": 6, "completed_at": "2024-09-25T18:40:17Z", "name": "configure aws credentials", "started_at": "2024-09-25T18:40:17Z", "status": "completed"}, {"conclusion": "success", "number": 7, "completed_at": "2024-09-25T18:40:18Z", "name": "Calculate docker image", "started_at": "2024-09-25T18:40:17Z", "status": "completed"}, {"conclusion": "success", "number": 8, "completed_at": "2024-09-25T18:40:18Z", "name": "Use following to pull public copy of the image", "started_at": "2024-09-25T18:40:18Z", "status": "completed"}, {"conclusion": "success", "number": 9, "completed_at": "2024-09-25T18:42:45Z", "name": "Pull docker image", "started_at": "2024-09-25T18:40:18Z", "status": "completed"}, {"conclusion": "success", "number": 10, "completed_at": "2024-09-25T18:42:45Z", "name": "Check if in a ARC runner", "started_at": "2024-09-25T18:42:45Z", "status": "completed"}, {"conclusion": "skipped", "number": 11, "completed_at": "2024-09-25T18:42:46Z", "name": "Install nvidia driver, nvidia-docker runtime, set GPU_FLAG", "started_at": "2024-09-25T18:42:46Z", "status": "completed"}, {"conclusion": "skipped", "number": 12, "completed_at": "2024-09-25T18:42:46Z", "name": "Lock NVIDIA A100 40GB Frequency", "started_at": "2024-09-25T18:42:46Z", "status": "completed"}, {"conclusion": "success", "number": 13, "completed_at": "2024-09-25T18:42:48Z", "name": "Start monitoring script", "started_at": "2024-09-25T18:42:46Z", "status": "completed"}, {"conclusion": "success", "number": 14, "completed_at": "2024-09-25T18:43:19Z", "name": "Download build artifacts", "started_at": "2024-09-25T18:42:48Z", "status": "completed"}, {"conclusion": "success", "number": 15, "completed_at": "2024-09-25T18:43:20Z", "name": "Download TD artifacts", "started_at": "2024-09-25T18:43:19Z", "status": "completed"}, {"conclusion": "success", "number": 16, "completed_at": "2024-09-25T18:43:20Z", "name": "Parse ref", "started_at": "2024-09-25T18:43:20Z", "status": "completed"}, {"conclusion": "success", "number": 17, "completed_at": "2024-09-25T18:43:21Z", "name": "Get workflow job id", "started_at": "2024-09-25T18:43:20Z", "status": "completed"}, {"conclusion": "success", "number": 18, "completed_at": "2024-09-25T18:43:24Z", "name": "Check for keep-going label and re-enabled test issues", "started_at": "2024-09-25T18:43:21Z", "status": "completed"}, {"conclusion": "success", "number": 19, "completed_at": "2024-09-25T18:43:24Z", "name": "Set Test step time", "started_at": "2024-09-25T18:43:24Z", "status": "completed"}, {"conclusion": "cancelled", "number": 20, "completed_at": "2024-09-25T18:45:18Z", "name": "Test", "started_at": "2024-09-25T18:43:24Z", "status": "completed"}, {"conclusion": "skipped", "number": 21, "completed_at": "2024-09-25T18:45:19Z", "name": "Upload pytest cache if tests failed", "started_at": "2024-09-25T18:45:19Z", "status": "completed"}, {"conclusion": "success", "number": 22, "completed_at": "2024-09-25T18:45:19Z", "name": "Print remaining test logs", "started_at": "2024-09-25T18:45:19Z", "status": "completed"}, {"conclusion": "success", "number": 23, "completed_at": "2024-09-25T18:45:19Z", "name": "Stop monitoring script", "started_at": "2024-09-25T18:45:19Z", "status": "completed"}, {"conclusion": "success", "number": 24, "completed_at": "2024-09-25T18:45:21Z", "name": "Upload test artifacts", "started_at": "2024-09-25T18:45:19Z", "status": "completed"}, {"conclusion": "success", "number": 25, "completed_at": "2024-09-25T18:45:21Z", "name": "Collect backtraces from coredumps (if any)", "started_at": "2024-09-25T18:45:21Z", "status": "completed"}, {"conclusion": "skipped", "number": 26, "completed_at": "2024-09-25T18:45:21Z", "name": "Store Core dumps on S3", "started_at": "2024-09-25T18:45:21Z", "status": "completed"}, {"conclusion": "success", "number": 27, "completed_at": "2024-09-25T18:45:24Z", "name": "Teardown Linux", "started_at": "2024-09-25T18:45:21Z", "status": "completed"}, {"conclusion": "skipped", "number": 28, "completed_at": "2024-09-25T18:45:25Z", "name": "Check NVIDIA driver installation step", "started_at": "2024-09-25T18:45:25Z", "status": "completed"}, {"conclusion": "success", "number": 55, "completed_at": "2024-09-25T18:45:25Z", "name": "Post Checkout PyTorch", "started_at": "2024-09-25T18:45:25Z", "status": "completed"}, {"conclusion": "success", "number": 56, "completed_at": "2024-09-25T18:45:32Z", "name": "Complete runner", "started_at": "2024-09-25T18:45:26Z", "status": "completed"}, {"conclusion": "success", "number": 57, "completed_at": "2024-09-25T18:45:32Z", "name": "Complete job", "started_at": "2024-09-25T18:45:32Z", "status": "completed"}], "url": "https://github.com/gitapi/repos/pytorch/pytorch/actions/jobs/30663751078", "labels": ["linux.2xlarge"], "completed_at": "2024-09-25T18:45:33Z", "html_url": "https://github.com/pytorch/pytorch/actions/runs/11038643569/job/30663751078", "name": "linux-focal-py3.12-clang10-experimental-split-build / test (dynamo, 1, 3, linux.2xlarge)", "run_attempt": 1, "started_at": "2024-09-25T18:36:47Z", "runner_group_id": 1, "torchci_classification": {"captures": ["##[error]The operation was canceled."], "line_num": 14784, "line": "##[error]The operation was canceled.", "context": ["+ python test/run_test.py --dynamo --exclude-inductor-tests --exclude-jit-executor --exclude-distributed-tests --exclude-torch-export-tests --shard 1 3 --verbose", "+ python tools/dynamo/verify_dynamo.py", "+ [[ -z 3 ]]", "+ test_dynamo_shard 1", "+ '[' -n '' ']'", "+ pip install --progress-bar off --no-use-pep517 --user git+https://github.com/pytorch/vision.git@d23a6e1664d20707c11781299611436e1f0c104f", "+ pip_install --no-use-pep517 --user git+https://github.com/pytorch/vision.git@d23a6e1664d20707c11781299611436e1f0c104f", "+ '[' -n '' ']'", "+ orig_preload=", "+ commit=d23a6e1664d20707c11781299611436e1f0c104f", "++ cat .github/ci_commit_pins/vision.txt", "++ get_pinned_commit vision"], "rule": "GHA job was cancelled"}, "node_id": "CR_kwDOA-j9z88AAAAHI7O1pg", "status": "completed"} |
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
Oops, something went wrong.