Skip to content

Conversation

@mirelap-amazon
Copy link
Contributor

@mirelap-amazon mirelap-amazon commented Jun 29, 2021

Issue #, if available:

Description of changes:
I'm reconsidering this change to update the module path only for this specific usecase we've found for uwsgi when the "/./" is added. If other usecases arise, we can add them later.

Testing:

Tested it with the task published and django app from our sample and the Fargate app we have.

Before this change, a frame in the Fargate app looked like optamazonbinSampleApp:<module>.

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

@mirelap-amazon mirelap-amazon requested a review from a team June 29, 2021 15:04
@mirelap-amazon mirelap-amazon self-assigned this Jun 29, 2021
@mirelap-amazon mirelap-amazon requested a review from PapaPedro June 29, 2021 15:08
import os
# This ignores the first D:.
# This test just asserts the current behaviour, though the "/./" removal is not set for Windows.
expected = self.current_path.replace(os.sep, ".")[3:] + ".polls.views"
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not understand this, could you explain with a concrete example what we expect for each Windows or other os?
I kind of expected the module path the turn out the same for all os

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For Windows I'm not updating the module path because I didn't test uwsgi on Windows, this is just a test to show what it is now.

Copy link
Contributor

@PapaPedro PapaPedro left a comment

Choose a reason for hiding this comment

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

Looks good to me but was a bit confused about one unit test

@mirelap-amazon mirelap-amazon merged commit c78f262 into main Jun 29, 2021
@mirelap-amazon mirelap-amazon deleted the mirelap-dev-fix-june-29 branch June 29, 2021 16:42
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.

2 participants