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

set CYLC_DEBUG env var when set-verbosity DEBUG #5854

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

markgrahamdawson
Copy link
Contributor

@markgrahamdawson markgrahamdawson commented Nov 30, 2023

Closes #5829

The CYLC_DEBUG environment variable was not being set when using cylc set-verbosity DEBUG
This pr fixes this by correcting a conditional in the log_level_to_verbosity utility function

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • CHANGES.md entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@markgrahamdawson markgrahamdawson self-assigned this Nov 30, 2023
@markgrahamdawson markgrahamdawson requested review from oliver-sanders, wxtim and MetRonnie and removed request for oliver-sanders December 8, 2023 11:49
@markgrahamdawson markgrahamdawson marked this pull request as ready for review December 8, 2023 11:50
@wxtim wxtim changed the base branch from master to 8.2.x December 8, 2023 13:46
@wxtim wxtim added this to the cylc-8.2.4 milestone Dec 8, 2023
Copy link
Member

@wxtim wxtim left a comment

Choose a reason for hiding this comment

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

Needs rebase. Otherwise good. Poke me after rebase and I'll merge - I don't think it needs 2 reviewers. :)

Copy link
Member

@MetRonnie MetRonnie left a comment

Choose a reason for hiding this comment

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

I've got a suggestion for a test at markgrahamdawson#2

Test that `cylc set-verbosity DEBUG` sets `$CYLC_DEBUG`
@oliver-sanders oliver-sanders added the bug Something is wrong :( label Jan 4, 2024
@oliver-sanders oliver-sanders merged commit dd41648 into cylc:8.2.x Jan 4, 2024
25 checks passed
wxtim added a commit to wxtim/cylc that referenced this pull request Jan 9, 2024
* upstream/master: (350 commits)
  Apply suggestions from code review [skip ci]
  Added missing union type import (cylc#5906)
  set CYLC_DEBUG env var when set-verbosity DEBUG (cylc#5854)
  coverage: exclude report-timings and set 90% as the lower limit
  lint: Warn users that `CYLC_VERSION={{CYLC_VERSION}}` is deprecated (cylc#5890)
  Add a new entry_point for xtriggers (cylc#5831)
  Update copyright year
  Tests: fix cached datetime arithmetic contamination between tests using different calendar modes
  Replace cyclers functional reftests with integration reftests
  Simplify integration reftest
  Replace pre-initial functional reftests with integration reftests
  Integration tests: add a simpler reftest fixture
  auto update syntax files
  id: catch traceback in ID parsing
  actions: downgrade macos runners to macos 11 (cylc#5892)
  Feat.lint obsolete vars (cylc#5879)
  dump: restrict window to n=0 (cylc#5600)
  Add chained offset logic for FCP (cylc#5885)
  Test.example replace a reftest (cylc#5860)
  GH Actions artifact name fixes
  ...
@hjoliver hjoliver mentioned this pull request Apr 30, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cylc set-verbosity does not set CYLC_DEBUG
4 participants