Skip to content

Remove asserts - #237

Merged
tomli380576 merged 7 commits into
mainfrom
remove-asserts
Aug 17, 2026
Merged

Remove asserts#237
tomli380576 merged 7 commits into
mainfrom
remove-asserts

Conversation

@tomli380576

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Replaces runtime assertions with explicit exceptions so validation remains active under optimized Python execution.

Changes:

  • Converts assertions across UI, state, subprocess, collector, and submitter paths.
  • Enables Python optimization in the snap.
  • Adds more descriptive invariant errors.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
snap/snapcraft.yaml Enables optimized Python execution.
src/bugit_v2/apps/app.py Validates CLI command names.
src/bugit_v2/bug_report_submitters/jira_submitter.py Adds explicit Jira state checks.
src/bugit_v2/bug_report_submitters/launchpad_submitter.py Adds explicit Launchpad checks.
src/bugit_v2/bug_report_submitters/local_file_submitter.py Validates archive creation state.
src/bugit_v2/bug_report_submitters/mock_jira.py Updates mock Jira validation.
src/bugit_v2/bug_report_submitters/mock_lp.py Updates mock Launchpad validation.
src/bugit_v2/checkbox_utils/checkbox_exec.py Validates Checkbox availability.
src/bugit_v2/checkbox_utils/submission_extractor.py Validates submission archive contents.
src/bugit_v2/components/confirm_dialog.py Validates dialog button IDs.
src/bugit_v2/components/file_picker.py Validates delete-button filenames.
src/bugit_v2/dut_utils/log_collectors.py Adds explicit collector preconditions.
src/bugit_v2/models/app_state.py Converts state-machine assertions.
src/bugit_v2/screens/bug_report_screen.py Adds worker and report-data checks.
src/bugit_v2/screens/job_selection_screen.py Validates job selection.
src/bugit_v2/screens/recover_from_autosave_screen.py Validates autosave actions.
src/bugit_v2/screens/session_selection_screen.py Validates selected session paths.
src/bugit_v2/screens/submission_progress_screen.py Adds submission-state checks.
src/bugit_v2/utils/async_subprocess.py Validates subprocess pipes and return codes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread snap/snapcraft.yaml
Comment thread src/bugit_v2/models/app_state.py Outdated
Comment thread src/bugit_v2/screens/submission_progress_screen.py Outdated
Comment thread src/bugit_v2/checkbox_utils/submission_extractor.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated no new comments.

@tomli380576
tomli380576 merged commit a9b760d into main Aug 17, 2026
2 checks passed
@tomli380576
tomli380576 deleted the remove-asserts branch August 17, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants