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

Chore: Use the latest stack event timestamp as a marker to get the new deployment events #5852

Merged
merged 5 commits into from
Oct 24, 2023

Conversation

moelasmar
Copy link
Contributor

@moelasmar moelasmar commented Aug 28, 2023

add some logs to deploy command to investigate issue # #5109

The problem in that issue is the WSL environment clock is not in sync with the actual time, it was 3 minutes ahead, and so the loop we use to describe the deployment events never ends, as it is not able to find any new events.

I updated the wait_for_execute method that wait for a change set to be executed, to take a time_stamp_marker as an extra parameter to use it to determine the events to be printed. The value of this marker will be the latest stack event if the stack exists, or 0 in case if the stack does not exist.

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@moelasmar moelasmar reopened this Oct 22, 2023
@moelasmar moelasmar marked this pull request as ready for review October 23, 2023 00:00
@moelasmar moelasmar requested a review from a team as a code owner October 23, 2023 00:00
@moelasmar moelasmar requested review from jfuss and jysheng123 October 23, 2023 00:00
Copy link
Contributor

@sriram-mv sriram-mv left a comment

Choose a reason for hiding this comment

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

Overall looks good.

samcli/lib/deploy/deployer.py Outdated Show resolved Hide resolved
@moelasmar moelasmar changed the title chore: add more logs in deploy command Chore: Depends on the stack events to get the latest deployment events Oct 23, 2023
@moelasmar moelasmar changed the title Chore: Depends on the stack events to get the latest deployment events Chore: Depends on the latest stack event timestamp to be a marker to get the latest deployment events Oct 23, 2023
@moelasmar moelasmar changed the title Chore: Depends on the latest stack event timestamp to be a marker to get the latest deployment events Chore: Depends on the latest stack event timestamp to be a marker to get the new deployment events Oct 23, 2023
@moelasmar moelasmar changed the title Chore: Depends on the latest stack event timestamp to be a marker to get the new deployment events Chore: Uses the latest stack event timestamp as a marker to get the new deployment events Oct 23, 2023
@moelasmar moelasmar changed the title Chore: Uses the latest stack event timestamp as a marker to get the new deployment events Chore: Use the latest stack event timestamp as a marker to get the new deployment events Oct 23, 2023
@moelasmar moelasmar added this pull request to the merge queue Oct 24, 2023
Merged via the queue into aws:develop with commit 572ca1d Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants