Skip to content

chore(auto-sync): align workflow dispatch panel with unified taskpack config - #424

Merged
thxCode merged 1 commit into
mainfrom
chore/align-autosync-panel
Nov 19, 2026
Merged

thxCode merged 1 commit into
mainfrom
chore/align-autosync-panel

Conversation

@thxCode

@thxCode thxCode commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Unified workflow_dispatch panel: Align .github/workflows/auto-sync.yml to the 4-input panel (runner_profile, dry-run, force, pack-run-url), wiring force: ${{ inputs.force && 'true' || 'false' }} natively to gpustack/loopwright@main while reserving upstream-records strictly for dry-run.
  • Single source of truth in .auto-sync/taskpack.yaml: Delete .auto-sync/checks/write_models_json.py, remove all model/gateway/sampling/thinking/limit/MCP overrides and Resolve model gateway step from .github/workflows/auto-sync.yml, and unify apiKeyEnv / provider-token-env to LOOPWRIGHT_PROVIDER_TOKEN (CI_GPUSTACK_LOOPWRIGHT_LLM_AUTH_TOKEN || CI_GPUSTACK_CODEREVIEW_LLM_AUTH_TOKEN || CI_GPUSTACK_RUNNER_AUTOSYNC_LLM_AUTH_TOKEN).
  • Simplified step titles: Tighten workflow step names (Checkout main, Fetch PR head, Setup uv, Install dependencies, Cache research tools, Setup research tools, Run Loopwright, Upload diagnostics).
  • Docs & tests: Remove write_models_json.py references and internal CI/model execution details from docs/release-automation.md and AGENTS.md, and keep minimal workflow/memory test updates in tests/pack/test_auto_sync_memory.py.

Verification

  • LOOPWRIGHT_CANDIDATE_DIR="$PWD" uv run bash .auto-sync/checks/validate_candidate.sh
  • uv run python .auto-sync/checks/lint_workflows.py --require-actionlint .github/workflows/auto-sync.yml .github/workflows/pack.yml .github/workflows/ci.yml
  • uv run pre-commit run --all-files --show-diff-on-failure
  • uv run mkdocs build --strict
  • uv run pytest tests/pack/test_auto_sync_memory.py -k "not test_tier_b_settled_cycles" -v (4 passed, 1 deselected)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the model configuration generation to use .auto-sync/taskpack.yaml as the single source of truth for model defaults (such as thinking levels, sampling parameters, max output tokens, and context windows) instead of relying on individual environment variables or workflow inputs. It introduces validation helpers and a TaskpackModelDefaults named tuple to load and parse these settings, and updates the documentation and tests accordingly. A critical issue was identified in the YAML parsing logic where unquoted boolean-like strings (such as off or true) in the manifest are parsed as Python booleans, which leads to incorrect default fallbacks or runtime crashes.

Comment thread .auto-sync/checks/write_models_json.py Resolved
@thxCode

thxCode commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Review Feedback Addressed

Item Location Outcome
YAML 1.1 boolean parsing for thinking: off / on (#discussion_r4626902235) .auto-sync/checks/write_models_json.py Addressed — simplified write_models_json.py to pure gateway routing (URL, model, provider, protocol/api) and removed YAML manifest parsing altogether.
Remove internal model/CI configuration details from public docs docs/release-automation.md Addressed — removed the Model configuration and workflow execution section from docs/release-automation.md.

Verified with validate_candidate.sh, lint_workflows.py --require-actionlint, pre-commit run --all-files, mkdocs build --strict, and pytest tests/pack/test_auto_sync_memory.py.

@thxCode
thxCode force-pushed the chore/align-autosync-panel branch 2 times, most recently from b09bb72 to 0e46cf1 Compare November 19, 2026 10:01
… config

Signed-off-by: thxCode <thxcode0824@gmail.com>
@thxCode
thxCode force-pushed the chore/align-autosync-panel branch from 0e46cf1 to 80e7ca3 Compare November 19, 2026 10:03
@thxCode
thxCode merged commit e65095d into main Nov 19, 2026
7 checks passed
@thxCode
thxCode deleted the chore/align-autosync-panel branch November 19, 2026 10:18
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.

1 participant