Skip to content
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

feat: Add wait timeout for deploy command #7162

Merged
merged 9 commits into from
Jul 22, 2024
Merged

Conversation

cullenwatson
Copy link
Contributor

@cullenwatson cullenwatson requested a review from a team as a code owner June 13, 2024 01:08
@cullenwatson cullenwatson requested review from lucashuy and hnnasit June 13, 2024 01:08
@github-actions github-actions bot added area/deploy sam deploy command pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jun 13, 2024
Copy link
Contributor

@jysheng123 jysheng123 left a comment

Choose a reason for hiding this comment

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

Would you be able to make a unit test where the max_wait_duration is really low like 5 seconds and test that it goes through?

@sidhujus sidhujus removed the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jun 17, 2024
@cullenwatson
Copy link
Contributor Author

Would you be able to make a unit test where the max_wait_duration is really low like 5 seconds and test that it goes through?

It is in minutes. Is there a way we could test one minute timeout?

@jysheng123
Copy link
Contributor

Hmm, yeah on second thought, this seems fine to me to test since the previous hard coded value was 120 seconds anyways, maybe a NIT that im thinking of is the possibility of the sam deploy time outing for an in definite amount of time, so maybe something like setting a reasonable upper limit like 10 minutes to me.

@cullenwatson
Copy link
Contributor Author

ok i just put min of 60 minutes and max 480 minutes as 480 was what the op wanted

@hawflau
Copy link
Contributor

hawflau commented Jun 26, 2024

Hi @cullenwatson could you please check the failed checks and fix accordingly? Seems like there's some linting issues, and you also need to run make schema to update the SAM CLI command schema as you added a new command option

@lucashuy
Copy link
Contributor

Hi @cullenwatson, just wanted to check in to see if you had any blockers or help wanted to continue contributing.

@cullenwatson
Copy link
Contributor Author

ok the tests are passing now besides the 2 that are failing also in main

@mildaniel mildaniel changed the title add wait timeout for deploy command feat: Add wait timeout for deploy command Jul 22, 2024
@mildaniel mildaniel added this pull request to the merge queue Jul 22, 2024
Merged via the queue into aws:develop with commit 0023427 Jul 22, 2024
55 checks passed
@iainelder
Copy link

@cullenwatson , thanks for this improvement!

I'm no longer working on the project that needed SAM to run longer than 1 hour, so I'm no longer in a position to test this.

I've passed on the good news anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deploy sam deploy command pr/external
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How do I increase the time limit for sam deploy?
7 participants