Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 19, 2020

This allows for all the kinds of verbosity we want, including
writing outputs to output files, and it also works out-of-the-box
in git-commit non-interactive shell scripts. Also as a side effect
we have mocked tools in bats tests, which will allow us to write
more comprehensive unit tests for the bash scripts of ours
(this is a long overdue task).

Part of #10368


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

This allows for all the kinds of verbosity we want, including
writing outputs to output files, and it also works out-of-the-box
in git-commit non-interactive shell scripts. Also as a side effect
we have mocked tools in bats tests, which will allow us to write
more comprehensive unit tests for the bash scripts of ours
(this is a long overdue task).

Part of apache#10368
@potiuk
Copy link
Member Author

potiuk commented Aug 19, 2020

Inspired by @feluelle I found a much better way - instead of aliases I am using functions with the same name. That required extraction of command binary paths at the time of function definition, but it works much better (for example it works in non-interactive git pre-commits and also it opens up capabilities of automated testing of our bash functions (which I planned for quite some time). That will come next.

@potiuk
Copy link
Member Author

potiuk commented Aug 19, 2020

Don't expect any more failures :)

@potiuk potiuk merged commit db446f2 into apache:master Aug 19, 2020
@potiuk potiuk deleted the replace-aliases-with-functions branch August 19, 2020 13:23
potiuk added a commit to potiuk/airflow that referenced this pull request Sep 13, 2020
This allows for all the kinds of verbosity we want, including
writing outputs to output files, and it also works out-of-the-box
in git-commit non-interactive shell scripts. Also as a side effect
we have mocked tools in bats tests, which will allow us to write
more comprehensive unit tests for the bash scripts of ours
(this is a long overdue task).

Part of apache#10368

(cherry picked from commit db446f2)
RaviTezu pushed a commit to RaviTezu/airflow that referenced this pull request Oct 25, 2020
This allows for all the kinds of verbosity we want, including
writing outputs to output files, and it also works out-of-the-box
in git-commit non-interactive shell scripts. Also as a side effect
we have mocked tools in bats tests, which will allow us to write
more comprehensive unit tests for the bash scripts of ours
(this is a long overdue task).

Part of apache#10368

(cherry picked from commit db446f2)
kaxil pushed a commit that referenced this pull request Nov 12, 2020
This allows for all the kinds of verbosity we want, including
writing outputs to output files, and it also works out-of-the-box
in git-commit non-interactive shell scripts. Also as a side effect
we have mocked tools in bats tests, which will allow us to write
more comprehensive unit tests for the bash scripts of ours
(this is a long overdue task).

Part of #10368

(cherry picked from commit db446f2)
potiuk added a commit that referenced this pull request Nov 16, 2020
This allows for all the kinds of verbosity we want, including
writing outputs to output files, and it also works out-of-the-box
in git-commit non-interactive shell scripts. Also as a side effect
we have mocked tools in bats tests, which will allow us to write
more comprehensive unit tests for the bash scripts of ours
(this is a long overdue task).

Part of #10368

(cherry picked from commit db446f2)
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
This allows for all the kinds of verbosity we want, including
writing outputs to output files, and it also works out-of-the-box
in git-commit non-interactive shell scripts. Also as a side effect
we have mocked tools in bats tests, which will allow us to write
more comprehensive unit tests for the bash scripts of ours
(this is a long overdue task).

Part of apache#10368

(cherry picked from commit db446f2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants