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-2787 Allow is_backfill to handle NULL DagRun.run_id #3629

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

gwax
Copy link
Contributor

@gwax gwax commented Jul 23, 2018

Make sure you have checked all steps below.

JIRA

Description

  • Here are some details about my PR, including screenshots of any UI changes:
    • is_backfill will fail with a AttributeError: 'NoneType' object has no attribute 'startswith' error when called on a DagRun with NULL run_id (allowed by model definition). This PR introduces a None check to prevent the crash.

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:
    • extension to test_is_backfill to check the NULL run_id case

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
    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.
    • When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

  • Passes git diff upstream/master -u -- "*.py" | flake8 --diff

@gwax
Copy link
Contributor Author

gwax commented Jul 23, 2018

Test failure is unrelated.

@feng-tao
Copy link
Member

feng-tao commented Aug 5, 2018

LGTM

@feng-tao
Copy link
Member

feng-tao commented Aug 5, 2018

Do you have a pass travis CI link for your pr in your local repo?

@gwax
Copy link
Contributor Author

gwax commented Aug 6, 2018

I have not seen a full set of passing tests yet but it is different CI targets that fail each time. The tests seem to be failing due to some sort of problem with after kerberos setup before anything even runs.

@feng-tao
Copy link
Member

feng-tao commented Aug 6, 2018

thanks @gwax . Could you rebase the pr with master? There was an issue with the master which fails the CI. It just get reverted.

@feng-tao
Copy link
Member

feng-tao commented Aug 6, 2018

feel free to ping me once you rebase with master and we are good to go.

@gwax
Copy link
Contributor Author

gwax commented Aug 6, 2018

@feng-tao rebased

@feng-tao
Copy link
Member

feng-tao commented Aug 6, 2018

thanks @gwax . LGTM.

@feng-tao feng-tao merged commit 27b436e into apache:master Aug 6, 2018
@gwax gwax deleted the is_backfill_no_run_id branch August 7, 2018 22:13
lxneng pushed a commit to lxneng/incubator-airflow that referenced this pull request Aug 10, 2018
aliceabe pushed a commit to aliceabe/incubator-airflow that referenced this pull request Jan 3, 2019
Sign up for free to 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.

None yet

2 participants