Home / Function/ query_job_sha() — pytorch Function Reference

query_job_sha() — pytorch Function Reference

Architecture documentation for the query_job_sha() function in update_expected.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  6c99088d_53b6_0274_333c_b9b65c65ed00["query_job_sha()"]
  48ac7219_0d89_c217_fc61_0fdfee3ad13e["parser()"]
  48ac7219_0d89_c217_fc61_0fdfee3ad13e -->|calls| 6c99088d_53b6_0274_333c_b9b65c65ed00
  style 6c99088d_53b6_0274_333c_b9b65c65ed00 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/ci_expected_accuracy/update_expected.py lines 80–102

def query_job_sha(repo, sha):
    params = {
        "queryVariables": {"sha": sha, "repo": repo},
    }
    # If you are a Meta employee, go to P1679979893 to get the id and secret.
    # Otherwise, ask a Meta employee give you the id and secret.
    try:
        KEY_ID = os.environ["CH_KEY_ID"]
        KEY_SECRET = os.environ["CH_KEY_SECRET"]
    except KeyError as e:
        raise RuntimeError(
            "CH_KEY_ID and CH_KEY_SECRET environment variables must be set. "
            "If you are a Meta employee, go to P1679979893 to get the id and secret. "
            "Otherwise, ask a Meta employee to give you the id and secret."
        ) from e

    r = requests.post(
        url=ARTIFACTS_QUERY_URL,
        data=json.dumps(params),
        headers={"Content-Type": "application/json"},
        auth=(KEY_ID, KEY_SECRET),
    )
    return r.json()["data"]

Subdomains

Called By

Frequently Asked Questions

What does query_job_sha() do?
query_job_sha() is a function in the pytorch codebase.
What calls query_job_sha()?
query_job_sha() is called by 1 function(s): parser.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free