Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIRFLOW-6489] Add BATS support for Bash unit testing #7081

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jan 6, 2020

We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).


Issue link: AIRFLOW-6489

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].


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.
Read the Pull Request Guidelines for more information.

@mik-laj
Copy link
Member

mik-laj commented Jan 6, 2020

Are you planning to write tests for some core code, or will it be only for testing the development environment - Breeze?

@potiuk
Copy link
Member Author

potiuk commented Jan 6, 2020

I am planning to first introduce it for Breeze (that's where it is needed badly) but anyone (including myself) can add tests for all the other bash scripts.

@potiuk
Copy link
Member Author

potiuk commented Jan 6, 2020

For sure I will need it for build/ci scripts simplification in order to add production image support finally. This really prerequisite as it becomes more and more complex to make change without bash unit tests.

We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).
@potiuk potiuk force-pushed the AIRFLOW-6498-bats-automated-bash-unit-testing branch from 62c4fef to 6cdcc01 Compare January 6, 2020 17:44
@potiuk
Copy link
Member Author

potiuk commented Jan 6, 2020

All green. Would love to merge that in order to continue working on prod image changes.

@potiuk potiuk merged commit 2b37472 into apache:master Jan 7, 2020
potiuk added a commit that referenced this pull request Jan 21, 2020
We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).

(cherry picked from commit 2b37472)
kaxil pushed a commit that referenced this pull request Jan 22, 2020
We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).

(cherry picked from commit 2b37472)
kaxil pushed a commit that referenced this pull request Jan 23, 2020
We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).

(cherry picked from commit 2b37472)
potiuk added a commit that referenced this pull request Jan 26, 2020
We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).

(cherry picked from commit 2b37472)
kaxil pushed a commit that referenced this pull request Jan 26, 2020
We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).

(cherry picked from commit 2b37472)
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).
kaxil pushed a commit to astronomer/airflow that referenced this pull request Mar 30, 2020
We have far too much bash code around that is not automatically tested.

This is the first step to change it (simplifications and more tests are coming
soon).

(cherry picked from commit 2b37472)
(cherry picked from commit 64f6d29)
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