blueprint-shared-docs 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"entry": "blueprint-shared",
|
|
5
5
|
"layer": "org",
|
|
6
6
|
"describes": {
|
|
7
|
-
"blueprint-shared-docs": "0.
|
|
7
|
+
"blueprint-shared-docs": "0.3.0"
|
|
8
8
|
},
|
|
9
9
|
"publish": {
|
|
10
10
|
"target": "npm",
|
|
@@ -5698,7 +5698,7 @@
|
|
|
5698
5698
|
"kind": "list",
|
|
5699
5699
|
"items": [
|
|
5700
5700
|
"schema 有三份(fact、`schemas/`、`templates/release/schemas/`),要和 `tests/fixtures/release-policy/` 一起改。",
|
|
5701
|
-
"讀 `.product.*`
|
|
5701
|
+
"讀 `.product.*` 的範本腳本只有 hub 專用的 `snapshot-members.sh` 與 `dispatch-release-lines.sh`,兩支都用 `policy_require_product` 擋下組織層的倉。規劃、開線與收尾的腳本(`release-plan.sh`、`plan.sh`、`open-release-line.sh`、`finalize-release.sh`)認 `layer: organization`,在倉自己的 `releases/` 規劃發布,收尾時打產品 tag `v<版號>`。",
|
|
5702
5702
|
"同一個詞 `layer` 在不同地方有不同意思,讀的人要看上下文。"
|
|
5703
5703
|
]
|
|
5704
5704
|
}
|
|
@@ -7589,11 +7589,15 @@
|
|
|
7589
7589
|
"暫時性錯誤只有 HTTP 500、502、503、504(認得 gh 的 `HTTP 502`,也認得 git 的 `The requested URL returned error: 502`)與 Connect Timeout(`Connect Timeout`、`connect: connection timed out`、`Connection timed out`,大小寫不拘)。501、其他 5xx 與全部 4xx 都不算。",
|
|
7590
7590
|
"`retryMove` 是唯一做判斷的純函式,輸入失敗的文字、種類、輪數,輸出重試、停下或先查。非同步版 `retryTransient`、同步版 `retryTransientSync` 與命令列版都只靠它決定。暫停由呼叫端注入,模組本身只有命令列版的預設暫停會真的 sleep。",
|
|
7591
7591
|
"讀取(`read`)只對暫時性錯誤重試,呼叫端可以加一個額外條件,例如剛派送的 run 回 HTTP 404。",
|
|
7592
|
+
"讀取另外認 GitHub GraphQL 逾時的 `Something went wrong while executing your query`。push 與 merge 不認,因為寫入可能已經發生。",
|
|
7593
|
+
"找不到倉(`Repository not found`、`Could not resolve to a Repository`、`HTTP 404`)只在 token 剛建立時當暫時性錯誤,因為還不是每台 GitHub 伺服器都認得新 token,舊 token 的 404 就是答案。命令列版的 `read` 在環境變數 `RETRY_FRESH_TOKEN=1` 時才重試它,auto-merge 的 decide 步驟用的是 job 開始時建立的 token,所以設這個變數。",
|
|
7594
|
+
"命令列版對 `read` 的每次嘗試設逾時,秒數讀環境變數 `RETRY_TIMEOUT`,預設 120。push 與 merge 只在設了 `RETRY_TIMEOUT` 時才有逾時,因為 push 會跑倉的 pre-push hook,建置與檢查可能比任何預設值都久。逾時的指令用 SIGKILL 終止(卡住的 gh 可能不理 SIGTERM),stderr 寫一行說明,失敗文字是 `Command Timeout`。只有 `read` 把它當暫時性錯誤重試,push 與 merge 逾時就停並回非 0 結束碼,因為寫入可能已經發生。",
|
|
7592
7595
|
"push 只對暫時性錯誤重試,而且命令帶 `--force`、`-f`、`--force-with-lease`、`--force-if-includes`、`--delete`、`-d`、`+refspec`、`:ref`(刪除)、`--mirror` 或 `--prune` 時一律不重試。",
|
|
7593
7596
|
"合併(`merge`)對暫時性錯誤與 `Base branch was modified` 重試,後者是合併重試一直以來的理由。",
|
|
7594
7597
|
"派送(`dispatch`)遇到暫時性錯誤時,先呼叫呼叫端給的 `exists()` 查派送有沒有產生 run。找到就回傳那個 run,不再派送,找不到才重做。`exists()` 可以用派送時帶的 nonce 查,沒有 nonce 的派送用「派送前清單裡沒有的 run」查。",
|
|
7595
7598
|
"上限是 5 輪,命令列版的間隔是環境變數 `RETRY_SLEEP` 秒,預設 5。",
|
|
7596
7599
|
"套用的地方:`external_retry <kind> <target> <cmd...>`(確認閘與 audit 照舊,執行改呼叫命令列版)用在範本腳本裡非強制的 `git push` 與 `gh pr merge`。auto-merge 的 merge 步驟執行 `node scripts/lib/retry.mjs merge -- gh pr merge ...`,該 job 要有 checkout 與 setup-workspace,和 decide job 相同,取 base 分支的檔案。publish 範本 `mirror-units.sh` 的 `mgit_push` 也經它重試。",
|
|
7600
|
+
"範本的發布腳本讀開著的 PR 或 run(`finalize-release.sh`、`release-pr.sh`)經命令列版的 `read`。讀取失敗就停下,訊息寫明是讀取失敗並帶 gh 的錯誤,不把失敗當成「沒有 PR」或「沒有 run」。",
|
|
7597
7601
|
"`git push -f` 與 `git push --delete` 保持 `external`,不重試。"
|
|
7598
7602
|
]
|
|
7599
7603
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blueprint-shared-docs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Decisions and explanations shared by several products, published on its own",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Carlos Space",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"blueprint-shared-facts": "0.
|
|
20
|
+
"blueprint-shared-facts": "0.5.0",
|
|
21
21
|
"clarify-kit": "^0.3.1",
|
|
22
22
|
"fact-kit": "^0.14.1",
|
|
23
23
|
"oxc-parser": "^0.155.0"
|