From cdedfe29aa781a4946557895f59c3931d22b055b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BF=97=E5=A8=81?= Date: Tue, 13 Oct 2026 19:49:43 +0800 Subject: [PATCH] ci: bypass proxy when cloning LinkPort repository --- .drone.yml | 4 ++-- docs/build-output.md | 6 ++++++ docs/change-rationale.md | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f0ac5e3..d92d4d2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,10 +4,10 @@ name: default environment: http_proxy: http://192.168.9.1:7893 https_proxy: http://192.168.9.1:7893 - no_proxy: localhost,127.0.0.1,::1 + no_proxy: localhost,127.0.0.1,::1,git.freeicu.top HTTP_PROXY: http://192.168.9.1:7893 HTTPS_PROXY: http://192.168.9.1:7893 - NO_PROXY: localhost,127.0.0.1,::1 + NO_PROXY: localhost,127.0.0.1,::1,git.freeicu.top steps: - name: frontend-build diff --git a/docs/build-output.md b/docs/build-output.md index d1af3f7..b5cdca2 100644 --- a/docs/build-output.md +++ b/docs/build-output.md @@ -67,3 +67,9 @@ If startup pauses at `Stopping previous linkport service...`, that stage is proc The launcher reports each owned PID, completion of the process check, and the start of the data backup, so a slow backup is distinguishable from process discovery. Source and extracted-release launchers share this behavior. Build/cache options, selected database path, complete-directory backup, data locks, and installation order are unchanged; no database migration is introduced. If an already-running launcher is stuck in the old CIM query, cancel that invocation with Ctrl+C and rerun `start-dev.cmd` to load the updated script. Validation on 2026-10-06: `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/start-dev.test.ps1` passed using temporary directories and compiled fixture executables. It checks both owned executable locations, preservation of a running unowned copy, no-process startup, build-only behavior, source/release startup, complete selected-directory backups, and existing failure protections. No real LinkPort service, database, protocol server, or migration was used; backend/frontend suites were not rerun for this script-only change. + +## Drone Git 直连(2026-10-13) + +流水线的 `no_proxy` 和 `NO_PROXY` 均包含 `git.freeicu.top`,默认克隆通过 HTTPS 直连 Git 服务,避免代理 CONNECT 返回 407。其他依赖下载继续使用现有代理。Runner 所在网络需能直接访问该域名的 443 端口;如果 Runner 单独覆盖克隆容器的代理环境,也应同步加入该域名。 + +本次验证:本地断言确认大小写两份直连名单均包含 Git 域名,差异检查通过。未触发远端 Drone 构建,需推送后验证实际网络路径;无应用或数据库变更。 diff --git a/docs/change-rationale.md b/docs/change-rationale.md index a62250b..a05c4e5 100644 --- a/docs/change-rationale.md +++ b/docs/change-rationale.md @@ -1485,3 +1485,7 @@ Actual validation: the Windows PowerShell startup regression suite passed with c 原因:账号选择、增删操作和凭据混排,宽屏表单列数过多,底部测试账号选择器缺少宽度约束。将账号工具栏与字段网格分开,共用详情页限制宽度并居中,编辑表单根据可用空间选择一至两列,底部操作区对齐并允许换行。影响目标、网关和复用详情页的编辑布局,不改主题、业务逻辑、数据格式或迁移。新增桌面、平板和手机布局断言;实际验证记入 docs/workspace-ui.md。 实际验证:前端和嵌入程序构建通过;42 项浏览器专项全部通过(44.5 秒),包括四种屏宽的布局检查及既有保存、校验、主题和退出保护。使用临时数据库与 fixtures,不涉及真实目标。后端无改动,未重复运行全量 Go 测试。 + +## Drone 克隆绕过代理(2026-10-13) + +原因:默认克隆使用流水线代理访问 Git 服务,CONNECT 被代理以 407 拒绝,用户要求 Git 不走代理。最小调整为在 no_proxy/NO_PROXY 中同时加入 git.freeicu.top;保留默认克隆及其他下载代理,不改应用与数据库。本地断言检查两份配置和 git diff --check;未连接远端 Drone,直连可达性需实际构建确认,Runner 自身覆盖代理时也需同步直连名单。详见 docs/build-output.md。