Skip to content

Fetching databricks host from connection if not supplied in extras.#10749

Closed
joshi95 wants to merge 620 commits intoapache:masterfrom
joshi95:databricks-hook-host-fix
Closed

Fetching databricks host from connection if not supplied in extras.#10749
joshi95 wants to merge 620 commits intoapache:masterfrom
joshi95:databricks-hook-host-fix

Conversation

@joshi95
Copy link
Contributor

@joshi95 joshi95 commented Sep 5, 2020

Fix for the issue #10726 . Have supported the previous functionality of fetching the host from extras if specified else it is getting fetched from the databricks connection which makes more sense.

@joshi95 joshi95 changed the title Fetching databricks host from connection if not supplied in extras. #10726 Fetching databricks host from connection if not supplied in extras. (#10726) Sep 5, 2020
@joshi95 joshi95 changed the title Fetching databricks host from connection if not supplied in extras. (#10726) Fetching databricks host from connection if not supplied in extras. #10726 Sep 5, 2020
@joshi95 joshi95 changed the title Fetching databricks host from connection if not supplied in extras. #10726 Fetching databricks host from connection if not supplied in extras. Sep 5, 2020
Copy link
Member

@mik-laj mik-laj left a comment

Choose a reason for hiding this comment

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

Can you add tests to avoid regression?

@joshi95
Copy link
Contributor Author

joshi95 commented Sep 5, 2020

Can you add tests to avoid regression?

Sure will add that. :)

@joshi95
Copy link
Contributor Author

joshi95 commented Sep 5, 2020

Can you add tests to avoid regression?

Sure will add that. :)

Hi I have added the tests. Not sure why CI/CD test were cancelled.

@potiuk
Copy link
Member

potiuk commented Sep 5, 2020

Caused by the transient issue when building image in the "BuildImage" run: https://github.com/apache/airflow/runs/1075245858?check_suite_focus=true

@potiuk
Copy link
Member

potiuk commented Sep 5, 2020

Re-runed both.

@joshi95
Copy link
Contributor Author

joshi95 commented Sep 5, 2020

Re-runed both.

Thank you :)

@potiuk
Copy link
Member

potiuk commented Sep 5, 2020

Ah no - you nee to rebase to latest master. The build of yours is based on rather old version of the Docker file that uses removed requirements, so you need rebase and it should work fine.

ryanahamilton and others added 20 commits September 6, 2020 09:38
Google Cloud APIs introduced breaking changes in 2.0.0
(https://github.com/googleapis/python-container/blob/master/UPGRADING.md)
and they already caused a number of changes. We should (for now - before
we migrate to 2.0+ ) limit all our google-cloud deps to <2.0.0

Fixes #10316
The pytest bug in 6.0.0 has been fixed in 6.0.1.
See changelog for details: https://docs.pytest.org/en/stable/changelog.html#pytest-6-0-1-2020-07-30
We run this on Webserver Startup and when DAG Serialization is enabled we expect that no files are required but because of this bug the files were still looked for.
Co-authored-by: Jacob Ferriero <jferriero@google.com>
CI is failing because of incorrect spelling "everytime", it should be "every time"
Co-authored-by: Alikhan <alikhan.tagybergen@tomtom.com>
Co-authored-by: alikhtag <43503284+alikhtag@users.noreply.github.com>
In case Apache Airflow directory is added as subrepo, a new
.gitrepo file is created in the Airflow sources. When you try to
run pre-commit checks, the RAT check fails in this case.

Adding it to .rat-excludes fixes the problem
* More fancy environment checking

* fixup! More fancy environment checking
Add Bigtable Update Instance Hook/Operator
Add type annotations, including a few changes to ensure the right types
are passed through. Specifically, if region is not given, it must be
provided in the DAG's default_args.
turbaszek and others added 28 commits September 6, 2020 09:39
This change fixes error: open(quickstart.sh): Permission denied
that was rised during git add.
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
The `@provide_session` wrapper will already commit the transaction when
returned, unless an explicit session is passed in -- removing this
parameter changes the behaviour to be:

- If session explicitly passed in: don't commit (caller's
  responsibility)
- If no session passed in, `@provide_session` will commit for us already.
If we run this test
(TestTriggerRuleDep::test_get_states_count_upstream_ti specifically)
more than once without clearing the DB in between it would fail due to a
unique constraint violation.
It could have wedged, (but the process still be alive) and we would
never notice.

In this I use `time.monotonic` rather than a `datetime` object for two
reasons:

1. We don't need the expense of a "full" date time object since all we
    care about is the second diff between two points in time.
2. It is "more correct" as `datetime.now()` would be inaccurate if the
   system clock changes (NTP etc.)
* Unify command names in CLI

* fixup! Unify command names in CLI
…ploying pods (#10677)

* Add generate_template command for kubernetes_executor

* move import

* fix test failure

* Address @mik-laj comments

* Address @mik-laj comments

* Use current dir

* add docs

* fix test
The current latest available version is 0.5.0 (https://pypi.org/project/Flask-Login/0.5.0/)

Version 0.5.0 drops support for Python 2.6, 3.3, 3.4 and we don't use those versions in Airflow Master
* Make grace_period_seconds option on K8sPodOperator

This PR allows users to choose whether they want to gracefully kill
pods when they delete tasks in the UI or if they would like to
immediately kill them.

* Update airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
BATS has additional libraries of asserts that are much more
straightforward and nicer to write tests for bash scripts

There is no dockerfile from BATS that contains those, so we
had to build our own (but it follows the same structure
as #9652 - where we keep our dev docker image
sources inside our repository and the generated docker images
in "apache/airflow:<tool>-CALVER-TOOLVER format.

We have more BATS unit test to add - following #10576
and this change will be of great help.
Co-authored-by: antonio-davide-cali <antonio.davide.cali@ikea.com>
openapi-generator relies on this component to generate auth code in
some of the clients.
Enable D106, D207 and D208

D106	Missing docstring in public nested class
D207	Docstring is under-indented
D208	Docstring is over-indented
Adds test that an error is raised with specific message when unkown object type is passed
Adds test to verify that string can be passed to conf and ConfObject._deserialize works.
Add black to the table for Static Code Checkers
If the pod restarts before the sleep time is over, the trim command will not run. I think it's better if we reorder the commands to execute the delete and then go to sleep. At the moment sleep is every 15 mins but people will just increase the EVERY line if they want longer sleep time and can encounter this bug.
@joshi95
Copy link
Contributor Author

joshi95 commented Sep 6, 2020

I will start a new PR closing this.

@joshi95 joshi95 closed this Sep 6, 2020
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.