Repository navigation
chore(auto-sync): align workflow dispatch panel with unified taskpack config - #424
Conversation
There was a problem hiding this comment.
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.
Review Feedback Addressed
Verified with |
b09bb72 to
0e46cf1
Compare
… config Signed-off-by: thxCode <thxcode0824@gmail.com>
0e46cf1 to
80e7ca3
Compare
Summary
workflow_dispatchpanel: Align.github/workflows/auto-sync.ymlto the 4-input panel (runner_profile,dry-run,force,pack-run-url), wiringforce: ${{ inputs.force && 'true' || 'false' }}natively togpustack/loopwright@mainwhile reservingupstream-recordsstrictly fordry-run..auto-sync/taskpack.yaml: Delete.auto-sync/checks/write_models_json.py, remove all model/gateway/sampling/thinking/limit/MCP overrides andResolve model gatewaystep from.github/workflows/auto-sync.yml, and unifyapiKeyEnv/provider-token-envtoLOOPWRIGHT_PROVIDER_TOKEN(CI_GPUSTACK_LOOPWRIGHT_LLM_AUTH_TOKEN || CI_GPUSTACK_CODEREVIEW_LLM_AUTH_TOKEN || CI_GPUSTACK_RUNNER_AUTOSYNC_LLM_AUTH_TOKEN).Checkout main,Fetch PR head,Setup uv,Install dependencies,Cache research tools,Setup research tools,Run Loopwright,Upload diagnostics).write_models_json.pyreferences and internal CI/model execution details fromdocs/release-automation.mdandAGENTS.md, and keep minimal workflow/memory test updates intests/pack/test_auto_sync_memory.py.Verification
LOOPWRIGHT_CANDIDATE_DIR="$PWD" uv run bash .auto-sync/checks/validate_candidate.shuv run python .auto-sync/checks/lint_workflows.py --require-actionlint .github/workflows/auto-sync.yml .github/workflows/pack.yml .github/workflows/ci.ymluv run pre-commit run --all-files --show-diff-on-failureuv run mkdocs build --strictuv run pytest tests/pack/test_auto_sync_memory.py -k "not test_tier_b_settled_cycles" -v(4 passed, 1 deselected)