Skip to content

[aw] Refresh nightly fix finder categories - #12689

Open
jonathanpeppers wants to merge 3 commits into
mainfrom
jonathanpeppers-review-no-op-runs
Open

[aw] Refresh nightly fix finder categories#12689
jonathanpeppers wants to merge 3 commits into
mainfrom
jonathanpeppers-review-no-op-runs

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Why

The no-op history in #11506 shows that the unused-using and AsyncTask logging categories have stopped producing actionable changes, while the string-literal diagnostic category rejects otherwise valid fixes that require new resources.

Changes

  • Replace 06-unused-using-directives with a conservative dead-code detector for unreachable constructs and unreferenced private members.
  • Replace 07-asynctask-log-property with focused scans for stale Xamarin-era prose and documentation links.
  • Allow README.md fixes produced by the stale-reference category.
  • Restrict 08-string-literal-error-messages to resource-backed projects, filter localized and pass-through diagnostics, and permit complete resource/XA documentation changes.
  • Regenerate the compiled workflow.

Validation

  • Ran all three category scripts with Bash pipefail enabled.
  • Compiled nightly-fix-finder with gh aw compile nightly-fix-finder --strict.
  • Reviewed the changes with GPT-5.6 Terra, GPT-5.6 Luna, and GPT-5.5; the final review found no unresolved high-confidence issues.

Closes #11506

Replace exhausted no-op categories with dead-code and stale-reference scans, and allow complete localized diagnostic fixes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c9f6e114-ab17-428b-aa77-c86b55a9b5e2
Copilot AI lite review requested due to automatic review settings September 4, 2026 18:52

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.

🟡 Changes recommended

The new dead-code scan has avoidable worst-case runtime costs and the string-literal scan can fail the workflow when there’s nothing to scan, which risks noisy or slow nightly runs.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Refreshes the nightly-fix-finder agentic-workflow categories to avoid repeated no-op runs and to unblock otherwise-valid localization fixes by narrowing/retargeting scans and expanding what the workflow is allowed to change.

Changes:

  • Replaces the “unused using” and “AsyncTask Log property misuse” categories with new scans for provably dead code and stale Xamarin-era prose/links.
  • Tightens the string-literal diagnostic category to resource-backed projects and expands guidance to allow cohesive resource + XA-doc updates.
  • Extends safe outputs to allow README.md edits and regenerates the compiled workflow lock.
File summaries
File Description
.github/workflows/nightly-fix-finder/08-string-literal-error-messages.sh Restricts scan to resource-backed projects and refines filtering/guidance for localization-safe diagnostics.
.github/workflows/nightly-fix-finder/07-stale-xamarin-references.sh Adds a new category to find stale Xamarin/Mono-era prose and outdated documentation links.
.github/workflows/nightly-fix-finder/07-asynctask-log-property.sh Removes the AsyncTask Log-misuse category script.
.github/workflows/nightly-fix-finder/06-unused-using-directives.sh Removes the unused-using category script.
.github/workflows/nightly-fix-finder/06-completely-dead-code.sh Adds a new “completely dead code” category with unreachable-construct and private-identifier heuristics.
.github/workflows/nightly-fix-finder.md Updates workflow docs/category list and clarifies the cohesive scope for resource-backed diagnostic fixes; allows README changes.
.github/workflows/nightly-fix-finder.lock.yml Regenerates compiled workflow lock to reflect category and safe-output changes.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread .github/workflows/nightly-fix-finder/06-completely-dead-code.sh Outdated
Precompute singleton identifiers in one pass and treat an empty resource inventory as a successful no-op.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c9f6e114-ab17-428b-aa77-c86b55a9b5e2
@jonathanpeppers

Copy link
Copy Markdown
Member Author

/review

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Android PR Reviewer completed successfully!

Generated by Android PR Reviewer for #12689

@github-actions github-actions Bot 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.

⚠️ Needs Changes

Findings: 0 errors, 1 warning, 0 suggestions.

The new categories are conservative, the diagnostic-localization workflow now permits cohesive resource changes, and the generated workflow reflects the source configuration. One reliability issue remains in the stale-reference scanner: its known provenance exclusion is tied to a mutable line number.

CI is still in progress; all completed checks currently pass.

Generated by Android PR Reviewer for #12689 · gpt56 · 134.5 AIC · ⌖ 20.1 AIC · ⊞ 25.7K
Comment /review to run again

Comment thread .github/workflows/nightly-fix-finder/07-stale-xamarin-references.sh Outdated
Match the known aprofutil provenance URL rather than its movable source line.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c9f6e114-ab17-428b-aa77-c86b55a9b5e2
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.

[aw] No-Op Runs

2 participants