bug: potential fix for cross-platform test workflows (#9255)
This commit is contained in:
parent
cb4332dc43
commit
25f1107e18
4 changed files with 47 additions and 141 deletions
92
.github/workflows/cross-platform-test.yml
vendored
92
.github/workflows/cross-platform-test.yml
vendored
|
|
@ -1,28 +1,6 @@
|
|||
name: Cross-Platform Installation Test
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
base-artifact-name:
|
||||
description: "Name of the base package artifact (leave empty to use latest from main branch)"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
main-artifact-name:
|
||||
description: "Name of the main package artifact (leave empty to use latest from main branch)"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
test-timeout:
|
||||
description: "Timeout for langflow server startup test (minutes)"
|
||||
required: false
|
||||
type: number
|
||||
default: 5
|
||||
run-id:
|
||||
description: "GitHub run ID to download artifacts from (leave empty for latest successful run)"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
workflow_call:
|
||||
inputs:
|
||||
base-artifact-name:
|
||||
|
|
@ -81,80 +59,18 @@ jobs:
|
|||
run: |
|
||||
echo "base-artifact-name=adhoc-dist-base" >> $GITHUB_OUTPUT
|
||||
echo "main-artifact-name=adhoc-dist-main" >> $GITHUB_OUTPUT
|
||||
- name: Debug artifact names
|
||||
run: |
|
||||
echo "Build job outputs:"
|
||||
echo " base-artifact-name: adhoc-dist-base"
|
||||
echo " main-artifact-name: adhoc-dist-main"
|
||||
echo "Input parameters:"
|
||||
echo " inputs.base-artifact-name: '${{ inputs.base-artifact-name }}'"
|
||||
echo " inputs.main-artifact-name: '${{ inputs.main-artifact-name }}'"
|
||||
|
||||
resolve-parameters:
|
||||
name: Resolve Parameters
|
||||
needs: [build-if-needed]
|
||||
if: always() && (needs.build-if-needed.result == 'success' || needs.build-if-needed.result == 'skipped')
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
base-artifact-name: ${{ steps.resolve.outputs.base-artifact-name }}
|
||||
main-artifact-name: ${{ steps.resolve.outputs.main-artifact-name }}
|
||||
test-timeout: ${{ steps.resolve.outputs.test-timeout }}
|
||||
steps:
|
||||
- name: Resolve artifact names
|
||||
id: resolve
|
||||
run: |
|
||||
# Resolve base artifact name
|
||||
if [ -n "${{ inputs.base-artifact-name }}" ] && [ "${{ inputs.base-artifact-name }}" != "" ]; then
|
||||
BASE_NAME="${{ inputs.base-artifact-name }}"
|
||||
elif [ -n "${{ needs.build-if-needed.outputs.base-artifact-name }}" ]; then
|
||||
BASE_NAME="${{ needs.build-if-needed.outputs.base-artifact-name }}"
|
||||
else
|
||||
BASE_NAME="adhoc-dist-base"
|
||||
fi
|
||||
|
||||
# Resolve main artifact name
|
||||
if [ -n "${{ inputs.main-artifact-name }}" ] && [ "${{ inputs.main-artifact-name }}" != "" ]; then
|
||||
MAIN_NAME="${{ inputs.main-artifact-name }}"
|
||||
elif [ -n "${{ needs.build-if-needed.outputs.main-artifact-name }}" ]; then
|
||||
MAIN_NAME="${{ needs.build-if-needed.outputs.main-artifact-name }}"
|
||||
else
|
||||
MAIN_NAME="adhoc-dist-main"
|
||||
fi
|
||||
|
||||
# Resolve test timeout
|
||||
if [ -n "${{ inputs.test-timeout }}" ]; then
|
||||
TIMEOUT="${{ inputs.test-timeout }}"
|
||||
else
|
||||
TIMEOUT="5"
|
||||
fi
|
||||
|
||||
echo "base-artifact-name=${BASE_NAME}" >> $GITHUB_OUTPUT
|
||||
echo "main-artifact-name=${MAIN_NAME}" >> $GITHUB_OUTPUT
|
||||
echo "test-timeout=${TIMEOUT}" >> $GITHUB_OUTPUT
|
||||
|
||||
echo "Resolved parameters:"
|
||||
echo " base-artifact-name: ${BASE_NAME}"
|
||||
echo " main-artifact-name: ${MAIN_NAME}"
|
||||
echo " test-timeout: ${TIMEOUT}"
|
||||
echo ""
|
||||
echo "Input values:"
|
||||
echo " inputs.base-artifact-name: '${{ inputs.base-artifact-name }}'"
|
||||
echo " inputs.main-artifact-name: '${{ inputs.main-artifact-name }}'"
|
||||
echo " inputs.test-timeout: '${{ inputs.test-timeout }}'"
|
||||
echo " build-if-needed.outputs.base-artifact-name: '${{ needs.build-if-needed.outputs.base-artifact-name }}'"
|
||||
echo " build-if-needed.outputs.main-artifact-name: '${{ needs.build-if-needed.outputs.main-artifact-name }}'"
|
||||
|
||||
test-wheel-installation:
|
||||
name: Test Wheel Installation
|
||||
needs: [build-if-needed, resolve-parameters]
|
||||
needs: [build-if-needed]
|
||||
if: always() && (needs.build-if-needed.result == 'success' || needs.build-if-needed.result == 'skipped')
|
||||
uses: ./.github/workflows/cross-platform-test-shared.yml
|
||||
with:
|
||||
install-method: "wheel"
|
||||
test-timeout: 5
|
||||
test-timeout: ${{ inputs.test-timeout }}
|
||||
langflow-version: ""
|
||||
base-artifact-name: "adhoc-dist-base"
|
||||
main-artifact-name: "adhoc-dist-main"
|
||||
base-artifact-name: ${{ inputs.base-artifact-name || needs.build-if-needed.outputs.base-artifact-name }}
|
||||
main-artifact-name: ${{ inputs.main-artifact-name || needs.build-if-needed.outputs.main-artifact-name }}
|
||||
run-id: ""
|
||||
|
||||
test-summary:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue