pytorch/.github/scripts
Catherine Lee 0db21a6b23 Remove most rockset references (#139922)
Remove most references to rockset:
* replace comments and docs with a generic "backend database"
* Delete `upload_to_rockset`, so we no longer need to install the package.
* Do not upload perf stats to rockset as well (we should be completely on DynamoDB now right @huydhn?)

According to VSCode, it went from 41 -> 7 instances of "rockset" in the repo
Pull Request resolved: https://github.com/pytorch/pytorch/pull/139922
Approved by: https://github.com/huydhn, https://github.com/ZainRizvi
2024-11-12 21:17:43 +00:00
..
amd [ROCm] Update nightly triton-rocm pin to release branch (#129361) 2024-07-02 11:49:52 +00:00
s390x-ci S390x update builder image (#132983) 2024-11-11 16:14:06 +00:00
windows Build magma for windows (#139924) 2024-11-09 09:27:59 +00:00
build_triton_wheel.py [ROCm] remove triton-rocm commit pin and merge pins with triton.txt (#133438) 2024-09-05 20:36:45 +00:00
check_labels.py Reflect check_labels status as a signal (#134711) 2024-08-29 03:11:16 +00:00
cherry_pick.py Cherry-Picking don't resolve conflicts (#134047) 2024-08-20 21:48:05 +00:00
close_nonexistent_disable_issues.py Move close_nonexistent_disable_issues.py queries to ClickHouse (#139296) 2024-10-30 23:09:39 +00:00
collect_ciflow_labels.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
comment_on_pr.py [EZ][GHF] Rephrase cancelled message (#124947) 2024-04-25 22:24:08 +00:00
convert_lintrunner_annotations_to_github.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
delete_old_branches.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
docathon-label-sync.py Add a GH action to autolabel docathon PRs (#127569) 2024-05-31 17:57:07 +00:00
drci_mocks.json.gz Skip signals from older runs of the same workflows (#129291) 2024-06-26 03:49:09 +00:00
ensure_actions_will_cancel.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
export_pytorch_labels.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
file_io_utils.py
filter_test_configs.py [CI] add new test config label ci-test-showlocals to control test log verbosity (#131981) 2024-07-29 18:53:14 +00:00
generate_binary_build_matrix.py Add CUDA 12.6 Linux Builds to Binaries Matrix (#138899) 2024-11-12 19:52:31 +00:00
generate_ci_workflows.py Add CUDA 12.6 Linux Builds to Binaries Matrix (#138899) 2024-11-12 19:52:31 +00:00
generate_docker_release_matrix.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
generate_pytorch_version.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
get_aws_session_tokens.py
get_workflow_job_id.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
github_utils.py [trymerge] Manually close merged PR when Github fails (#135890) 2024-09-13 17:29:24 +00:00
gitutils.py [BE][Easy] enable ruff rule PIE790: unnecessary pass statement (#133200) 2024-08-15 15:50:19 +00:00
gql_mocks.json.gz Skip signals from older runs of the same workflows (#129291) 2024-06-26 03:49:09 +00:00
kill_active_ssh_sessions.ps1
label_utils.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
lint_native_functions.py Revert "[BE][Easy] use pathlib.Path instead of dirname / ".." / pardir (#129374)" 2024-06-29 00:47:15 +00:00
lintrunner.sh Update lint failure msg to encourage lintrunner -a locally (#138232) 2024-10-17 19:13:55 +00:00
parse_ref.py
pr-sanity-check.sh
pytest_cache.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
pytest_caching_utils.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
README.md
report_git_status.sh
rockset_mocks.json.gz
runner_determinator.py Add an opt-out label to runner determinator on PR (#140054) 2024-11-07 22:55:27 +00:00
stop_runner_service.sh
tag_docker_images_for_release.py Don't try to tag s390x docker images (#135509) 2024-09-09 19:07:48 +00:00
td_llm_indexer.sh [TD] Pin numpy to 1.26.0 in indexer (#130442) 2024-07-10 20:52:24 +00:00
test_check_labels.py Reflect check_labels status as a signal (#134711) 2024-08-29 03:11:16 +00:00
test_filter_test_configs.py [CI] add new test config label ci-test-showlocals to control test log verbosity (#131981) 2024-07-29 18:53:14 +00:00
test_gitutils.py Revert "[BE][Easy] use pathlib.Path instead of dirname / ".." / pardir (#129374)" 2024-06-29 00:47:15 +00:00
test_label_utils.py
test_pytest_caching_utils.py
test_runner_determinator.py [CI] Adds support for selecting experiments for workflows on runner determinator (#137614) 2024-10-11 19:20:02 +00:00
test_trymerge.py Remove most rockset references (#139922) 2024-11-12 21:17:43 +00:00
test_tryrebase.py
trymerge.py [mergebot] Add ci-no-td label on revert (#139218) 2024-10-30 21:36:09 +00:00
trymerge_explainer.py
tryrebase.py [BE][Easy][2/19] enforce style for empty lines in import segments in .ci/ and .github/ (#129753) 2024-07-16 09:40:00 +00:00
update_runner_determinator.py [BE] Add script to keept the runner-determinator scripts in sync (#136794) 2024-10-01 22:26:28 +00:00
upload_aws_ossci.sh Build magma binary tarballs for various cuda (#139888) 2024-11-08 13:28:27 +00:00
wait_for_ssh_to_drain.ps1

pytorch/.github

NOTE: This README contains information for the .github directory but cannot be located there because it will overwrite the repo README.

This directory contains workflows and scripts to support our CI infrastructure that runs on GitHub Actions.

Workflows

  • Pull CI (pull.yml) is run on PRs and on main.
  • Trunk CI (trunk.yml) is run on trunk to validate incoming commits. Trunk jobs are usually more expensive to run so we do not run them on PRs unless specified.
  • Scheduled CI (periodic.yml) is a subset of trunk CI that is run every few hours on main.
  • Binary CI is run to package binaries for distribution for all platforms.

Templates

Templates written in Jinja are located in the .github/templates directory and used to generate workflow files for binary jobs found in the .github/workflows/ directory. These are also a couple of utility templates used to discern common utilities that can be used amongst different templates.

(Re)Generating workflow files

You will need jinja2 in order to regenerate the workflow files which can be installed using:

pip install -r .github/requirements/regenerate-requirements.txt

Workflows can be generated / regenerated using the following command:

.github/regenerate.sh

Adding a new generated binary workflow

New generated binary workflows can be added in the .github/scripts/generate_ci_workflows.py script. You can reference examples from that script in order to add the workflow to the stream that is relevant to what you particularly care about.

Different parameters can be used to achieve different goals, i.e. running jobs on a cron, running only on trunk, etc.

ciflow (trunk)

The label ciflow/trunk can be used to run trunk only workflows. This is especially useful if trying to re-land a PR that was reverted for failing a non-default workflow.

Infra

Currently most of our self hosted runners are hosted on AWS, for a comprehensive list of available runner types you can reference .github/scale-config.yml.

Exceptions to AWS for self hosted:

  • ROCM runners

Adding new runner types

New runner types can be added by committing changes to .github/scale-config.yml. Example: https://github.com/pytorch/pytorch/pull/70474

NOTE: New runner types can only be used once the changes to .github/scale-config.yml have made their way into the default branch

Testing pytorch/builder changes

In order to test changes to the builder scripts:

  1. Specify your builder PR's branch and repo as builder_repo and builder_branch in .github/templates/common.yml.j2.
  2. Regenerate workflow files with .github/regenerate.sh (see above).
  3. Submit fake PR to PyTorch. If changing binaries build, add an appropriate label like ciflow/binaries to trigger the builds.