Skip to content

Commit

Permalink
Revert "1.1 Upgrade (#6)"
Browse files Browse the repository at this point in the history
This reverts commit 86b35e7.
  • Loading branch information
diogocabral committed Nov 21, 2024
1 parent 86b35e7 commit 3117424
Show file tree
Hide file tree
Showing 1,911 changed files with 89,471 additions and 164,434 deletions.
29 changes: 0 additions & 29 deletions .devcontainer/Dockerfile

This file was deleted.

32 changes: 11 additions & 21 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,40 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
{
"name": "Langflow Dev Container",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:3.10",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/node": {},
"ghcr.io/dhoeric/features/hadolint:1": {}
"ghcr.io/devcontainers-contrib/features/poetry": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "make install_frontend && make install_backend",
"postStartCommand": "make init",

"containerEnv": {
"POETRY_VIRTUALENVS_IN_PROJECT": "true"
},

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"njpwerner.autodocstring",
"oderwat.indent-rainbow",
"exiasr.hadolint",
"actboy168.tasks",
"GitHub.copilot",
"ms-python.python",
"sourcery.sourcery",
"eamodio.gitlens",
"ms-vscode.makefile-tools",
"GitHub.vscode-pull-request-github"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh"
}
}
}
]
}
},
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
"remoteUser": "vscode"
}
25 changes: 0 additions & 25 deletions .github/actions/setup-uv/action.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/changes-filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ python:
- "pyproject.toml"
- "poetry.lock"
- "**/python_test.yml"
components-changes:
- "src/backend/base/langflow/components/**"
starter-projects-changes:
- "src/backend/base/langflow/initial_setup/**"
frontend-tests:
tests:
- "tests/**"
- "src/frontend/tests/**"
frontend:
- "src/frontend/**"
Expand Down
26 changes: 10 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
description: "Frontend Tests Folder"
required: false
type: string
default: "tests/core"
default: "tests/end-to-end"
workflow_dispatch:
inputs:
branch:
Expand All @@ -35,6 +35,7 @@ on:
pull_request:
types: [synchronize, labeled]


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -54,15 +55,14 @@ jobs:
path-filter:
needs: set-ci-condition
if: ${{ needs.set-ci-condition.outputs.should-run-ci == 'true' }}

name: Filter Paths
runs-on: ubuntu-latest
outputs:
python: ${{ steps.filter.outputs.python }}
frontend: ${{ steps.filter.outputs.frontend }}
docs: ${{ steps.filter.outputs.docs }}
frontend-tests: ${{ steps.filter.outputs.frontend-tests }}
components-changes: ${{ steps.filter.outputs.components-changes }}
starter-projects-changes: ${{ steps.filter.outputs.starter-projects-changes }}
tests: ${{ steps.filter.outputs.tests }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -77,15 +77,15 @@ jobs:
test-backend:
needs: path-filter
name: Run Backend Tests
if: ${{ needs.path-filter.outputs.python == 'true'}}
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.tests == 'true' }}
uses: ./.github/workflows/python_test.yml
with:
python-versions: ${{ inputs.python-versions || '["3.10"]' }}

test-frontend:
needs: path-filter
name: Run Frontend Tests
if: ${{ needs.path-filter.outputs.frontend == 'true' || needs.path-filter.outputs.frontend-tests == 'true' || needs.path-filter.outputs.components-changes == 'true' || needs.path-filter.outputs.starter-projects-changes == 'true' }}
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.frontend == 'true' || needs.path-filter.outputs.tests == 'true' }}
uses: ./.github/workflows/typescript_test.yml
with:
tests_folder: ${{ inputs.frontend-tests-folder }}
Expand All @@ -95,9 +95,10 @@ jobs:

lint-backend:
needs: path-filter
if: ${{ needs.path-filter.outputs.python == 'true'}}
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.tests == 'true' }}
name: Lint Backend
uses: ./.github/workflows/lint-py.yml
# Run only if there are python files changed

test-docs-build:
needs: path-filter
Expand All @@ -108,14 +109,7 @@ jobs:
# https://github.com/langchain-ai/langchain/blob/master/.github/workflows/check_diffs.yml
ci_success:
name: "CI Success"
needs:
[
test-backend,
test-frontend,
lint-backend,
test-docs-build,
set-ci-condition,
]
needs: [test-backend,test-frontend,lint-backend,test-docs-build,set-ci-condition]

if: always()
runs-on: ubuntu-latest
Expand All @@ -129,4 +123,4 @@ jobs:
echo $JOBS_JSON
echo $RESULTS_JSON
echo "Exiting with $EXIT_CODE"
exit $EXIT_CODE
exit $EXIT_CODE
45 changes: 0 additions & 45 deletions .github/workflows/codspeed.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/conventional-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: Namchee/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
verbose: true
issue: false

label:
Expand Down
48 changes: 38 additions & 10 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,51 @@ on:
description: "Version to release"
required: true
type: string
ref:
description: "Commit to tag the release"
release_type:
description: "Type of release (base or main)"
required: true
type: string
pre_release:
description: "Pre-release tag"
required: true
type: boolean
type: choice
options:
- base
- main

env:
POETRY_VERSION: "1.8.2"
jobs:
release:
name: Build Langflow
runs-on: ubuntu-latest
outputs:
version: ${{ steps.check-version.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry==${{ env.POETRY_VERSION }}
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Build project for distribution
run: |
if [ "${{ inputs.release_type }}" == "base" ]; then
make build base=true
else
make build main=true
fi
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist${{ inputs.release_type }}
path: ${{ inputs.release_type == 'base' && 'src/backend/base/dist' || 'dist' }}
create_release:
name: Create Release Job
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/download-artifact@v4
with:
name: dist-main
name: dist${{ inputs.release_type }}
path: dist
- name: Create Release Notes
uses: ncipollo/release-action@v1
Expand All @@ -31,6 +59,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
generateReleaseNotes: true
prerelease: ${{ inputs.pre_release }}
prerelease: true
tag: v${{ inputs.version }}
commit: ${{ inputs.ref }}
commit: dev
Loading

0 comments on commit 3117424

Please sign in to comment.