Skip to content

Commit da17be2

Browse files
Update workflow.
1 parent b8cd41b commit da17be2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/e2e-validation.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ jobs:
1515
uses: aws-actions/configure-aws-credentials@v2
1616
with:
1717
aws-region: ${{ secrets.PIPELINE_AWS_REGION }}
18-
role-to-assume: arn:aws:iam::${{ secrets.PIPELINE_AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
18+
role-to-assume: arn:aws:iam::${{ secrets.PIPELINE_AWS_ACCOUNT_ID }}:role/${{ secrets.PIPELINE_ROLE }}
1919
role-session-name: github-action
2020
- name: Validate
2121
run: |
22-
executionId=$(aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }}-${{ github.head_ref }} --region ${{ secrets.PIPELINE_AWS_REGION }} --query "pipelineExecutionId" --output text)
22+
executionId=$(aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }} --region ${{ secrets.PIPELINE_AWS_REGION }} --query "pipelineExecutionId" --output text)
23+
sleep 60
2324
while true; do
24-
status=$(aws codepipeline get-pipeline-execution --pipeline-name ${{ secrets.PIPELINE_NAME }}-${{ github.head_ref }} --region ${{ secrets.PIPELINE_AWS_REGION }} --pipeline-execution-id $executionId --query "pipelineExecution.status" --output text)
25+
status=$(aws codepipeline get-pipeline-execution --pipeline-name ${{ secrets.PIPELINE_NAME }} --region ${{ secrets.PIPELINE_AWS_REGION }} --pipeline-execution-id $executionId --query "pipelineExecution.status" --output text)
2526
echo "Pipeline status: $status"
2627
if [[ "$status" == "Failed" ]]; then
2728
echo "Pipeline failed."

integtests/chatbot-api/aurora_workspace_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_add_rss(client: AppSyncClient):
8484

8585
ready = False
8686
retries = 0
87-
while not ready and retries < 10:
87+
while not ready and retries < 20:
8888
time.sleep(5)
8989
retries += 1
9090
document = client.get_document(

0 commit comments

Comments
 (0)