Repository navigation
fix(agentic-ci): complete maintenance tasks - #1100
Conversation
Signed-off-by: Andre Manoel <amanoel@nvidia.com>
[Medium impact] The PR appears safe to merge; both previous test failures are addressed. SummaryThe PR changes agentic CI to finish bounded maintenance tasks instead of opening isolated cosmetic fixes.
|
| result = subprocess.run(["bash", "-e", "-c", script + scope_check], env=env, capture_output=True, text=True) | ||
| assert result.returncode == 0, result.stderr |
There was a problem hiding this comment.
If bash resolves to macOS's default Bash 3.2, all 18 cases in test_suite_scope_limits fail. The test sets DIFF_REF=HEAD, so the extracted fragment reaches mapfile, which Bash 3.2 does not support. With -e, the shell exits before checking the limits. Use a compatible fragment or explicitly provide a newer Bash for these tests.
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/data-designer/tests/test_agentic_ci_daily_workflow.py
Line: 73-74
Comment:
**Tests fail with macOS Bash**
If `bash` resolves to macOS's default Bash 3.2, all 18 cases in `test_suite_scope_limits` fail. The test sets `DIFF_REF=HEAD`, so the extracted fragment reaches `mapfile`, which Bash 3.2 does not support. With `-e`, the shell exits before checking the limits. Use a compatible fragment or explicitly provide a newer Bash for these tests.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| result = subprocess.run( | ||
| ["bash", "-e", "-c", daily_scripts["backlog"]], cwd=tmp_path, env=env, capture_output=True, text=True | ||
| ) | ||
| assert result.returncode == 0, result.stderr | ||
| assert output.read_text().strip() == f"size={expected}" |
There was a problem hiding this comment.
If a developer has not separately installed jq, four cases in test_fix_phase_requires_completed_docs_scope fail after following the documented setup. The invoked script calls jq and falls back to size=0 when it is missing, but these cases expect size=1. Provide this dependency through the test setup or run these checks in an environment that explicitly installs it.
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/data-designer/tests/test_agentic_ci_daily_workflow.py
Line: 101-105
Comment:
**Tests need an undeclared tool**
If a developer has not separately installed `jq`, four cases in `test_fix_phase_requires_completed_docs_scope` fail after following the documented setup. The invoked script calls `jq` and falls back to `size=0` when it is missing, but these cases expect `size=1`. Provide this dependency through the test setup or run these checks in an environment that explicitly installs it.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Signed-off-by: Andre Manoel <amanoel@nvidia.com>
Signed-off-by: Andre Manoel <amanoel@nvidia.com>
|
Thanks for putting this together, @andreatnvidia! SummaryThe PR groups related documentation findings into complete maintenance tasks, raises the docs scope limits, and gates fixes on current audit completion. This matches the stated intent, but the new selection rules can prevent PR-state reconciliation and strand retryable findings. FindingsWarnings — Worth addressing
What Looks Good
Residual RiskAll 53 focused workflow and attempted-fix tests passed. The changed Python file passed Ruff lint and formatting; diff whitespace and all daily-workflow shell syntax checks passed. A local reproduction confirmed that a recorded-open finding excluded by the audit yields VerdictNeeds changes — move PR-state reconciliation ahead of audit selection so closed PRs do not strand retryable docs findings. This review was generated by an AI assistant. |
Signed-off-by: Andre Manoel <amanoel@nvidia.com>
|
Thanks for the review, @nabinchha! Fixed in |
nabinchha
left a comment
There was a problem hiding this comment.
Thanks for addressing the review, @andreatnvidia!
Summary
Reviewed the follow-up fix in 6c33c5a7. Recorded open PRs are now reconciled before docs audit selection, independently of the completed-scope gate. Closed PRs can therefore be reconsidered without another maintenance task triggering reconciliation.
Findings
No remaining actionable findings. The previously reported P2 is resolved.
What Looks Good
- Reconciliation runs before audit selection and preserves state if a PR query fails.
- The lifecycle regression test covers a cached-open finding whose PR has closed, through scope reset, reconciliation, and admission after audit completion.
Residual Risk
All 58 focused workflow and attempted-fix tests passed. Ruff lint and formatting passed for the updated Python files. Full package suites and live Claude/GitHub workflow execution were not run.
Verdict
Ship it — the original finding is resolved.
This review was generated by an AI assistant using the repository's review-code skill.
Summary
Daily audits can produce repeated one-line fixes to the same document, as in #1049 and #1090. Select a complete, bounded maintenance task instead, and keep isolated cosmetic findings in the backlog.
Related Issue
N/A (maintainer change). Extends the batching introduced in #632 and #787.
Changes
Testing
make install-devis blocked locally by uv 0.12.9 versus the required >=0.13.4.docs/colab_notebooks/8-generating-word-documents.ipynb. The notebook is untouched.Checklist