Skip to content

[AIRFLOW-5688] Merge alembic migrations - #6362

Merged
kaxil merged 2 commits into
apache:masterfrom
Fokko:fd-merge-migrations
Oct 18, 2019
Merged

[AIRFLOW-5688] Merge alembic migrations#6362
kaxil merged 2 commits into
apache:masterfrom
Fokko:fd-merge-migrations

Conversation

@Fokko

Copy link
Copy Markdown
Contributor

We have two heads in the migrations:

$ alembic branches
939bb1e647c8 (branchpoint)
-> 6e96a59344a4
-> 004c1210f153 (head)
c8ffec048a3b (branchpoint)
-> dd4ecb8fbee3
-> a56c9515abdc
41f5f12752f8 (branchpoint)
-> c8ffec048a3b (branchpoint)
-> cf5dc11e79ad
9635ae0956e7 (branchpoint)
-> dd25f486b8ea
-> 0a2a5b66e19d
d2ae31099d61 (branchpoint)
-> 33ae817a1ff4
-> 0e2a74e0fc9f
$ alembic heads
004c1210f153 (head)
74effc47d867 (head)

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"
    • https://issues.apache.org/jira/browse/AIRFLOW-XXX
    • In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.
    • In case you are proposing a fundamental code change, you need to create an Airflow Improvement Proposal (AIP).
    • In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

Description

  • Here are some details about my PR, including screenshots of any UI changes:

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

  • My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does
    • If you implement backwards incompatible changes, please leave a note in the Updating.md so we can assign it to a appropriate release

$ alembic branches
939bb1e647c8 (branchpoint)
-> 6e96a59344a4
-> 004c1210f153 (head)
c8ffec048a3b (branchpoint)
-> dd4ecb8fbee3
-> a56c9515abdc
41f5f12752f8 (branchpoint)
-> c8ffec048a3b (branchpoint)
-> cf5dc11e79ad
9635ae0956e7 (branchpoint)
-> dd25f486b8ea
-> 0a2a5b66e19d
d2ae31099d61 (branchpoint)
-> 33ae817a1ff4
-> 0e2a74e0fc9f
$ alembic heads
004c1210f153 (head)
74effc47d867 (head)
@Fokko
Fokko requested a review from BasPHOctober 18, 2019 06:48

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I thought I updated the template used to generate the migrations in #6216 but I obviously missed this case :(

Fancy updating the config like https://alembic.sqlalchemy.org/en/latest/autogenerate.html#basic-formatter-configuration using black or zimports in another PR?

@Fokko
Fokkoforce-pushed the fd-merge-migrations branch from 8d9a85a to cd3a287CompareOctober 18, 2019 08:58
@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #6362 into master will increase coverage by 0.27%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@## master #6362 +/- ##
==========================================
+ Coverage 79.82% 80.09% +0.27% 
==========================================
Files 616 616 Lines 35794 35795 +1 ==========================================
+ Hits 28572 28670 +98 + Misses 7222 7125 -97
Impacted FilesCoverage Δ
airflow/contrib/hooks/ssh_hook.py88.49% <0%> (+0.1%)⬆️
airflow/models/taskinstance.py93.79% <0%> (+0.5%)⬆️
airflow/hooks/dbapi_hook.py88.13% <0%> (+0.84%)⬆️
airflow/models/connection.py65% <0%> (+1.11%)⬆️
airflow/jobs/backfill_job.py91.43% <0%> (+1.52%)⬆️
airflow/hooks/hive_hooks.py77.6% <0%> (+1.78%)⬆️
airflow/jobs/local_task_job.py90% <0%> (+5%)⬆️
airflow/utils/sqlalchemy.py93.22% <0%> (+6.77%)⬆️
airflow/operators/mysql_operator.py100% <0%> (+100%)⬆️
airflow/operators/mysql_to_hive.py100% <0%> (+100%)⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10c3f7f...cd3a287. Read the comment docs.

@kaxil
kaxil merged commit 9c57dd8 into apache:masterOct 18, 2019
@Fokko
Fokko deleted the fd-merge-migrations branch January 5, 2020 17:58
Sign up for freeto 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.

5 participants

@Fokko@codecov-io@ashb@BasPH@kaxil