Skip to content

Automate PR experiments #1025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Automate PR experiments #1025

wants to merge 3 commits into from

Conversation

harshtech123
Copy link

This pr is indeed for Automatically running tests experiment on PRs which are created or approved by maintainers .

Currently, here is how we do it manually:

  1. Wait for the Build Docker image for PR / build (pull_request) CI to finish.
    • This CI uploads/updates an image (tagged with PR ID) to our artifact registry.
  2. Auth to gcloud locally.
    • E.g., gcloud auth login && gcloud auth application-default login && gcloud auth application-default set-quota-project oss-fuzz.
  3. Request a GKE experiment with request_pr_exp.py.
    • E.g., python -m report.request_pr_exp -p <PR-ID> -n <YOUR-NAME>.
  4. Copy and Paste the links printed by the script to the PR so that others can see it and track improvements / regressions.
  5. (Optional) Repeat 1-3 if the experiment failed. Add -f in step 3 so that the old GKE job and bucket dir will be removed to give place to the new one.
    • E.g., python -m report.request_pr_exp -p <PR-ID> -n <YOUR-NAME> -f

cc : @DavidKorczynski / @DonggeLiu i added both of you as maintainers , please let me know that it works or we have to adjust that , a Big Thanks to both of you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant