Skip to content

Commit 08b034b

Browse files
Merge remote-tracking branch 'origin/release-1.11.0' into feat/le-1810-inspector-panel
# Conflicts: # src/lfx/src/lfx/_assets/component_index.json
2 parents 1631a36 + d89c8f8 commit 08b034b

131 files changed

Lines changed: 6364 additions & 1325 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,11 @@ jobs:
317317
version="$(read_pyproject_version "$pyproject")"
318318
output_file="$tmp_dir/${package_name}-pypi.txt"
319319
fetch_pypi_versions "$package_name" "$output_file"
320-
consider_versions "PyPI ${package_name}" "$version" "$output_file"
320+
if grep -Fxq "$version" "$output_file"; then
321+
echo "PyPI ${package_name}: final ${version} is already published; excluding its historical RCs."
322+
else
323+
consider_versions "PyPI ${package_name}" "$version" "$output_file"
324+
fi
321325
done
322326
fi
323327
@@ -1039,25 +1043,49 @@ jobs:
10391043
prune-cache: false
10401044
- name: Install the project
10411045
run: uv sync
1042-
- name: Set bundle versions for pre-release
1046+
- name: Set unpublished bundle versions for pre-release
10431047
if: ${{ inputs.pre_release }}
10441048
run: |
1049+
set -euo pipefail
1050+
1051+
pypi_final_exists() {
1052+
local package_name="$1"
1053+
local version="$2"
1054+
local response_file
1055+
response_file="$(mktemp)"
1056+
local status
1057+
status=$(curl --retry 3 --retry-delay 2 --retry-connrefused -sS -o "$response_file" -w "%{http_code}" "https://pypi.org/pypi/${package_name}/${version}/json")
1058+
if [ "$status" = "200" ]; then
1059+
return 0
1060+
fi
1061+
if [ "$status" = "404" ]; then
1062+
return 1
1063+
fi
1064+
echo "Failed to check PyPI release ${package_name} ${version}: HTTP ${status}" >&2
1065+
cat "$response_file" >&2 || true
1066+
exit 1
1067+
}
1068+
10451069
RC_NUMBER="${{ needs.determine-rc-number.outputs.rc_number }}"
1046-
echo "Setting bundle pre-release versions with shared rc number: rc$RC_NUMBER"
1070+
echo "Setting unpublished bundle pre-release versions with shared rc number: rc$RC_NUMBER"
10471071
for pyproject in src/bundles/*/pyproject.toml; do
1048-
CURRENT_VERSION=$(python3 - "$pyproject" <<'PY'
1072+
read -r PACKAGE_NAME CURRENT_VERSION < <(python3 - "$pyproject" <<'PY'
10491073
import pathlib
10501074
import sys
10511075
import tomllib
10521076
10531077
data = tomllib.loads(pathlib.Path(sys.argv[1]).read_text())
1054-
print(data["project"]["version"])
1078+
print(data["project"]["name"], data["project"]["version"])
10551079
PY
10561080
)
1081+
if pypi_final_exists "$PACKAGE_NAME" "$CURRENT_VERSION"; then
1082+
echo "Keeping ${PACKAGE_NAME} at ${CURRENT_VERSION}: final version is already published."
1083+
continue
1084+
fi
10571085
VERSION=$(uv run ./scripts/ci/langflow_pre_release_tag.py "$CURRENT_VERSION" --rc-number "$RC_NUMBER")
10581086
sed -i.bak "0,/^version = /s|^version = .*|version = \"$VERSION\"|" "$pyproject"
10591087
rm -f "${pyproject}.bak"
1060-
grep "^version" "$pyproject" | sed "s|^| ${pyproject}: |"
1088+
echo "Set ${PACKAGE_NAME} to ${VERSION}."
10611089
done
10621090
- name: Relax bundle lfx floor for pre-release
10631091
if: ${{ inputs.pre_release }}

.github/workflows/typescript_test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,10 @@ jobs:
379379
printf '%s\n' "$TEST_LIST"
380380
381381
WORKERS=2
382-
# The sweep lives in starter-projects-outdated-components.spec.ts
383-
# (renamed from starter-projects-shardN in #13844 — keep this
384-
# pattern in sync or the one-worker mitigation silently no-ops).
385-
if printf '%s\n' "$TEST_LIST" | grep -q 'starter-projects-outdated-components'; then
386-
echo "Detected starter project template sweep in this shard; running it with one worker to avoid shared backend contention."
382+
# These suites mutate shared SQLite-backed state and are unsafe with
383+
# multiple workers against the same test server.
384+
if printf '%s\n' "$TEST_LIST" | grep -Eq 'starter-projects-outdated-components|user-flow-state-cleanup\.spec\.ts|user-progress-track\.spec\.ts'; then
385+
echo "Detected shared-state tests in this shard; running with one worker."
387386
WORKERS=1
388387
fi
389388

0 commit comments

Comments
 (0)