Skip to content

Conversation

@turbaszek
Copy link
Member

@turbaszek turbaszek commented Feb 21, 2020

This PR fixes some pylint errors and moves *_DEPS from airflow/ti_deps/dep_context.py to airflow/ti_dep/dependencies.py to avoid cyclic import.


Issue link: AIRFLOW-6863

Make sure to mark the boxes below before creating PR: [x]

  • 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.

@boring-cyborg boring-cyborg bot added area:CLI area:dev-tools area:Scheduler including HA (high availability) scheduler area:webserver Webserver related Issues labels Feb 21, 2020
Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, we had cyclic import...
Cyclic import (airflow.ti_deps.dep_context -> airflow.ti_deps.deps.dag_unpaused_dep -> airflow.ti_deps.deps.base_ti_dep) (cyclic-import)

Copy link
Member Author

Choose a reason for hiding this comment

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

I've sorted this file

@turbaszek turbaszek requested review from mik-laj and potiuk February 21, 2020 08:56
@turbaszek turbaszek force-pushed the AIRFLOW-6863-pylint-ti-deps branch from a50b7b2 to 9ea31b5 Compare February 21, 2020 10:19
@turbaszek turbaszek force-pushed the AIRFLOW-6863-pylint-ti-deps branch from 9ea31b5 to bfdf5ab Compare February 21, 2020 12:28
@turbaszek turbaszek removed area:CLI area:webserver Webserver related Issues labels Feb 21, 2020
@codecov-io
Copy link

Codecov Report

Merging #7482 into master will decrease coverage by 0.32%.
The diff coverage is 92.98%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7482      +/-   ##
==========================================
- Coverage   86.69%   86.37%   -0.33%     
==========================================
  Files         883      884       +1     
  Lines       41645    41650       +5     
==========================================
- Hits        36106    35977     -129     
- Misses       5539     5673     +134
Impacted Files Coverage Δ
airflow/ti_deps/deps/dagrun_exists_dep.py 88.88% <ø> (ø) ⬆️
airflow/ti_deps/deps/dag_unpaused_dep.py 100% <ø> (ø) ⬆️
airflow/ti_deps/dep_context.py 100% <ø> (ø) ⬆️
airflow/ti_deps/deps/ready_to_reschedule.py 100% <ø> (ø) ⬆️
airflow/ti_deps/deps/dag_ti_slots_available_dep.py 100% <ø> (ø) ⬆️
airflow/ti_deps/deps/runnable_exec_date_dep.py 100% <ø> (ø) ⬆️
...low/ti_deps/deps/exec_date_after_start_date_dep.py 80% <ø> (ø) ⬆️
airflow/ti_deps/deps/not_in_retry_period_dep.py 100% <ø> (ø) ⬆️
airflow/jobs/scheduler_job.py 89.53% <100%> (-0.14%) ⬇️
airflow/models/dagrun.py 96.56% <100%> (+0.01%) ⬆️
... and 27 more

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 1cdab56...bfdf5ab. Read the comment docs.

@turbaszek turbaszek requested review from ashb and kaxil February 21, 2020 14:22
@kaxil kaxil merged commit 6b90b11 into apache:master Feb 21, 2020
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
@turbaszek turbaszek deleted the AIRFLOW-6863-pylint-ti-deps branch March 14, 2020 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:Scheduler including HA (high availability) scheduler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants