airflow.git
5 weeks agoChart: Bump version to 1.6.0 helm-chart/1.6.0 helm-chart/1.6.0rc2
Jed Cunningham [Tue, 17 May 2022 18:26:46 +0000 (12:26 -0600)] 
Chart: Bump version to 1.6.0

5 weeks agoHelm chart 1.6.0rc2 (#23754)
Jed Cunningham [Tue, 17 May 2022 17:42:13 +0000 (11:42 -0600)] 
Helm chart 1.6.0rc2 (#23754)

5 weeks agoFix task log is not captured (#23684)
Ping Zhang [Tue, 17 May 2022 16:29:52 +0000 (09:29 -0700)] 
Fix task log is not captured (#23684)

when StandardTaskRunner runs tasks with exec

Issue: https://github.com/apache/airflow/issues/23540

5 weeks agoIncrease timeout for Helm Chart executor upgrade tests (#23759)
Jarek Potiuk [Tue, 17 May 2022 16:26:30 +0000 (18:26 +0200)] 
Increase timeout for Helm Chart executor upgrade tests (#23759)

5 weeks agoAllow more parameters to be piped through via execute_in_subprocess (#23286)
Charles Machalow [Tue, 17 May 2022 15:47:19 +0000 (08:47 -0700)] 
Allow more parameters to be piped through via execute_in_subprocess (#23286)

5 weeks agoFix broken main branch (#23751)
eladkal [Tue, 17 May 2022 13:43:53 +0000 (16:43 +0300)] 
Fix broken main branch (#23751)

main branch is broken since https://github.com/apache/airflow/pull/23630 needed rebase before merge
as https://github.com/apache/airflow/pull/23730 added the missing example dag

5 weeks agoUpdated MongoDB logo (#23746)
Ross Lawley [Tue, 17 May 2022 12:29:48 +0000 (13:29 +0100)] 
Updated MongoDB logo (#23746)

As per https://www.mongodb.com/brand-resources

5 weeks agoAdd 'reschedule' to the serialized fields for the BaseSensorOperator (#23674)
David Caron [Tue, 17 May 2022 12:18:29 +0000 (08:18 -0400)] 
Add 'reschedule' to the serialized fields for the BaseSensorOperator (#23674)

fix #23411

5 weeks agoSpeech To Text assets & system tests migration (AIP-47) (#23643)
Wojciech Januszek [Tue, 17 May 2022 10:42:54 +0000 (12:42 +0200)] 
Speech To Text assets & system tests migration (AIP-47) (#23643)

Co-authored-by: Wojciech Januszek <januszek@google.com>
5 weeks agoAdd AWS project structure tests (re: AIP-47) (#23630)
Niko [Tue, 17 May 2022 09:22:49 +0000 (02:22 -0700)] 
Add AWS project structure tests (re: AIP-47) (#23630)

5 weeks agoDisable flower in chart by default (#23737)
Jed Cunningham [Tue, 17 May 2022 05:03:28 +0000 (23:03 -0600)] 
Disable flower in chart by default (#23737)

6 weeks agoRemove titles from link buttons (#23736)
Brent Bovenzi [Tue, 17 May 2022 02:58:56 +0000 (22:58 -0400)] 
Remove titles from link buttons (#23736)

6 weeks agoAdd typing for airflow/configuration.py (#23716)
Jarek Potiuk [Mon, 16 May 2022 21:19:35 +0000 (23:19 +0200)] 
Add typing for airflow/configuration.py (#23716)

* Add typing for airflow/configuration.py

The configuraiton.py did not have typing information and it made
it rather difficult to reason about it-especially that it went
a few changes in the past that made it rather complex to
understand.

This PR adds typing information all over the configuration file

6 weeks agoAdd version to migration prefix (#23564)
Daniel Standish [Mon, 16 May 2022 21:13:53 +0000 (14:13 -0700)] 
Add version to migration prefix (#23564)

We don't really need the alembic revision id in the filename.  having version instead is much more useful.  having both of them takes up too much space.

6 weeks agoFix grid details header text overlap (#23728)
Brent Bovenzi [Mon, 16 May 2022 19:21:54 +0000 (15:21 -0400)] 
Fix grid details header text overlap (#23728)

Move top margin to each breadcrumb component to make sure that there is no overlap when the header wraps with long names.

6 weeks agoAdd doc and sample dag for GCSToS3Operator (#23730)
Vincent [Mon, 16 May 2022 19:16:16 +0000 (15:16 -0400)] 
Add doc and sample dag for GCSToS3Operator (#23730)

6 weeks agoAdd fields to CLOUD_SQL_EXPORT_VALIDATION. (#23724)
ishiis [Mon, 16 May 2022 19:16:09 +0000 (04:16 +0900)] 
Add fields to CLOUD_SQL_EXPORT_VALIDATION. (#23724)

6 weeks agoHandle invalid date parsing in webserver views. (#23161)
Karthikeyan Singaravelan [Mon, 16 May 2022 19:15:56 +0000 (00:45 +0530)] 
Handle invalid date parsing in webserver views. (#23161)

* Handle invalid date from query parameters in views.

* Add tests.

* Use common parsing helper.

* Add type hint.

* Remove unwanted error check.

* Fix extra_links endpoint.

6 weeks agoEnsure execution_timeout as timedelta (#23655)
Ping Zhang [Mon, 16 May 2022 18:53:58 +0000 (11:53 -0700)] 
Ensure execution_timeout as timedelta (#23655)

6 weeks agoUse profiles to disable flower in docker-compose (#23709)
Kamil Breguła [Mon, 16 May 2022 12:04:41 +0000 (14:04 +0200)] 
Use profiles to disable flower in docker-compose (#23709)

6 weeks agoAdd slim image to docs/docker-stack/README.md (#23710)
Kamil Breguła [Sun, 15 May 2022 09:52:51 +0000 (11:52 +0200)] 
Add slim image to docs/docker-stack/README.md (#23710)

6 weeks agoAdd UI tests for /utils and /components (#23456)
Brent Bovenzi [Fri, 13 May 2022 14:58:28 +0000 (10:58 -0400)] 
Add UI tests for /utils and /components (#23456)

* Add UI tests for /utils and /components

* add test for Table

* Address PR feedback

* Fix window prompt var

* Fix TaskName test from rebase

* fix lint errors

6 weeks agoAdd environment check and build image check for more Breeze commands (#23687)
Jarek Potiuk [Fri, 13 May 2022 13:16:33 +0000 (15:16 +0200)] 
Add environment check and build image check for more Breeze commands (#23687)

Several commands of Breeze depends on docker, docker compose
being available as well as breeze image. They will work
fine if you "just" built the image but they might benefit
from the image being rebuilt (to make sure all latest
dependencies are installed in the image). The common checks
done in "shell" command for that are now extracted to common
utils and run as first thing in those commands that need it.

6 weeks agoClarify that bundle extras should not be used for PyPi installs (#23697)
Jarek Potiuk [Fri, 13 May 2022 11:33:17 +0000 (13:33 +0200)] 
Clarify that bundle extras should not be used for PyPi installs (#23697)

The bundle extras we have are only used for development and they
should not be used to install airflow from PyPI. This update
to documentation clarifies it.

Closes: #23692

6 weeks agoFix property name in breeze Shell Params (#23696)
Jarek Potiuk [Fri, 13 May 2022 11:00:39 +0000 (13:00 +0200)] 
Fix property name in breeze Shell Params (#23696)

The rename from #23562 missed few shell_parms usage where it
also should be replaced.

6 weeks agoDisable Flower by default from docker-compose (#23685)
Jarek Potiuk [Fri, 13 May 2022 10:21:36 +0000 (12:21 +0200)] 
Disable Flower by default from docker-compose (#23685)

6 weeks agoAdd git_source to DatabricksSubmitRunOperator (#23620)
akolar-db [Fri, 13 May 2022 09:56:13 +0000 (11:56 +0200)] 
Add git_source to DatabricksSubmitRunOperator (#23620)

The existing `DatabricksSubmitRunOperator` is extended with the support for the `git_source` parameter which allows users to run notebook tasks from files committed to git repositories.

If specified, any notebook task that is part of the payload will clone the repository and check out the commit, tag, or the tip of the specified branch. This is an alternative to dev repos ([docs](https://docs.databricks.com/repos/index.html)) where the checkout/update would have to be triggered manually.

Public documentation for the feature available here: https://docs.databricks.com/dev-tools/api/latest/jobs.html (NB: as noted in the docs, the feature is currently in public preview).

6 weeks agoUse func.count to count rows (#23657)
Ping Zhang [Thu, 12 May 2022 21:49:06 +0000 (14:49 -0700)] 
Use func.count to count rows (#23657)

6 weeks agoUpdate doc and sample dag for Quicksight (#23653)
Vincent [Thu, 12 May 2022 20:19:35 +0000 (14:19 -0600)] 
Update doc and sample dag for Quicksight (#23653)

6 weeks agoFix expand/collapse all buttons (#23590)
Brent Bovenzi [Thu, 12 May 2022 19:48:31 +0000 (15:48 -0400)] 
Fix expand/collapse all buttons (#23590)

* communicate via customevents

* Handle open group logic in wrapper

* fix tests

* Make grid action buttons sticky

* Add default toggle fn

* fix splitting task id by '.'

* fix missing dagrun ids

6 weeks agoMove around overflow, position and padding (#23044)
Brent Bovenzi [Thu, 12 May 2022 19:47:24 +0000 (15:47 -0400)] 
Move around overflow, position and padding (#23044)

6 weeks agoremove stale serialized dags (#22917)
Ping Zhang [Thu, 12 May 2022 19:01:47 +0000 (12:01 -0700)] 
remove stale serialized dags (#22917)

6 weeks agoShorten max pre-commit hook name length (#23677)
Daniel Standish [Thu, 12 May 2022 18:46:56 +0000 (11:46 -0700)] 
Shorten max pre-commit hook name length (#23677)

When names are too long, pre-commit output looks very ugly and takes up 2x lines. Here I reduce max length just a little bit further so that pre-commit output renders properly on a macbook pro 16" with terminal window splitting screen horizontally.

6 weeks agoUpgrade `pip` to latest released 22.1.0 version (#23665)
Jarek Potiuk [Thu, 12 May 2022 17:36:06 +0000 (19:36 +0200)] 
Upgrade `pip` to latest released 22.1.0 version (#23665)

We are finally able to get rid of the annoying false-positive
warnings and we have finally a chance on having warning-free
installation during docker builds.

6 weeks agoReplace "absolute()" with "resolve()" in pathlib objects (#23675)
Jarek Potiuk [Thu, 12 May 2022 17:30:39 +0000 (19:30 +0200)] 
Replace "absolute()" with "resolve()" in pathlib objects (#23675)

TIL that absolute() is an undocumented in Pathlib and that we
should use resolve() instead.

So this is it.

6 weeks agoAdd wildcard possibility to `package-filter` parametere (#23672)
Jarek Potiuk [Thu, 12 May 2022 17:23:38 +0000 (19:23 +0200)] 
Add wildcard possibility to `package-filter` parametere (#23672)

the glob parameters (for example `apache-airflow-providers-*`) did
not work because only fixed list of parameters was allowed.

This PR converts the package-filter parameter to stop verifying the
value passed - so autocomplete continues to work but you should
still be able to use glob.

It also removes few places where the parameters were used with
`--` separator.

6 weeks agoMigrate Dataproc to new system tests design (#22777)
Bartłomiej Hirsz [Thu, 12 May 2022 16:49:10 +0000 (18:49 +0200)] 
Migrate Dataproc to new system tests design (#22777)

6 weeks agoSynchronize support for Postgres and K8S in docs (#23673)
Jarek Potiuk [Thu, 12 May 2022 13:26:04 +0000 (15:26 +0200)] 
Synchronize support for Postgres and K8S in docs (#23673)

We just added support for Postgres 14 and K8S 1.24 and since we
did not have any changes to support either in main we are bringing
the support to 2.3 line as well.

This documentation syncs all remaining places where it should be
updated.

6 weeks agoremove `--` in `./breeze build-docs` command (#23671)
ishiis [Thu, 12 May 2022 12:33:53 +0000 (21:33 +0900)] 
remove `--` in `./breeze build-docs` command (#23671)

6 weeks agoAIP45 Remove dag parsing in airflow run local (#21877)
Ping Zhang [Thu, 12 May 2022 10:09:48 +0000 (03:09 -0700)] 
AIP45 Remove dag parsing in airflow run local (#21877)

6 weeks agoPrepare provider documentation 2022.05.11 (#23631) providers-amazon/3.4.0 providers-amazon/3.4.0rc1 providers-apache-beam/3.4.0 providers-apache-beam/3.4.0rc1 providers-apache-hive/2.3.3 providers-apache-hive/2.3.3rc1 providers-cncf-kubernetes/4.0.2 providers-cncf-kubernetes/4.0.2rc1 providers-databricks/2.7.0 providers-databricks/2.7.0rc1 providers-docker/2.7.0 providers-docker/2.7.0rc1 providers-google/7.0.0 providers-google/7.0.0rc1 providers-jira/2.0.5 providers-jira/2.0.5rc1 providers-microsoft-azure/3.9.0 providers-microsoft-azure/3.9.0rc1 providers-opsgenie/3.1.0 providers-opsgenie/3.1.0rc1 providers-presto/2.2.1 providers-presto/2.2.1rc1 providers-salesforce/3.4.4 providers-salesforce/3.4.4rc1 providers-snowflake/2.7.0 providers-snowflake/2.7.0rc1 providers-ssh/2.4.4 providers-ssh/2.4.4rc1 providers-tableau/2.1.8 providers-tableau/2.1.8rc1 providers-trino/2.3.0 providers-trino/2.3.0rc1
Jarek Potiuk [Wed, 11 May 2022 23:01:16 +0000 (01:01 +0200)] 
Prepare provider documentation 2022.05.11 (#23631)

Co-authored-by: eladkal <45845474+eladkal@users.noreply.github.com>
Co-authored-by: eladkal <45845474+eladkal@users.noreply.github.com>
6 weeks agoRevert "Fix k8s pod.execute randomly stuck indefinitely by logs consumption (#23497...
Jarek Potiuk [Wed, 11 May 2022 22:20:02 +0000 (00:20 +0200)] 
Revert "Fix k8s pod.execute randomly stuck indefinitely by logs consumption (#23497) (#23618)" (#23656)

This reverts commit ee342b85b97649e2e29fcf83f439279b68f1b4d4.

6 weeks agoRename cluster_policy to task_policy (#23468)
humit [Wed, 11 May 2022 19:40:10 +0000 (04:40 +0900)] 
Rename cluster_policy to task_policy (#23468)

* Rename cluster_policy to task_policy

* rename task_policy as example_task_policy.

6 weeks ago[FEATURE] google provider - BigQueryInsertJobOperator log query (#23648)
raphaelauv [Wed, 11 May 2022 19:28:19 +0000 (21:28 +0200)] 
[FEATURE] google provider - BigQueryInsertJobOperator log query (#23648)

6 weeks agoFix k8s pod.execute randomly stuck indefinitely by logs consumption (#23497) (#23618)
Sebastian Chamena [Wed, 11 May 2022 19:20:49 +0000 (12:20 -0700)] 
Fix k8s pod.execute randomly stuck indefinitely by logs consumption (#23497) (#23618)

6 weeks agoFixed test and remove pytest.mark.xfail for test_exc_tb (#23650)
Kanthi [Wed, 11 May 2022 19:16:49 +0000 (15:16 -0400)] 
Fixed test and remove pytest.mark.xfail for test_exc_tb (#23650)

6 weeks agoAdded kubernetes version (1.24) in README.md(for Main version(dev)), … (#23649)
Kanthi [Wed, 11 May 2022 17:13:01 +0000 (13:13 -0400)] 
Added kubernetes version (1.24) in README.md(for Main version(dev)), … (#23649)

* Added kubernetes version (1.24) in README.md(for Main version(dev)), accidentally removed in merge cnflict.

* Update README.md

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
6 weeks agoAdd `RedshiftDeleteClusterOperator` support (#23563)
pankajastro [Wed, 11 May 2022 17:07:01 +0000 (22:37 +0530)] 
Add `RedshiftDeleteClusterOperator` support (#23563)

Add support for `RedshiftDeleteClusterOperator`. This will help to clean resources using airflow operators when needed. In the current implementation, By default, I'm waiting until the cluster is completely removed to return immediately without waiting set `wait_for_completion` param to False

- Add operator class
- Add basic unit test
- Add an example task
- Add relevant documentation

6 weeks agoAdded postgres 14 to support versions(including breeze) (#23506)
Kanthi [Wed, 11 May 2022 16:26:19 +0000 (12:26 -0400)] 
Added postgres 14 to support versions(including breeze) (#23506)

* Added postgres 14 to support versions(including breeze)

6 weeks agoDon't run pre-migration checks for downgrade (#23634)
Daniel Standish [Wed, 11 May 2022 16:08:06 +0000 (09:08 -0700)] 
Don't run pre-migration checks for downgrade (#23634)

These checks are only make sense for upgrades.  Generally they exist to resolve referential integrity issues etc before adding constraints.  In the downgrade context, we generally only remove constraints, so it's a non-issue.

6 weeks agoAdd index for event column in log table (#23625)
Gabriel Machado [Wed, 11 May 2022 14:45:33 +0000 (16:45 +0200)] 
Add index for event column in log table (#23625)

6 weeks agoSimplify flash message for _airflow_moved tables (#23635)
Daniel Standish [Wed, 11 May 2022 14:13:57 +0000 (07:13 -0700)] 
Simplify flash message for _airflow_moved tables (#23635)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
6 weeks agoFix assuming "Feature" answer on CI when generating docs (#23640)
Jarek Potiuk [Wed, 11 May 2022 11:15:22 +0000 (13:15 +0200)] 
Fix assuming "Feature" answer on CI when generating docs (#23640)

We have now different answers posisble when generating docs, and
for testing we assume we answered randomly during the generation
of documentation.

6 weeks agoFix typo issue (#23633)
humit [Wed, 11 May 2022 10:58:26 +0000 (19:58 +0900)] 
Fix typo issue (#23633)

6 weeks ago[FEATURE] add K8S 1.24 support (#23637)
raphaelauv [Wed, 11 May 2022 10:52:24 +0000 (12:52 +0200)] 
[FEATURE] add K8S 1.24 support (#23637)

6 weeks ago[FEATURE] update K8S-KIND to 0.13.0 (#23636)
raphaelauv [Wed, 11 May 2022 08:26:14 +0000 (10:26 +0200)] 
[FEATURE] update K8S-KIND to 0.13.0 (#23636)

6 weeks agoPrevent KubernetesJobWatcher getting stuck on resource too old (#23521)
Ruben Laguna [Wed, 11 May 2022 06:25:49 +0000 (08:25 +0200)] 
Prevent KubernetesJobWatcher getting stuck on resource too old (#23521)

* Prevent KubernetesJobWatcher getting stuck on resource too old

If the watch fails because "resource too old" the
KubernetesJobWatcher should not retry with the same resource version
as that will end up in loop where there is no progress.

* Reset ResourceVersion().resource_version to 0

6 weeks agoMake provider doc preparation a bit more fun :) (#23629)
Jarek Potiuk [Tue, 10 May 2022 22:19:54 +0000 (00:19 +0200)] 
Make provider doc preparation a bit more fun :) (#23629)

Previously you had to manually add versions when changelog was
modified. But why not to get a bit more fun and get the versions
bumped automatically based on your assesment when reviewing the
provideers rather than after looking at the generated changelog.

6 weeks agoFix: Exception when parsing log #20966 (#23301)
Jakub Novák [Tue, 10 May 2022 20:43:25 +0000 (22:43 +0200)] 
Fix: Exception when parsing log #20966 (#23301)

* UnicodeDecodeError: 'utf-8' codec can't decode byte 0xXX in position X: invalid start byte

  File "/opt/work/python395/lib/python3.9/site-packages/airflow/hooks/subprocess.py", line 89, in run_command
    line = raw_line.decode(output_encoding).rstrip()            # raw_line ==  b'\x00\x00\x00\x11\xa9\x01\n'
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 4: invalid start byte

* Update subprocess.py

* Update subprocess.py

* Fix:  Exception when parsing log #20966

* Fix:  Exception when parsing log #20966

 Another alternative is: try-catch it.

e.g.

```
            line = ''
            for raw_line in iter(self.sub_process.stdout.readline, b''):
                try:
                    line = raw_line.decode(output_encoding).rstrip()
                except UnicodeDecodeError as err:
                    print(err, output_encoding, raw_line)
                self.log.info("%s", line)
```

* Create test_subprocess.sh

* Update test_subprocess.py

* Added shell directive and license to test_subprocess.sh

* Distinguish between raw and decoded lines as suggested by @uranusjr

* simplify test

Co-authored-by: muhua <microhuang@live.com>
6 weeks agoImplement send_callback method for CeleryKubernetesExecutor and LocalKubernetesExecut...
mhenc [Tue, 10 May 2022 17:13:00 +0000 (19:13 +0200)] 
Implement send_callback method for CeleryKubernetesExecutor and LocalKubernetesExecutor (#23617)

6 weeks ago[FEATURE] google provider - split GkeStartPodOperator execute (#23518)
raphaelauv [Tue, 10 May 2022 15:51:37 +0000 (17:51 +0200)] 
[FEATURE] google provider - split GkeStartPodOperator execute (#23518)

6 weeks agoFixed Kubernetes Operator large xcom content Defect (#23490)
rahulgoyal2987 [Tue, 10 May 2022 15:46:55 +0000 (21:16 +0530)] 
Fixed Kubernetes Operator large xcom content Defect  (#23490)

6 weeks agoAdd slim images to docker-stack docs index (#23601)
Jarek Potiuk [Tue, 10 May 2022 15:24:26 +0000 (17:24 +0200)] 
Add slim images to docker-stack docs index (#23601)

6 weeks agoAdd Quicksight create ingestion Hook and Operator (#21863)
Harpreet Singh [Tue, 10 May 2022 14:54:13 +0000 (20:24 +0530)] 
Add Quicksight create ingestion Hook and Operator (#21863)

* Add Quicksight create ingestion Hook and Operator

Co-authored-by: eladkal <45845474+eladkal@users.noreply.github.com>
6 weeks agoMake Breeze help generation indepdent from having breeze installed (#23612)
Jarek Potiuk [Tue, 10 May 2022 09:49:39 +0000 (11:49 +0200)] 
Make Breeze help generation indepdent from having breeze installed (#23612)

Generation of Breeze help requires breeze to be installed. However
if you have locally installed breeze with different dependencies
and did not run self-upgrade, the results of generation of the
images might be different (for example when different rich
version is used). This change works in the way that:
* you do not have to have breeze installed at all to make it work
* it always upgrades to latest breeze when it is not installed
* but this only happens when you actually modified some breeze code

6 weeks agoAdd exportContext.offload flag to CLOUD_SQL_EXPORT_VALIDATION. (#23614)
ishiis [Tue, 10 May 2022 09:49:18 +0000 (18:49 +0900)] 
Add exportContext.offload flag to CLOUD_SQL_EXPORT_VALIDATION. (#23614)

6 weeks agoUpdate min requirements for rich to 12.4.1 (#23604)
Jarek Potiuk [Tue, 10 May 2022 06:36:28 +0000 (08:36 +0200)] 
Update min requirements for rich to 12.4.1 (#23604)

7 weeks agoAdd sample dag and doc for S3ListPrefixesOperator (#23448)
Vincent [Mon, 9 May 2022 22:54:59 +0000 (16:54 -0600)] 
Add sample dag and doc for S3ListPrefixesOperator (#23448)

* Add sample dag and doc for S3ListPrefixesOperator

* Fix static checks

7 weeks agoAdd exception to catch single line private keys (#23043)
nsAstro [Mon, 9 May 2022 22:49:22 +0000 (18:49 -0400)] 
Add exception to catch single line private keys (#23043)

7 weeks agoUse inclusive words in apache airflow project (#23090)
Edith Puclla [Mon, 9 May 2022 21:52:29 +0000 (16:52 -0500)] 
Use inclusive words in apache airflow project (#23090)

7 weeks agoImprove caching for multi-platform images. (#23562)
Jarek Potiuk [Mon, 9 May 2022 21:02:25 +0000 (23:02 +0200)] 
Improve caching for multi-platform images. (#23562)

This is another attempt to improve caching performance for
multi-platform images as the previous ones were undermined by a
bug in buildx multiplatform cache-to implementattion that caused
the image cache to be overwritten between platforms,
when multiple images were build.

The bug is created for the buildx behaviour at
https://github.com/docker/buildx/issues/1044 and until it is fixed
we have to prpare separate caches for each platform and push them
to separate tags.

That adds a bit overhead on the building step, but for now it is
the simplest way we can workaround the bug if we do not want to
manually manipulate manifests and images.

7 weeks ago19943 Grid view status filters (#23392)
pierrejeambrun [Mon, 9 May 2022 20:32:02 +0000 (22:32 +0200)] 
19943 Grid view status filters (#23392)

* Move tree filtering inside react and add some filters

* Move filters from context to utils

* Fix tests for useTreeData

* Fix last tests.

* Add tests for useFilters

* Refact to use existing SimpleStatus component

* Additional fix after rebase.

* Update following bbovenzi code review

* Update following code review

* Fix tests.

* Fix page flickering issues from react-query

* Fix side panel and small changes.

* Use default_dag_run_display_number in the filter options

* Handle timezone

* Fix flaky test

Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>
7 weeks agoAdd sample dag and doc for S3ListOperator (#23449)
Vincent [Mon, 9 May 2022 18:21:51 +0000 (12:21 -0600)] 
Add sample dag and doc for S3ListOperator (#23449)

* Add sample dag and doc for S3ListOperator

* Fix doc

7 weeks agoHelm chart 1.6.0rc1 (#23548)
Jed Cunningham [Mon, 9 May 2022 18:14:44 +0000 (12:14 -0600)] 
Helm chart 1.6.0rc1 (#23548)

7 weeks agoAdd doc and sample dag for EC2 (#23547)
Vincent [Mon, 9 May 2022 17:56:50 +0000 (11:56 -0600)] 
Add doc and sample dag for EC2 (#23547)

7 weeks agoApply specific ID collation to root_dag_id too (#23536)
Michael Peteuil [Mon, 9 May 2022 17:48:11 +0000 (13:48 -0400)] 
Apply specific ID collation to root_dag_id too (#23536)

In certain databases there is a need to set the collation for ID fields
like dag_id or task_id to something different than the database default.
This is because in MySQL with utf8mb4 the index size becomes too big for
the MySQL limits. In past pull requests this was handled
[#7570](https://github.com/apache/airflow/pull/7570),
[#17729](https://github.com/apache/airflow/pull/17729), but the
root_dag_id field on the dag model was missed. Since this field is used
to join with the dag_id in various other models ([and
self-referentially](https://github.com/apache/airflow/blob/451c7cbc42a83a180c4362693508ed33dd1d1dab/airflow/models/dag.py#L2766)),
it also needs to have the same collation as other ID fields.

This can be seen by running `airflow db reset` before and after applying
this change while also specifying `sql_engine_collation_for_ids` in the
configuration.

Other related PRs
[#19408](https://github.com/apache/airflow/pull/19408)

7 weeks agoClean up in-line f-string concatenation (#23591)
Josh Fell [Mon, 9 May 2022 17:44:41 +0000 (13:44 -0400)] 
Clean up in-line f-string concatenation (#23591)

7 weeks agoUpdate sample dag and doc for Datasync (#23511)
Vincent [Mon, 9 May 2022 17:40:27 +0000 (11:40 -0600)] 
Update sample dag and doc for Datasync (#23511)

7 weeks agoAdd default 'aws_conn_id' to SageMaker Operators #21808 (#23515)
Harpreet Singh [Mon, 9 May 2022 17:36:35 +0000 (23:06 +0530)] 
Add default 'aws_conn_id' to SageMaker Operators #21808 (#23515)

7 weeks agoFix broken dagrun links when many runs start at the same time (#23462)
Chris Redekop [Mon, 9 May 2022 15:49:53 +0000 (09:49 -0600)] 
Fix broken dagrun links when many runs start at the same time (#23462)

* Load requested dagrun even when there are many dagruns at (almost) the same time

* Fix code formatting issues

7 weeks agoFix `PythonVirtualenvOperator` templated_fields (#23559)
eladkal [Mon, 9 May 2022 15:17:34 +0000 (18:17 +0300)] 
Fix `PythonVirtualenvOperator` templated_fields (#23559)

* Fix `PythonVirtualenvOperator` templated_fields
The `PythonVirtualenvOperator` templated_fields override `PythonOperator` templated_fields which caused functionality not to work as expected.
fixes: https://github.com/apache/airflow/issues/23557

7 weeks agoPools with negative open slots should not block other pools (#23143)
Tanel Kiis [Mon, 9 May 2022 15:12:40 +0000 (18:12 +0300)] 
Pools with negative open slots should not block other pools (#23143)

7 weeks agoAdd `device_requests` parameter to `DockerOperator` (#23554)
eladkal [Mon, 9 May 2022 15:08:15 +0000 (18:08 +0300)] 
Add `device_requests` parameter to `DockerOperator` (#23554)

* Expose device_requests to DockerOperator

Co-authored-by: Tedi Papajorgji <tedi.papajorgji@hotmail.com>
7 weeks agoFix scheduler crash when expanding with mapped task that returned none (#23486)
Ephraim Anierobi [Mon, 9 May 2022 12:44:35 +0000 (13:44 +0100)] 
Fix scheduler crash when expanding with mapped task that returned none (#23486)

When task is expanded from a mapped task that returned no value, it
crashes the scheduler. This PR fixes it by first checking if there's
a return value from the mapped task, if no returned value, then error
in the task itself instead of crashing the scheduler

7 weeks agoAdd support for queued state in DagRun update endpoint. (#23481)
Karthikeyan Singaravelan [Mon, 9 May 2022 12:25:48 +0000 (17:55 +0530)] 
Add support for queued state in DagRun update endpoint. (#23481)

7 weeks agoFixed option name in Breeze description (#23582)
Jarek Potiuk [Mon, 9 May 2022 10:15:43 +0000 (12:15 +0200)] 
Fixed option name in Breeze description (#23582)

7 weeks agotHe output of commands of Breeze are only generated when they change (#23570)
Jarek Potiuk [Mon, 9 May 2022 09:59:11 +0000 (11:59 +0200)] 
tHe output of commands of Breeze are only generated when they change (#23570)

Previously we generated output of all the commands from Breeze always,
hoping that they will be the same, but rich already had two changes
in the format of the SVG files which made the output different and
breaking our PRs.

Temporarily we pinned rich to fix the output, but better solution is
to get the hash of all the configuration options and see if it changed,
and only run generation when it did. This way we keep automated
generation on pre-commit but we are protected from accidental change
of the output.

We also remove the rich limits and regenerated all svg files to ones
generated by 12.4.0. Also found a way to run the check if we should
run generation at all in pre-commit without prior installing breeze.

Fixes: #22908

7 weeks agoFix dag-processor fetch metabase config (#23575)
Andrey Anshin [Mon, 9 May 2022 08:50:33 +0000 (11:50 +0300)] 
Fix dag-processor fetch metabase config (#23575)

7 weeks agoUpdate dags.rst (#23579)
mthakare-onshape [Mon, 9 May 2022 08:17:12 +0000 (13:47 +0530)] 
Update dags.rst (#23579)

Update missing bracket

7 weeks agoTemporarily pin xmltodict to 0.12.0 to fix main failure (#23577)
Jarek Potiuk [Mon, 9 May 2022 05:41:06 +0000 (07:41 +0200)] 
Temporarily pin xmltodict to 0.12.0 to fix main failure (#23577)

The xmltodict 0,13.0 breaks some tests and likely 0.13.0 is buggy
as the error is ValueError: Malformatted input.

We pin it to 0.12.0 to fix the main failing.

Related: #23576

7 weeks agoFix conn close error on retrieving log events (#23470)
thinhnd2104 [Sun, 8 May 2022 22:32:09 +0000 (05:32 +0700)] 
Fix conn close error on retrieving log events (#23470)

related: [#23469] (https://github.com/apache/airflow/issues/23469).

7 weeks agoFix `PostgresToGCSOperator` does not allow nested JSON (#23063)
pierrejeambrun [Sun, 8 May 2022 22:06:23 +0000 (00:06 +0200)] 
Fix `PostgresToGCSOperator` does not allow nested JSON (#23063)

* Avoid double json.dumps for json data export in PostgresToGCSOperator.

* Fix CI

7 weeks agoOpsgenie: Fix `close_alert` to properly send `kwargs` (#23442)
Benoit Person [Sun, 8 May 2022 21:38:50 +0000 (23:38 +0200)] 
Opsgenie: Fix `close_alert` to properly send `kwargs` (#23442)

7 weeks agoAmazon Sagemaker Sample DAG and docs update (#23256)
D. Ferruzzi [Sun, 8 May 2022 21:37:51 +0000 (14:37 -0700)] 
Amazon Sagemaker Sample DAG and docs update (#23256)

7 weeks agowasb hook: user defaultAzureCredentials instead of managedIdentity (#23394)
sanjayp [Sun, 8 May 2022 21:12:26 +0000 (02:42 +0530)] 
wasb hook: user defaultAzureCredentials instead of managedIdentity (#23394)

Co-authored-by: Sanjay Pillai <sanjaypillai11 [at] gmail.com>
7 weeks agoMove dag_processing.processor_timeouts to counters section (#23393)
Yeachan Park [Sun, 8 May 2022 21:11:51 +0000 (23:11 +0200)] 
Move dag_processing.processor_timeouts to counters section (#23393)

7 weeks agoFix GCSToGCSOperator ignores replace parameter when there is no wildcard (#23340)
GitStart-AirFlow [Sun, 8 May 2022 19:46:55 +0000 (20:46 +0100)] 
Fix GCSToGCSOperator ignores replace parameter when there is no wildcard (#23340)

7 weeks agoTests for provider code structure (#23351)
Bartłomiej Hirsz [Sun, 8 May 2022 19:32:26 +0000 (21:32 +0200)] 
Tests for provider code structure (#23351)

Improved test for code structure that can be re-used among various providders.

7 weeks agoAdd slim images to release process (#23391)
Jarek Potiuk [Sat, 7 May 2022 21:53:11 +0000 (23:53 +0200)] 
Add slim images to release process (#23391)

This PR adds slim images to release process of Airflow.

Those images are small as they do not contain any extras.

Fixes: #20849

7 weeks agoFix _PIP_ADDITIONAL_REQUIREMENTS case for docker-compose (#23517)
Jarek Potiuk [Sat, 7 May 2022 14:17:48 +0000 (16:17 +0200)] 
Fix _PIP_ADDITIONAL_REQUIREMENTS case for docker-compose (#23517)

Recent versions of Airflow do not allow to run `pip install` as
root but the `init` job runs as root so when the variable
_PIP_ADDITIONAL_REQUIREMENTS is set, the init container fails.

This PR forces _PIP_ADDITIONAL_REQUIREMENTS to be empty for the init
job.