chore: continue cross-product debug (#9269)
chore:continue cross-product debug
This commit is contained in:
parent
97d4883c68
commit
2bd16f5f86
1 changed files with 20 additions and 27 deletions
47
.github/workflows/cross-platform-test.yml
vendored
47
.github/workflows/cross-platform-test.yml
vendored
|
|
@ -20,24 +20,10 @@ on:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
debug-github-context:
|
|
||||||
name: Debug GitHub Context
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Debug all GitHub context
|
|
||||||
run: |
|
|
||||||
echo "Event name: ${{ github.event_name }}"
|
|
||||||
echo "Workflow: ${{ github.workflow }}"
|
|
||||||
echo "Workflow ref: ${{ github.workflow_ref }}"
|
|
||||||
echo "Actor: ${{ github.actor }}"
|
|
||||||
echo "Triggering actor: ${{ github.triggering_actor }}"
|
|
||||||
echo "Event path: ${{ github.event_path }}"
|
|
||||||
echo "Repository: ${{ github.repository }}"
|
|
||||||
|
|
||||||
build-if-needed:
|
build-if-needed:
|
||||||
name: Build Packages (if no artifacts provided)
|
name: Build Packages (if no artifacts provided)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: inputs.langflow-version == '' && github.workflow == 'Cross-Platform Installation Test'
|
if: inputs.langflow-version == '' && contains(github.workflow_ref, 'cross-platform-test.yml')
|
||||||
outputs:
|
outputs:
|
||||||
base-artifact-name: ${{ steps.set-names.outputs.base-artifact-name }}
|
base-artifact-name: ${{ steps.set-names.outputs.base-artifact-name }}
|
||||||
main-artifact-name: ${{ steps.set-names.outputs.main-artifact-name }}
|
main-artifact-name: ${{ steps.set-names.outputs.main-artifact-name }}
|
||||||
|
|
@ -379,18 +365,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check test results
|
- name: Check test results
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ needs.test-installation.result }}" != "success" ]; then
|
result="${{ needs.test-installation.result }}"
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
echo "Test installation result: $result"
|
||||||
if [ -n "${{ inputs.langflow-version }}" ]; then
|
|
||||||
echo "❌ PyPI installation tests failed"
|
# Log appropriate message but don't fail for continue-on-error jobs
|
||||||
else
|
if [ "$result" = "success" ]; then
|
||||||
echo "❌ Source build and installation tests failed"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "❌ Cross-platform tests failed - PyPI upload blocked"
|
|
||||||
fi
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||||
if [ -n "${{ inputs.langflow-version }}" ]; then
|
if [ -n "${{ inputs.langflow-version }}" ]; then
|
||||||
echo "✅ PyPI installation tests passed"
|
echo "✅ PyPI installation tests passed"
|
||||||
|
|
@ -400,4 +379,18 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "✅ All cross-platform tests passed - PyPI upload can proceed"
|
echo "✅ All cross-platform tests passed - PyPI upload can proceed"
|
||||||
fi
|
fi
|
||||||
|
elif [ "$result" = "failure" ]; then
|
||||||
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||||
|
if [ -n "${{ inputs.langflow-version }}" ]; then
|
||||||
|
echo "⚠️ PyPI installation tests had failures (some may be continue-on-error)"
|
||||||
|
else
|
||||||
|
echo "⚠️ Source build and installation tests had failures (some may be continue-on-error)"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "⚠️ Cross-platform tests had failures (checking if continue-on-error allows PyPI upload)"
|
||||||
|
fi
|
||||||
|
# Don't exit 1 here - let continue-on-error handle the workflow flow
|
||||||
|
else
|
||||||
|
echo "❌ Cross-platform tests were cancelled or skipped"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue