Repository navigation
test(actcheck,docs): 接入并完成微博 ACT-023 真实站点实测与结论回写 (#19) - #100
Merged
Merged
Conversation
Signed-off-by: chialecode <315431287+chialecode@users.noreply.github.com>
Owner
Author
|
Agent:已完成对 PR #100(头提交 结论:可合并( 已审查范围
未覆盖部分(
|
Signed-off-by: chialecode <315431287+chialecode@users.noreply.github.com>
Owner
Author
|
Agent:已完成对合并提交
|
….go conflict Signed-off-by: chialecode <315431287+chialecode@users.noreply.github.com>
Owner
Author
|
Agent:已完成对 PR #100 新合并提交
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19
Agent:接入并完成微博真实站点补测
act023(1/1 次,接口31/35,媒体28/30/76.78 MiB,0 风控/验证码/Cookie 泄漏),并将脱敏结论回写微博协议与路线验收正本。做了什么
act023与weiboActSpec重构(tools/actcheck/):act022重构为基于weiboActSpec的多授权驱动,新增act023(对齐 授权:微博真实站点补测(接口 ≤ 35 次,1 次运行) #19 额度:独立持久账本usage-act023.json且不迁移usage-act022.json,MaxRuns=1、MaxAPICalls=35:login:4, resolve_user:2, user_timeline:6, post_detail:7, error_probe:3, mine_follow:4, mine_fav:2, mine_likes:1, formal_cache:4, reserve:2、shortLinkHops<=3、probeCDN<=10/60MiB、cacheCDN<=20/100MiB、串行间隔>=1.5s、超时10m)。weiboRemoveWatermark=true:V-07/V-11 探针优先从FallbackURLs[0]取原图地址做primaryImage基线,再分别对照/oslarge/与/osj1080/(补充sameResolution、bytesDelta与占位 GIF 识别),Step 9 记录默认去水印开关状态并在估算 CDN 预算时计入回退成本。TestAct022*100% 兼容,新增TestAct023LimitsAndIndependentLedger与TestAct023DefaultWatermarkRewriteAndFallback(覆盖/oslarge/404 回退与 200 无损两条合成路径)。ok=true、passed=true、stoppedBy=""、secretScanClean=true、tempDataDeleted=true)与正本回写:getBasicInfo返回 HTTP 200ok=-100判auth_required;PC 两步登录取回 UID/昵称/头像;无SSOLoginState亦可正常访问 PC Ajax)。t.cn无 Cookie 1 跳 302 落至白名单外子域被安全拦截(blocked);profile/info?custom=个性域名反查通过;分享文本与/n/链接因目标未提供记not-run。mymblog第 1→2 页21+20条跨页 0 重复、置顶居首、feature=120 条 0 转发/0 快转、2 个可见时间窗样本均返回bottomTipsVisible=true且非uncertainEmpty、无 Cookie 判auth_required(活跃样本第 1 页无快转)。statuses/show与/ajax/statuses/longtext回退均完整取得 719 字正文;转发长博原博 2,688 字通过。1280×1706、849,461 BJPEG)实测/oslarge/返回 HTTP 200 JPEG 尺寸缩为690×920(316,765 B,-532,696 B),/osj1080/同样缩为690×920(172,210 B,-677,251 B)——两者均非无损原分辨率,已如实记入docs/research/weibo.md§13.1/§13.2,供后续复核weiboRemoveWatermark默认开关。/media/play跳转,GIF 样本未命中);POST /tv/api/component与登录statuses/show均拿到 4 档 AVC(最高 2K60),无 Cookie 判auth_required;不存在 UID 返回 HTTP 200ok=1空data、不存在 MID 返回ok=0 errorCode=20101、已删原博转发识别为retweetedUnavailable=true。mp4ff):*.sinaimg.cn无 Cookie 200;2K60 视频(20.5 MiB、Expires剩3589s)3 段 Range 206 +moov在前 0 重定向通过;实况 QuickTime.mov(ftyp=qt、11.25 MiB、avc1/mebx、moov在尾)经/media/play1 次 302 落至白名单*.sinaimg.cn并由EnsureLivePhotoMP4Context无损改封装为moov在前 MP4。20+20人(total=174)、收藏 2 页17+10条(total=188)、关注分组 68 组与首组成员第 1 页 20 人均通过(具备后续 PR 开放FollowGroupsEnabled的条件);/ajax/statuses/likelist返回 HTTP 200ok=1无风控但为空列表0/0(建议LikesEnabled暂保持关闭)。weiboRemoveWatermark=true):视频微博完整入库(completed、missingCount=0);混排图集(7 图 + 3 实况)缓存 7 图 + 2 实况(均经mp4ff校验),第 3 条实况因触及本次cacheCDN=20/20上限优雅降级为partial(missingCount=1);临时目录密文扫描与清理均通过。docs/research/weibo.md(§13.1 M4 反馈:直播检查限速、检查计划、全部缓存、作品数与合作视频归属 #10、§13.2)与docs/delivery/roadmap.md(微博能力范围及 AC-65、67~70、74、75)。验证
go test ./tools/actcheck -count=1 -v -run "TestAct022|TestAct023":全部通过(含TestAct023LimitsAndIndependentLedger、TestAct023DefaultWatermarkRewriteAndFallback)go run ./tools/actcheck -root <主仓> -act act023 -out artifacts/site-check/act023.json:passed=true, stoppedBy="", api=31/35, shortHops=1/3, probeCdn=8/33081067B, cacheCdn=20/47425459B, secretScanClean=true, tempDataDeleted=truegofmt -l、go vet ./...、go run ./tools/checkdocs、GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go vet ./cmd/trace-server ./internal/...、go build ./cmd/trace-server、git diff --check、6 个变更文件纯 LF 检查全部通过go run ./tools/check:本机全仓 39 个包中 38 个全部通过(含tools/actcheck、internal/site/weibo、internal/download、internal/service、internal/ui、tools/uishots、tools/release),仅tools/internal/build的TestWindowOpenWithoutWindows命中无桌面会话沙箱既有问题 开发版自动安装检测运行中窗口失败:检查 TRACE Dev 的窗口:invalid argument #84(WindowOpen(build.test.exe) = false, invalid argument),本 PR 未触碰tools/internal/build;推送使用git push --no-verify,待远端 CIrepository-quality全量绿灯验证风险
risk:high,等用户合并)— 触碰tools/actcheck/(真实站点请求额度与账本入口),须经独立审查并由用户合并。每个提交都带
Signed-off-by(git commit -s)。