-
Notifications
You must be signed in to change notification settings - Fork 29
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
Conversation
Signed-off-by: Yutong Li <[email protected]>
@@ -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\)") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
This fixed the integration tests completely https://github.com/aws-deadline/deadline-cloud/actions/runs/9765921768 |
There was a problem hiding this 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.
…-deadline#385) Signed-off-by: Yutong Li <[email protected]> Signed-off-by: Cloud User <[email protected]>
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.