-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Adjust trimmed_pod_id and replace '.' with '-' #19036
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
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
uranusjr
left a comment
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.
cc @dimon222 to take a look if possible
|
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. |
|
I modified a few tests to correctly work with the new |
|
Thanks, I can't spell |
|
What can I do now to help this along? |
|
Looks okay to me. |
|
All tests passing |
|
hoping this is good to go... |
|
please re-run tests |
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.
Maybe add a comment to explain why 63 and 33 are significant?
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.
I added a few notes explaining where these numbers came from.
uranusjr
left a comment
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.
Mostly ready but one nitpick
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.
| if len(pod_id) <= 63 - 33: | |
| assert len(parts[0]) == len(pod_id) | |
| else: | |
| assert len(parts[0]) <= 63 | |
| assert parts[0] == pod_id[:30] |
Did this get lost in the shuffle?
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.
chagned to assert len(parts[0]) <= 30. The prefix can be less than 30, but not larger.
|
My last test run, I was getting failures from |
|
I am getting errors like this one now: https://github.com/apache/airflow/runs/4248182868?check_suite_focus=true#step:7:2000 I am not sure where to go to debug this. Any suggestions? I will see if I can trace it on my own a bit later, but if anyone can point me in the right direction, that would be great. |
|
There was an error in main that fails Helm tests. Please rebase the branch against latest main. |
Do you want to to squash as well? |
bad spelling Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
I added a mock, but it wasn't needed. I think it was also causing some test failure
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
|
No need to squash if you don't want to - we do that automatically when we merge. |
|
Awesome work, congrats on your first merged pull request! |
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
closes: #16611
related: #16980
Having a period in the name could cause issues with the hostname. Reverting to hyphen will should fix the issues. I also included changes talked about in a previous PR.