Skip to content

Conversation

@kd2718
Copy link
Contributor

@kd2718 kd2718 commented Oct 17, 2021

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.

@kd2718 kd2718 requested a review from dimberman as a code owner October 17, 2021 17:41
@boring-cyborg boring-cyborg bot added the provider:cncf-kubernetes Kubernetes (k8s) provider related issues label Oct 17, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 17, 2021

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)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, mypy and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

Copy link
Member

@uranusjr uranusjr left a 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

@github-actions
Copy link

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.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Oct 19, 2021
@kd2718
Copy link
Contributor Author

kd2718 commented Oct 20, 2021

I modified a few tests to correctly work with the new - syntax. Previous tests tried to split strings looking for ..

@kd2718
Copy link
Contributor Author

kd2718 commented Oct 20, 2021

Thanks, I can't spell

@kd2718
Copy link
Contributor Author

kd2718 commented Oct 25, 2021

What can I do now to help this along?

@dimon222
Copy link
Contributor

Looks okay to me.

@kd2718
Copy link
Contributor Author

kd2718 commented Oct 29, 2021

All tests passing

@kd2718
Copy link
Contributor Author

kd2718 commented Nov 1, 2021

hoping this is good to go...

@kd2718
Copy link
Contributor Author

kd2718 commented Nov 3, 2021

please re-run tests

Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@uranusjr uranusjr left a 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

Comment on lines 662 to 665
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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?

Copy link
Contributor Author

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.

@kd2718
Copy link
Contributor Author

kd2718 commented Nov 17, 2021

My last test run, I was getting failures from ./tests/jobs/test_scheduler_job.py, but only for certian db and python combinations. If it fails again, I might need some help as to why. Running it with breeze locally, all the tests from that test file.

@kd2718
Copy link
Contributor Author

kd2718 commented Nov 19, 2021

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.

@uranusjr
Copy link
Member

uranusjr commented Nov 19, 2021

There was an error in main that fails Helm tests. Please rebase the branch against latest main.

@kd2718
Copy link
Contributor Author

kd2718 commented Nov 29, 2021

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?

kd2718 and others added 15 commits November 28, 2021 21:46
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>
@jedcunningham
Copy link
Member

No need to squash if you don't want to - we do that automatically when we merge.

@uranusjr uranusjr changed the title replaced '.' with '-' and adjusted trimmed_pod_id per ticket comments Adjust trimmed_pod_id and replace '.' with '-' Nov 30, 2021
@uranusjr uranusjr merged commit 5633158 into apache:main Nov 30, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Nov 30, 2021

Awesome work, congrats on your first merged pull request!

dillonjohnson pushed a commit to dillonjohnson/airflow that referenced this pull request Dec 1, 2021
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full tests needed We need to run full set of tests for this PR to merge provider:cncf-kubernetes Kubernetes (k8s) provider related issues type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pod name with period is causing issues for some apps in k8s

4 participants