Skip to content

Conversation

@yangw-dev
Copy link
Contributor

@yangw-dev yangw-dev commented Nov 22, 2025

Add token in pytorch-lab/pytorch now, modify code to access it

@vercel
Copy link

vercel bot commented Nov 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Updated (UTC)
torchci Ignored Ignored Preview Nov 24, 2025 5:44pm

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 22, 2025
Copy link
Contributor

@huydhn huydhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

type=str,
help="the end time to run, in format of YYYY-MM-DD HH:MM:SS",
)
parser.add_argument(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This looks redundant because it will default to ENVS["HUD_INTERNAL_BOT_TOKEN"] anyway. Why not just check for that envvars, and use it if it's set

@classmethod
def from_request(
cls, url: str, query: dict, timeout: int = 180
cls, url: str, query: dict, access_token:str, timeout: int = 180
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: There are a couple for formatting changes in this PR that are rather unexpected like access_token:str here. A good BE task would be to enable linter for python lambda. I'm thinking ruff check and ruff format

@yangw-dev yangw-dev merged commit 02e8644 into main Nov 24, 2025
5 checks passed
@yangw-dev yangw-dev deleted the addtoken branch November 24, 2025 17:47
clee2000 added a commit that referenced this pull request Nov 24, 2025
I added the token to the secrets for test-infra

Like #7511
huydhn pushed a commit that referenced this pull request Nov 25, 2025
Also changed the URL since that's the main reason I missed this one (I
was searching for hud.pytorch.org/api)

Similar to #7511

Testing:
added pr trigger to test
https://github.com/pytorch/test-infra/actions/runs/19646178221/job/56261830650?pr=7513

An example failure is
https://github.com/pytorch/test-infra/actions/runs/19645854442/job/56260785042
(if the link expires, the result was that the api gets 429 and all the
jobs fail)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants