-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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 all Amazon Provider MyPy errors #20935
Conversation
2649921
to
7ce84ec
Compare
3c5cadf
to
5be3fe3
Compare
All green now! |
5be3fe3
to
50ac6c5
Compare
With this one (and some merged yesterday) will get to 29 MyPy errors left ! |
d317b11
to
1374e56
Compare
1374e56
to
157b1f5
Compare
Looks like going to be Green :) |
Hey @ashb - all should be good here. (and really close to finish MyPy). |
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
@potiuk This has broken the ability to run a glue job without specifying a script location on AWS Glue. Previously it was allowed that this value was EDIT: What are sensible next steps? (Improving my language) |
Feel free to provide a good fix for it. I think you are the one who can test it eeasily, so likely it's best if you fix it. Can you please make a fix @JorgenG ? |
@potiuk I think can jump on that early next week. I am not familiar with the MyPy tooling though. I assume the origin of this change is due to the parameter not being optional? Would I then add back in a "violation" of your MyPy fixes? 🤔 |
Alternatively you can open an issue, and we can mark it as good first issue if it will be justified, and hopefully it will get fixed - but yo need to describe in detail the scenario - i think the one liner description above is not enough of the doscription what exactly got broken. |
@potiuk Totally makes sense. I'll give it a go myself and if not I'll summarize as a better described issue. Thanks a lot for responding quickly! 👍 |
No idea- maybe some of the typing in Amazon was wrong, I do not know which exact part of it you refer to so it's hard to say. |
Or maybe the way it worked before was accidental and not really supported/expected - in which case it is a no issue and it was simply wrongly used - maybe there is another "proper" way of doing it - this is what I am referring to as "you are the one that can fix it". While I think MyPy changes were neutral, it could be it is really a problem with underlying library behaviour when None is passed. That's why it needs a specific explanation and reproducible case in issue. |
Ah - I saw your detailed comment now - sure I will make a fix in a moment :) |
I did not realize you commented on the exact line - I only saw this comment and did not know what it referred to 🤣 |
Wow, thanks. That is very kind! Let me know if you want any more elaboration or investigation here. As you mention, I am not sure what is "correct" usage of this. However as an example from the boto3 There does not seem to be any requirement to provide this. I think script location is passed as an argument. EDIT: Also as can be seen here; https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html If providing script location, it overrides what is set on the job. This wording IMO indicates that it should be possible to not provide it. 👍 |
Fix error introduced in apache#20935 where script location in Glue Job could be None.
Part of #19891
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.