amsd-pipeline-shared 0.5.4 → 0.5.5
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.
|
@@ -229,9 +229,14 @@ qa_record_phase_baseline() {
|
|
|
229
229
|
# B77 (RS-4, = B73): THE BASELINE IS RECORDED ONCE for a run and phase. A resume starts the phase again; the baseline it had must not move to wherever HEAD
|
|
230
230
|
# is by then (that made "committed since the baseline" empty). A new phase, or a new run in the same log folder, has a different key and records its own.
|
|
231
231
|
_key="${PHASE:-main}|${ORCH_RUN_ID:-}"
|
|
232
|
-
|
|
232
|
+
# A RESUME ADOPTS A LEGACY BASELINE (a sha with no key file, recorded by the code before B77 — found replaying run 11's gotransit lane): on a resume it is the run's own, so a
|
|
233
|
+
# valid commit is kept and the key is written for every later call. Without a resume (a new run in the same folder) a keyless value is not trusted, as before.
|
|
234
|
+
local _legacy=0
|
|
235
|
+
[ -f "$_bf" ] && [ ! -f "$_kf" ] && [ -n "${EPAM_RESUME_RUN:-}" ] && _legacy=1
|
|
236
|
+
if [ -f "$_bf" ] && { [ "$_legacy" = 1 ] || { [ -f "$_kf" ] && [ "$(cat "$_kf" 2>/dev/null)" = "$_key" ]; }; }; then
|
|
233
237
|
_have=$(tr -d '[:space:]' < "$_bf" 2>/dev/null)
|
|
234
238
|
if [ -n "$_have" ] && git -C "$_root" cat-file -e "${_have}^{commit}" 2>/dev/null; then
|
|
239
|
+
[ "$_legacy" = 1 ] && printf '%s\n' "$_key" > "$_kf"
|
|
235
240
|
printf '%s' "$_have"
|
|
236
241
|
return 0
|
|
237
242
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amsd-pipeline-shared",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "The AMSD pipeline's shared components, one source for the bash pipeline and its Claude workflows: the model-call gateway (llm-handler.sh — retry, ladder, self-heal, cost) and the libraries it runs.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"bin": {
|