Cylc-flow: 03-clock-triggered-non-utc-mode.t failing in NZ time

Created on 5 Apr 2019  路  4Comments  路  Source: cylc/cylc-flow

Running cylc test-battery in my computer (rarely run locally the complete battery) for #2990 , noticed one error that could be related to my NZ time zone, or to something with isodatetime. The test failing is 03-clock-triggered-non-utc-mode.t.

In one of the tests, it compares line by line a file with comm and checks that the file contains certain lines we expect to be present.

e.g.

We expect it to have o Triggers at ... 2014-08-08T09:05:00+13 in a file such as

Test File:
title: (not given)
description: (not given)
URL: (not given)

prerequisites (- => not satisfied):
  - show.20140808T0900+13 succeeded

outputs (- => not completed):
  - foo.20140808T0900+13 expired
  - foo.20140808T0900+13 submitted
  - foo.20140808T0900+13 submit-failed
  - foo.20140808T0900+13 started
  - foo.20140808T0900+13 succeeded
  - foo.20140808T0900+13 failed

other:
  o  Clock trigger time reached ... True
  o  Triggers at ... 2014-08-08T09:05:00+13:00

Notice that the line line in the file is o Triggers at ... 2014-08-08T09:05:00+13:00, not o Triggers at ... 2014-08-08T09:05:00+13.

So that line does not match the expected, and the test fails.

bug

Most helpful comment

I'll forward port this change to master (#3053 for 7.8.x) soon:
https://github.com/cylc/cylc/pull/3053/files#diff-347246bfb541d9e1b39b1a54b4773626

All 4 comments

Yup, doing export export TZ=UTC before cylc test-battery ./tests/cylc-show/03-clock-triggered-non-utc-mode.t fixed in my environment.

I am not on master, but on a new branch with setup.py, using version 2.0.0 of isodatetime. It could also be some change in my branch, but not likely I think (changes mainly around packaging, not much touched in the rest of the code I think)

The test is totally flawed. I notice that while working on my branch last night.

I'll forward port this change to master (#3053 for 7.8.x) soon:
https://github.com/cylc/cylc/pull/3053/files#diff-347246bfb541d9e1b39b1a54b4773626

Close by #3137.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kinow picture kinow  路  4Comments

kinow picture kinow  路  3Comments

hjoliver picture hjoliver  路  5Comments

oliver-sanders picture oliver-sanders  路  3Comments

sadielbartholomew picture sadielbartholomew  路  5Comments