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

fix: Fix JA wrong account bucket integration test temp path name #385

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

YutongLi291
Copy link
Contributor

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

The windows integration tests were failing due to FAILED test/integ/deadline_job_attachments/test_job_attachments.py::test_sync_inputs_bucket_wrong_account[2023-03-03] - ValueError: An error occurred \(403\) is not a normalized and relative path

What was the solution? (How)

Fix the test which is creating a temp path with a weird path to just use a normal path

What is the impact of this change?

The tests should pass on windows.

How was this change tested?

No windows environment, but confirmed that mac tests still work properly by hatch run integ:test

Was this change documented?

No

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 July 2, 2024 17:13
@AlexTranAmz AlexTranAmz merged commit 26ee376 into aws-deadline:mainline Jul 2, 2024
15 checks passed
@@ -1355,7 +1355,7 @@ def test_sync_inputs_bucket_wrong_account(
)

syncer = asset_sync.AssetSync(job_attachment_test.farm_id)
session_dir = tmp_path_factory.mktemp(r"An error occurred \(403\)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this written as a funky folder for a reason before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't make sense to have a funky folder since it doesn't have anything to do with what the test is testing

Copy link
Contributor

Choose a reason for hiding this comment

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

Even if there is a reason, it's most likely not needed anymore as we already have a regex check to make sure char like "(" and "" can't be used

Copy link
Contributor

Choose a reason for hiding this comment

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

Perfect - this would make sense now.

@YutongLi291
Copy link
Contributor Author

This fixed the integration tests completely https://github.com/aws-deadline/deadline-cloud/actions/runs/9765921768

Copy link
Contributor

@leongdl leongdl left a comment

Choose a reason for hiding this comment

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

OK with the PR, but we need to find a good way to test our PRs for platforms we are fixing for. Lets find time to go over to IT and get our Windows laptops.

rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Jul 9, 2024
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.

4 participants