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

Fix a bug preventing cylc vip --workflow-name=foo from working. #5349

Merged
merged 4 commits into from
Feb 17, 2023

Conversation

wxtim
Copy link
Member

@wxtim wxtim commented Feb 7, 2023

--workflow-name foo was fine.
Caused by removal of unwanted sys.argv for Cylc VIP not removing items not exactly matching items in the Command line options arguments.

This is a small fix for a bug without an issue.

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.
  • 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 not req'd
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@wxtim wxtim self-assigned this Feb 7, 2023
@wxtim wxtim added the bug Something is wrong :( label Feb 7, 2023
@wxtim wxtim added this to the cylc-8.1.2 milestone Feb 7, 2023
@wxtim wxtim changed the base branch from master to 8.1.x February 7, 2023 11:02
Copy link
Contributor

@datamel datamel left a comment

Choose a reason for hiding this comment

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

I can't reproduce this bug, --worfklow-name is working fine for me (with = and without) with cylc vip. Can you give me steps to follow?

@wxtim
Copy link
Member Author

wxtim commented Feb 8, 2023

I can't reproduce this bug, --worfklow-name is working fine for me (with = and without) with cylc vip. Can you give me steps to follow?

  1. Ensure that you are using a Cylc remote host (i.e. Cylc server) - this bug is not visible if you use --host=localhost or if you don't have run hosts setup in your global config
cylc vip ~/metomi/workflows/simplest --workflow-name=dfgaiufhn

Copy link
Contributor

@datamel datamel left a comment

Choose a reason for hiding this comment

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

Thanks @wxtim. Bug now reproduced and various manual testing completed. I think a rebase should pickup the mypy fix to let the CI run.

`--workflow-name foo` was fine.
Caused by removal of unwanted sys.argv for Cylc VIP not removing
items not exactly matching items in the Command line options arguments.
Copy link
Contributor

@datamel datamel left a comment

Choose a reason for hiding this comment

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

Thanks Tim, this is working well for me.

Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

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

LGTM

cylc/flow/option_parsers.py Outdated Show resolved Hide resolved
@oliver-sanders oliver-sanders removed the request for review from hjoliver February 16, 2023 11:55
@oliver-sanders
Copy link
Member

Reproduced the bug and confirmed that this fixes it.

@wxtim wxtim merged commit c8696bb into cylc:8.1.x Feb 17, 2023
@wxtim wxtim deleted the fix_--workflow-name=bug branch February 17, 2023 08:06
wxtim added a commit to wxtim/cylc that referenced this pull request Feb 17, 2023
…lc into fix_localhost_platform_matching

* 'fix_localhost_platform_matching' of github.com:wxtim/cylc:
  Fix a bug preventing `cylc vip --workflow-name=foo` from working. (cylc#5349)
  fix no rose vars in cylc view (cylc#5367)
  Cylc lint fixes (cylc#5363)
  data store: support unsatisfied ext_trigger
  fix mypy fail caused by python/mypy#13969
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.

3 participants