torchci/log_classifier/backfill.py [59:77]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if __name__ == "__main__":
    logging.basicConfig(
        format="<%(levelname)s> [%(asctime)s] %(message)s",
        level=logging.INFO,
        stream=sys.stderr,
    )

    parser = argparse.ArgumentParser(
        description="""\
        Backfill classifications for failing jobs. This is useful when we add a
        new rule and want old jobs to use it.

        You need to set ROCKSET_API_KEY to a valid Rockset API key and
        LAMBDA_URL to the API Gateway URL for the ossci-log-analyzer lambda.

        This uses the lambda to backfill, NOT your local repo.
        """
    )
    parser.add_argument(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



torchci/log_classifier/classify_log.py [270:286]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if __name__ == "__main__":
    import argparse
    import sys

    logging.basicConfig(
        format="<%(levelname)s> [%(asctime)s] %(message)s",
        level=logging.INFO,
        stream=sys.stderr,
    )

    parser = argparse.ArgumentParser(
        description="""\
            Download logs from s3 and classify them. Optionally, write the
            classification back to s3.
        """
    )
    parser.add_argument(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



