Skip to content

Conversation

@amilcarlucas
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings January 23, 2026 14:31
@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11053 10096 91% 89% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
ardupilot_methodic_configurator/backend_filesystem.py 90% 🟢
TOTAL 90% 🟢

updated for commit: 056b8a4 by action🐍

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

Test Results

    3 files      3 suites   33m 32s ⏱️
2 915 tests 2 541 ✅   7 💤  55 ❌ 312 🔥
8 745 runs  7 870 ✅ 139 💤 112 ❌ 624 🔥

For more details on these failures and errors, see this check.

Results for commit 056b8a4.

♻️ This comment has been updated with latest results.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a diagnostic warning around parameter export to help investigate issue #1189 related to writing configuration files without explicit user confirmation.

Changes:

  • Logs a warning immediately before exporting parameters to .param files in update_and_export_vehicle_params_from_fc, with a FIXME comment referencing issue #1189.

self.merge_forced_or_derived_parameters(param_filename, self.derived_parameters, existing_fc_params)
# FIXME: maybe this writes to the filesystem without asking for user confirmation?
# see https://github.com/ArduPilot/MethodicConfigurator/issues/1189
logging_warning("Maybe wrote to the filesystem without asking for user confirmation")
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

This newly added warning message is both vague ("Maybe wrote to the filesystem...") and not localized via _() unlike the rest of the logging in this module, which will confuse users and break internationalization conventions. Please either make the message specific and actionable (or downgrade it to a debug-level trace if it’s only for investigation), and wrap the string in _() to ensure it participates in translations, consistent with other logging_* calls in this file.

Suggested change
logging_warning("Maybe wrote to the filesystem without asking for user confirmation")
logging_debug(_("Exporting parameters to '%s' without explicit user confirmation"), param_filename)

Copilot uses AI. Check for mistakes.
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