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

play: print the logo to the user's terminal only #6170

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Jun 26, 2024

Fixes #6166.

We don't have reinvokation tests in CI ATM, so manual testing please. The logo should appear once and only once, in the user's terminal and no where else.

@wxtim, please review and assign (2) when happy.

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 (no automated testing for this at present).
  • 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.

@oliver-sanders oliver-sanders added this to the 8.3.1 milestone Jun 26, 2024
@oliver-sanders oliver-sanders self-assigned this Jun 26, 2024
if (
cylc.flow.flags.verbosity > -1
and (options.no_detach or options.format == 'plain')
# don't print the startup message on reinvocation (note
Copy link
Member

Choose a reason for hiding this comment

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

Are you happy to skip the Logo if I set --localhost manually? I'm fine with it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is a caveat of the hacky approach, however, it avoids the need for another CLI argument and there is very little use case for specifying localhost.

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.

It's remarkably similar to what I tried, but I didn't hit on using --host=localhost as the test for having been re-invoked.

Have tried it manually.

IMO - tick the testing box with a note explaining that you can't test this automatically. Either tick the changes log and add a change log, or tick it and explain why not.

@wxtim wxtim added the bug label Jun 26, 2024
@MetRonnie MetRonnie requested review from MetRonnie and removed request for markgrahamdawson June 27, 2024 14:32
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.

Tested and working, but should be against 8.3.x?

@oliver-sanders oliver-sanders changed the base branch from master to 8.3.x June 27, 2024 15:03
@oliver-sanders
Copy link
Member Author

(rebased)

@MetRonnie MetRonnie merged commit 747e2af into cylc:8.3.x Jun 27, 2024
27 checks passed
@oliver-sanders oliver-sanders deleted the 6166 branch June 28, 2024 08:16
@MetRonnie MetRonnie added the small label Jul 9, 2024
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.

Duplicate copies of the Copyright notice graphic on re-invocation
3 participants