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: Main branch validation #621

Merged
merged 3 commits into from
Jan 8, 2025
Merged

feat: Main branch validation #621

merged 3 commits into from
Jan 8, 2025

Conversation

charles-marion
Copy link
Collaborator

@charles-marion charles-marion commented Jan 7, 2025

Issue #, if available:

Description of changes:
Trigger validation on changes on the main branch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -84,7 +84,7 @@ def test_add_rss(client: AppSyncClient):

ready = False
retries = 0
while not ready and retries < 10:
while not ready and retries < 20:
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Why are we increasing the retries here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In some case the test was slow/flaky. I increased the wait time to see if it improves it.

run: |
executionId=$(aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }} --region ${{ secrets.PIPELINE_AWS_REGION }} --query "pipelineExecutionId" --output text)
sleep 60
while true; do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to add a timeout here for indefinite runs or this is already handled by aws code pipeline?

Copy link
Collaborator Author

@charles-marion charles-marion Jan 8, 2025

Choose a reason for hiding this comment

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

There is a default one of 6h. We could set one later if needed.

Copy link
Collaborator

@maryamkhidir maryamkhidir left a comment

Choose a reason for hiding this comment

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

LGTM! Left minor comments.

@charles-marion charles-marion merged commit 6117b0d into main Jan 8, 2025
5 checks passed
@charles-marion charles-marion deleted the feat_workflow branch January 8, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants