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.#10749joshi95 wants to merge 620 commits intoapache:masterfrom joshi95:databricks-hook-host-fix
joshi95 wants to merge 620 commits intoapache:masterfrom
joshi95:databricks-hook-host-fix
Conversation
mik-laj
reviewed
Sep 5, 2020
Member
mik-laj
left a comment
There was a problem hiding this comment.
Can you add tests to avoid regression?
Contributor
Author
Sure will add that. :) |
Contributor
Author
Hi I have added the tests. Not sure why CI/CD test were cancelled. |
Member
|
Caused by the transient issue when building image in the "BuildImage" run: https://github.com/apache/airflow/runs/1075245858?check_suite_focus=true |
Member
|
Re-runed both. |
Contributor
Author
Thank you :) |
Member
|
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. |
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.
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
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.
Contributor
Author
|
I will start a new PR closing this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.