Skip to content

fix(slm): the time settings log no submitted value (#20485) - #20645

Closed
mrveiss wants to merge 4 commits into
mainfrom
issue-20485-time-log-values
Closed

mrveiss wants to merge 4 commits into
mainfrom
issue-20485-time-log-values

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Refs #20485

Thinking Path

What Changed

  • api/settings.py: "Time config updated" and "Time sync complete" no longer log the timezone or NTP servers.
  • repo_tests/slm_api_logs_no_request_value_20485_test.py: in settings.py and config.py, any config.<attr> in a log call is now flagged, with controls.
  • A new test in tests/api/test_settings_log_keys_only_20485.py submits a credential-looking value to the time config route.

Verification

  • tests/api/test_settings_log_keys_only_20485.py: 3 passed.
  • repo_tests/slm_api_logs_no_request_value_20485_test.py: passes. Before the scope was set, the wider rule also fired on errors.py:817, llm_config.py:264 and npu.py:303.
  • Left as they are: those three log numbers, a provider name and a strategy, none of them secret, so the wider rule doesn't apply to them.
  • Not covered: "Time sync failed" still logs the exception text, and I did not check whether a failing playbook's message can carry a setting value.

Model Used

Claude Opus 5.5

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 2, 2026
@mrveiss mrveiss added the phase:M3.9 Chat, Agents, Analytics and Settings screens label Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 37 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between fd4c2df and 213d79b.

Files selected for processing: 3
  • autobot-slm-backend/api/settings.py
  • autobot-slm-backend/tests/api/test_settings_log_keys_only_20485.py
  • repo_tests/slm_api_logs_no_request_value_20485_test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20645 (head 27eec1c): approve.

Read against the diff; the tests were not run.

To change: #20485 is already closed by #20549, so Closes #20485 should be Refs #20485. A body edit is enough and doesn't move the head.

Nits: the "names what changed" comment at settings.py:105 is inaccurate, since the log line names nothing. _SETTINGS_MODULES is a filename allowlist, so a new module logging off a config parameter would be missed.

This was referenced Nov 2, 2026
@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Landed in the merge train (PR #20692) as 58cbf98: frozen head 2839315 is an ancestor of that merge. This PR's later head 213d79b only merged main, with 0 non-merge commits since.

@mrveiss mrveiss closed this Nov 2, 2026
@mrveiss
mrveiss deleted the issue-20485-time-log-values branch November 2, 2026 20:09
timothybrush pushed a commit to timothybrush/AutoBot-AI that referenced this pull request Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M3.9 Chat, Agents, Analytics and Settings screens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant