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 xtrigger sequential arg validation & improve docs #6138

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

MetRonnie
Copy link
Member

@MetRonnie MetRonnie commented Jun 13, 2024

Built on/needs:

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).
  • No dependency changes
  • Tests are included
  • No changelog needed
  • Works with Some doc updates for 8.3.0.dev changes. cylc-doc#727
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@MetRonnie MetRonnie added bug Something is wrong :( small doc Documentation labels Jun 13, 2024
@MetRonnie MetRonnie added this to the 8.3.0 milestone Jun 13, 2024
@MetRonnie MetRonnie self-assigned this Jun 13, 2024
@oliver-sanders
Copy link
Member

(LGTM)

@MetRonnie MetRonnie requested a review from wxtim June 17, 2024 13:57
@MetRonnie MetRonnie marked this pull request as ready for review June 17, 2024 13:59
@@ -84,8 +84,16 @@ def __init__(self, rund, workflow, db_path=None):
self.db_point_fmt = self._get_db_point_format_compat()
self.c7_back_compat_mode = True
except sqlite3.OperationalError:
self.conn.close()
Copy link
Member

@oliver-sanders oliver-sanders Jun 17, 2024

Choose a reason for hiding this comment

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

Consider using with suppress(Exception) on this close if raising the original source of the OperationalError is likely to make more sense as an error.

Copy link
Member

Choose a reason for hiding this comment

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

(merge if you don't think this is relevant)

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.

Looking good.

If you don't close DB connections when you're done with them, I will scream
@MetRonnie
Copy link
Member Author

MetRonnie commented Jun 17, 2024

(MacOS test cancellations are macos-11 runner brownouts)

@MetRonnie
Copy link
Member Author

Merging with Oliver's review suggestion force-pushed

@MetRonnie MetRonnie merged commit 978d0f6 into cylc:master Jun 17, 2024
22 of 25 checks passed
@MetRonnie MetRonnie deleted the xtrig-sequential branch June 17, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( doc Documentation small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants