airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Fix KubernetesHook failed on an attribute metadata:name absence

Open morooshka opened this issue 3 years ago • 15 comments

closes: #25668 related: #25668

morooshka avatar Aug 18 '22 08:08 morooshka

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: [email protected] Slack: https://s.apache.org/airflow-slack

boring-cyborg[bot] avatar Aug 18 '22 08:08 boring-cyborg[bot]

There are errors to fix.

potiuk avatar Sep 08 '22 23:09 potiuk

There are errors to fix.

@potiuk thank you for your message. I see some tests failing, but I consider these are not connected with my changes. How can I resolve the case? I have made several rebases on apache/main and the number of falling tests changes from iteration to iteration. What is the best practice with this? Thank you

UPD: This is my fault, I should be more attentive. I'll fix it

morooshka avatar Sep 09 '22 10:09 morooshka

@potiuk The problem had gone. I was so mind fixed that it is not connected with my changes that I really missed a piece of code deleted by occasion. Thank you, you forced me to recheck

morooshka avatar Sep 09 '22 12:09 morooshka

@potiuk The problem had gone. I was so mind fixed that it is not connected with my changes that I really missed a piece of code deleted by occasion. Thank you, you forced me to recheck

:D -> yeah complexity of our CI leads it to some false negatives that might cloud the understanding which changes are causing which problems. Actually - we have a main failure currently that needs to be fixed that WILL likely fail in your PR so brace for it.

I wish we had the situaton that we have super-stable and solid CI where we have 100% certaintty about the root cause of the problem but this is IMHO very nice goal to have but very unrealistic to achieve in practice for any system which has sizeable complexity. It's pretty much always a moving target and we need to accept it as a fact of life (and strive to improve it continuousy without the false hopes we will ever achieve it "for ever". There are brief periods where it might work and the most we can achieve is to make those periods longere and more "stable".

potiuk avatar Sep 09 '22 14:09 potiuk

@potiuk Sure, I understand the mission =)

morooshka avatar Sep 09 '22 20:09 morooshka

And now. -you have some conflicts to solve and rebase, look at the Helm isssues and see if those are your problems and fix them if nedeed.

potiuk avatar Sep 18 '22 20:09 potiuk

And now. -you have some conflicts to solve and rebase, look at the Helm isssues and see if those are your problems and fix them if nedeed.

Hi Jarek! Fixed. Some CI pipes were skipped, I have reported to Slack. I do not understand why and do not understand how to get the reason. However, the checks were successful 😁

morooshka avatar Sep 19 '22 13:09 morooshka

Let's see. we skip some unnneded checks (based on what your change brings) but I also have to approve the rest of your workflow because you are "new' user.

potiuk avatar Sep 19 '22 13:09 potiuk

So some checks will still run

potiuk avatar Sep 19 '22 13:09 potiuk

Let's see. we skip some unnneded checks (based on what your change brings) but I also have to approve the rest of your workflow because you are "new' user.

The skipped checks we reported as failed by email to me: image

morooshka avatar Sep 19 '22 13:09 morooshka

Let's see. we skip some unnneded checks (based on what your change brings) but I also have to approve the rest of your workflow because you are "new' user.

The skipped checks we reported as failed by email to me: image

Those are likely tests that are run in your fork "main" after synchronizing the changes. You should likely disable the workflows in your own fork.

potiuk avatar Sep 19 '22 13:09 potiuk

All our tests for PRs from fork run in Airflow repo's GitHub Actions

potiuk avatar Sep 19 '22 13:09 potiuk

So some checks will still run

Hi Jarek! Finally all checks succeeded. Do I need to rebase again? The main head had gone away again =)

morooshka avatar Sep 20 '22 05:09 morooshka

No. It's ok. But I think @jedcunningham aand @dstandish / @ephraimbuddy shoudl take a look at it :)

potiuk avatar Sep 20 '22 08:09 potiuk

Hi @potiuk! How can we go further?

morooshka avatar Oct 01 '22 16:10 morooshka

Screenshot 2022-10-10 at 00 28 09

Start with resolving conflicts and ask here for merging. I am going for holidays now, so won't be able to merge it, but others might.

potiuk avatar Oct 10 '22 05:10 potiuk

i hesitated suggesting reverting your unrelated changes cus i didn't want to be too nitpicky but after looking again, i do think it's best to revert those changes if you wouldn't mind since you're going to be rebasing anyway.

dstandish avatar Oct 10 '22 16:10 dstandish

just need to resolve conflicts here

dstandish avatar Oct 11 '22 15:10 dstandish

This one needs rebase/conflict resolution after applying string normalization (See slack and devlist for information). Ths might be good opportunity to remove the unrelated changes and move them to separate PR if needed.

potiuk avatar Oct 24 '22 15:10 potiuk

I followed all the recommendations above and made corrections

morooshka avatar Oct 28 '22 11:10 morooshka

I thinkn you need to solve conflicts now :( @eladkal Are you ok ?

potiuk avatar Oct 31 '22 01:10 potiuk

@potiuk @eladkal conflicts resolved, it is being builded. In the previous try I have done the same but the main branch had succeeded to go further

morooshka avatar Oct 31 '22 10:10 morooshka

Awesome work, congrats on your first merged pull request!

boring-cyborg[bot] avatar Nov 08 '22 12:11 boring-cyborg[bot]

@potiuk @dstandish @eladkal thank you for your help and mentoring! Hope to continue contributing

morooshka avatar Nov 08 '22 13:11 morooshka