Skip to content

Retry behavior causes failure to take too long with invalid parameters, without ability to configure retry behavior #683

Closed
@retzero

Description

@retzero

Describe the bug

Hello.
It takes too long time to fail in case of invalid parameters.
Took 1 minute 20 seconds to fail...
Wrong audience also have the same issue.

How to configure to fail immediately?

Expected Behavior

It should fail immediately.

Current Behavior

Took 1 minute 20 seconds to fail.

Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Evaluating condition for step: 'Authenticate to AWS'
Sat, 04 Mar 2023 12:03:55 GMT##[debug]Evaluating: success()
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Evaluating success:
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]=> true
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Result: true
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Starting: Authenticate to AWS
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Register post job cleanup for action: aws-actions/configure-aws-credentials@v1
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Loading inputs
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Evaluating: secrets.AWS_ROLE_TO_ASSUME
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Evaluating Index:
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]..Evaluating secrets:
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]..=> Object
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]..Evaluating String:
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]..=> 'AWS_ROLE_TO_ASSUME'
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]=> '***'
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Result: '***'
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]Loading env
Sat, 04 Mar 2023 12:03:55 GMT Run aws-actions/configure-aws-credentials@v1
Sat, 04 Mar 2023 12:03:55 GMT   with:
Sat, 04 Mar 2023 12:03:55 GMT     aws-region: ap-northeast-2
Sat, 04 Mar 2023 12:03:55 GMT     role-to-assume: ***
Sat, 04 Mar 2023 12:03:55 GMT     audience: sts.amazonaws.com
Sat, 04 Mar 2023 12:03:55 GMT     role-duration-seconds: 900
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]ID token url is https://pipelines.actions.githubusercontent.com/rlDZnPtejP0IgUinrtutIZjnLWJ1A[6](https://github.com/retzero/oidc-test/actions/runs/4330883414/jobs/7562381435#step:2:6)g5kR2DtXy3FzTnYSWfEP/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/6d05abca-e7a9-4546-814f-a2b2eff543ba/jobs/b9acd266-12b9-52e4-499f-13f4a944bdac/idtoken?api-version=2.0&audience=sts.amazonaws.com
Sat, 04 Mar 2023 12:03:55 GMT ::add-mask::***
Sat, 04 Mar 2023 12:03:55 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:03:56 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:03:57 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:03:58 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:04:00 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:04:02 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:04:05 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:04:09 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:04:11 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:04:33 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:04:38 GMT ##[debug]7 role session tags are being used.
Sat, 04 Mar 2023 12:05:15 GMT Error: No OpenIDConnect provider found in your account for https://token.actions.githubusercontent.com
Sat, 04 Mar 2023 12:05:15 GMT ##[debug]Node Action run completed with exit code 1
Sat, 04 Mar 2023 12:05:15 GMT ##[debug]AWS_DEFAULT_REGION='ap-northeast-2'
Sat, 04 Mar 2023 12:05:15 GMT ##[debug]AWS_REGION='ap-northeast-2'
Sat, 04 Mar 2023 12:05:15 GMT ##[debug]Finishing: Authenticate to AWS

Reproduction Steps

Ex) Workflow logs in no provider is configured: https://github.com/retzero/oidc-test/actions/runs/4330883414/jobs/7562381435

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/smallThis issue will take less than a day of effort to fixfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions