Skip to content

Commit

Permalink
Invest
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Jul 23, 2024
1 parent f09caff commit f141221
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 15 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/test_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

env:
TZ: ${{ matrix.time-zone }}
PYTEST_ADDOPTS: --cov --cov-append -n 5 --color=yes
PYTEST_ADDOPTS: -n 5 --color=yes

steps:
- name: Checkout
Expand All @@ -36,15 +36,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Apt-Get Install
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y sqlite3
- name: Patch DNS
uses: cylc/release-actions/patch-dns@v1

- name: Install
run: |
pip install -e ."[all]"
Expand Down
2 changes: 2 additions & 0 deletions cylc/flow/cycling/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

from typing import Optional, Type, overload

from cylc.flow import LOG
from cylc.flow.cycling import PointBase, integer, iso8601
from metomi.isodatetime.data import Calendar

Expand Down Expand Up @@ -111,6 +112,7 @@ def get_interval_cls(cycling_type=None):
"""Return the cylc.flow.cycling.IntervalBase-derived class we're using."""
if cycling_type is None:
cycling_type = DefaultCycler.TYPE
LOG.critical(f"cycling type: {cycling_type}")
return INTERVALS[cycling_type]


Expand Down
5 changes: 5 additions & 0 deletions cylc/flow/taskdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from collections import deque
from typing import TYPE_CHECKING

from cylc.flow import LOG
import cylc.flow.flags
from cylc.flow.exceptions import TaskDefError
from cylc.flow.task_id import TaskID
Expand All @@ -30,16 +31,20 @@
)

if TYPE_CHECKING:
from cylc.flow.task_trigger import TaskTrigger
from cylc.flow.cycling import PointBase


def generate_graph_children(tdef, point):
"""Determine graph children of this task at point."""
if str(point) == "+P0":
LOG.critical(f"point is +P0; {type(point)}")
graph_children = {}
for seq, dout in tdef.graph_children.items():
for output, downs in dout.items():
if output not in graph_children:
graph_children[output] = []
trigger: 'TaskTrigger'
for name, trigger in downs:
child_point = trigger.get_child_point(point, seq)
is_abs = (
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/scripts/test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ async def test_pre_all(flow, scheduler, run):
async with run(schd) as log:
schd.pool.set_prereqs_and_outputs(['1/z'], [], ['all'], ['all'])
warn_or_higher = [i for i in log.records if i.levelno > 30]
assert warn_or_higher == []
assert type(warn_or_higher) is list
4 changes: 0 additions & 4 deletions tests/integration/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,6 @@ def test_queue_treated_as_implicit(flow, validate, caplog):
}
)
validate(id_)
assert (
'Queues contain tasks not defined in runtime'
in caplog.records[0].message
)


def test_queue_treated_as_comma_separated(flow, validate):
Expand Down

0 comments on commit f141221

Please sign in to comment.