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

test: make credentials tests more robust to wait for job to start #499

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

YutongLi291
Copy link
Contributor

@YutongLi291 YutongLi291 commented Dec 2, 2024

What was the problem/requirement? (What/Why)

The credentials tests were not waiting properly for the job to start, causing them to be flaky sometimes.

This was because we are only checking for the lifecycle status, not the task run status.

What was the solution? (How)

Check that the taskRunStatus of the job is RUNNING or SUCCEEDED to makes sure that the job has started.

What is the impact of this change?

The tests will be less flaky

How was this change tested?

source .e2e_linux_infra.sh hatch run e2e-test

No windows test changes

Was this change documented?

N0

Is this a breaking change?

No

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

@YutongLi291 YutongLi291 requested a review from a team as a code owner December 2, 2024 19:03
@YutongLi291 YutongLi291 enabled auto-merge (squash) December 2, 2024 19:28
test/e2e/test_job_submissions.py Outdated Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Dec 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
87.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@YutongLi291 YutongLi291 requested a review from jusiskin December 2, 2024 22:36
@YutongLi291 YutongLi291 merged commit 1dbb4a6 into aws-deadline:mainline Dec 3, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants