Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Feb 4, 2020

This PR adds a new time formatting directive for log record timestamps, namely the GNU date extension %:z. This directive will print the time zone difference in fully RFC3339 compliant way, i.e., +/-HH:MM instead or +/-HHMM, which %z prints.

This PR also replaces how Job's completion time is stored and retrieved, also inside the Slurm backend. We use time.time() to retrieve the time in seconds from the Epoch instead of datetime.now(), because datetime does not store time zone information. Also all backends are now required to provide the completion time in seconds from the Epoch, so Slurm backend was modified accordingly.

Fixes #1061.

@brandongc FYI

Vasileios Karakasis added 4 commits February 3, 2020 17:37
@vkarak vkarak added this to the ReFrame sprint 20.01 milestone Feb 4, 2020
@vkarak vkarak requested review from ekouts, teojgo and victorusu February 4, 2020 12:45
@vkarak vkarak self-assigned this Feb 4, 2020
@codecov-io
Copy link

codecov-io commented Feb 4, 2020

Codecov Report

Merging #1150 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1150   +/-   ##
=======================================
  Coverage   91.99%   91.99%           
=======================================
  Files          81       81           
  Lines       11693    11693           
=======================================
  Hits        10757    10757           
  Misses        936      936

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 cdf381c...a99bd86. Read the comment docs.

Copy link
Contributor

@victorusu victorusu left a comment

Choose a reason for hiding this comment

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

lgtm

@vkarak vkarak merged commit 4fac6b0 into reframe-hpc:master Feb 5, 2020
@vkarak vkarak deleted the feat/log-format-rfc3339 branch February 5, 2020 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a fully RFC3339 conformant date/time logging formatter

3 participants