29d0cc2602
* fix(dashboard): suppress Ctrl+C shutdown traceback * fix(dashboard): extend clean Ctrl+C exit to the Windows serve branch The Windows loop-factory branch (and its pre-0.36 asyncio.run fallback) runs under the same uvicorn capture_signals() re-raise as the POSIX path, so console Ctrl+C leaked the identical KeyboardInterrupt traceback there. Guard both serve calls with the same clean-exit contract, keeping the import-resolution try/except comment accurate (genuine serve-time errors still propagate). Also ports the reworded POSIX-test docstring (the serve path is no longer 'byte-for-byte unchanged'), wraps the POSIX KI test in pytest.fail so a regression reports red instead of aborting the pytest session, and adds the windows_only sibling test. Extends #52970 to the whole bug class. * chore: map contributor email for @wangs1203 * test(dashboard): actually exercise the pre-0.36 Windows fallback KI contract Copilot review caught that patching uvicorn._compat.asyncio_run with raising=False makes the import succeed, so _runner is non-None and the extra asyncio.run patch never covered the fallback. Split it out: a dedicated windows_only test halts the _compat import (None in sys.modules) so the fallback branch is genuinely selected, then asserts the same clean-KI contract on bare asyncio.run. --------- Co-authored-by: Emiya·Leon <wangs.coder@gmail.com>
Contributor email → GitHub login mappings
This directory replaces appending entries to AUTHOR_MAP in
scripts/release.py. The old dict caused constant merge conflicts when
several salvage PRs landed at once — every PR edited the same lines of the
same file. Here, each mapping is its own file, and file additions never
conflict.
Adding a mapping
One file per commit-author email, under emails/:
python3 scripts/add_contributor.py <email> <github-login>
# or by hand:
echo "<github-login>" > contributors/emails/<email>
- File name = the exact commit-author email (as shown by
git log --format='%ae'). - File content = the GitHub login on the first non-comment line.
Lines starting with
#are comments (use them for the PR reference).
Example — contributors/emails/jane.doe@example.com:
janedoe
# PR #12345 salvage (gateway: fix session key routing)
Rules
- Do NOT add new entries to
AUTHOR_MAPinscripts/release.py. That dict is frozen legacy data; the release tooling merges it with this directory (directory entries win on duplicates). - GitHub noreply emails (
<id>+<login>@users.noreply.github.comand<login>@users.noreply.github.com) auto-resolve — no file needed. - The
Contributor Attribution CheckCI job fails a PR whose commits carry an unmapped email; the failure message prints the exact command to run.