Commit graph

243 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
b811dcc34c
chore: move test-cli job to run separately from unit tests (#2712) 2024-07-15 13:33:30 -07:00
Gabriel Luiz Freitas Almeida
4268ee4d56
chore: Update python_test.yml to include splitCount and group arguments in make unit_tests command (#2709) 2024-07-15 16:13:26 -03:00
Lucas Oliveira
6756ef22b7
fix: added checkout to workflow (#2683) 2024-07-12 16:19:06 -07:00
Lucas Oliveira
e8c67974ab
fix: useless git commands on workflow (#2682) 2024-07-12 16:14:40 -07:00
Lucas Oliveira
f1b71ab353
fix: date on push command on fetch notion workflow (#2681)
Fix date on pull request workflow
2024-07-12 16:01:51 -07:00
Lucas Oliveira
83697fe31f
fix: fetch notion docs workflow origin on push (#2680) 2024-07-12 15:55:24 -07:00
Lucas Oliveira
78da36e8cd
fix: git workflow commands to push to repository (#2679) 2024-07-12 15:50:13 -07:00
Lucas Oliveira
c7944773d5
docs: fix gh workflow date step bad character (#2677) 2024-07-12 15:25:13 -07:00
Lucas Oliveira
f532bbd082
docs: fix gh workflow date step (#2676) 2024-07-12 15:20:17 -07:00
Lucas Oliveira
138552d7b5
docs: api page fix and workflow run fix (#2675)
* Fetched updated docs

* Fixed GitHub workflow for fetching docs
2024-07-12 22:14:28 +00:00
Lucas Oliveira
3aa2513a86
docs: added fetching from notion (#2670)
* Added new Docusaurus instance that fetches automatically from Notion

* Add Github workflow to fetch docs from Notion

* Added legacy peer deps to solve dependency problems

* Fix git ignore and added pages
2024-07-12 22:59:52 +02:00
Gabriel Luiz Freitas Almeida
bab941f3e6
chore: add path for deploying documentation updates (#2671)
chore: Add path for deploying documentation updates
2024-07-12 22:56:52 +02:00
Cristhian Zanforlin Lousa
dc5ac092fb
test: Add Test to Prevent Bug on Output Inspection for Grouped Components (#2667)
* add new test for bug on output inspection + grouped components

* [autofix.ci] apply automated fixes

* 🔧 (typescript_test.yml): increase shard count from 14 to 15 to distribute tests more evenly
🔧 (typescript_test.yml): fix syntax issues in conditional expressions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-12 20:10:00 +00:00
Gabriel Luiz Freitas Almeida
28fa012fd6
chore: update HuggingFace Spaces build script to use correct space name (#2649)
The HuggingFace Spaces build script has been updated to use the correct space name "Langflow/Langflow" instead of "Langflow/Langflow-Preview". This ensures that the correct space is restarted when triggered.
2024-07-11 19:56:33 -03:00
Gabriel Luiz Freitas Almeida
34c1a4d469
fix: add timeout for unit tests workflows (#2613)
fix: add timeout for unit tests and test CLI in Python workflow
2024-07-09 19:08:39 -07:00
Gabriel Luiz Freitas Almeida
6488b0247e
ci: add delete-reports job to delete if all jobs succeed (#2542)
chore: Add conditional step to delete-reports job in TypeScript test workflow
2024-07-05 10:56:27 -03:00
Gabriel Luiz Freitas Almeida
71e3ed92d8
ci: add outputs and conditional step to TypeScript test workflow (#2541)
* feat: Add outputs to TypeScript test workflow

The recent code changes added outputs to the TypeScript test workflow in order to capture the status of the tests. This will allow for better visibility and tracking of test failures.

* chore: Add conditional step to merge-reports job in TypeScript test workflow
2024-07-04 20:59:46 +00:00
Gabriel Luiz Freitas Almeida
05efa58f5e
feat: add auto_merge_enabled to pull_request_target types in conventional-labels.yml (#2539) 2024-07-04 15:24:37 -03:00
Gabriel Luiz Freitas Almeida
f0725ce874
chore: remove unnecessary output in validate-pr job (#2535) 2024-07-04 13:37:15 -03:00
Gabriel Luiz Freitas Almeida
f2d949b64e
feat(PR): add conditions to label pr (#2532)
* chore: update conventional-labeler action to version 2.0.0

* chore: add 'bug' label to fix category in release.yml

* chore(conventional-labels.yml): add 'Validate PR' job to validate pull requests before labeling them
chore(conventional-labels.yml): add 'Label PR' job to label pull requests after validation is successful

* chore(conventional-labels.yml): update conditional statement in Label PR job to exclude Bot users from linting and only run if PR validation is successful

* chore(conventional-labels.yml): update type_labels mapping to align with conventional commit keywords for better labeling in GitHub actions.

* fix(conventional-labels.yml): run workflow only on editing the PR

* chore(conventional-labels.yml): do not require an issue reference
2024-07-04 08:11:37 -07:00
Gabriel Luiz Freitas Almeida
238497d900
ci: add GitHub Actions workflow for labeling PRs with Conventional Commits (#2522)
* feat: Add GitHub Actions workflow for labeling PRs with Conventional Commits

* feat(release.yml): add release.yml file with predefined categories for changelog to improve consistency and clarity in release notes

* style(release.yml): change 'perf' label to 'performance' for better clarity and consistency across labels in changelog section
2024-07-04 10:38:47 -03:00
Gabriel Luiz Freitas Almeida
fd9664fd51
ci: update autofix workflows (#2521)
* chore: update py_autofix.yml workflow to run Ruff Check and Format

* ci(js_autofix.yml): remove unnecessary pull request types to trigger workflow only on changes in src/frontend directory
2024-07-04 14:23:58 +02:00
Cristhian Zanforlin Lousa
8980e75723
bugfix: fix api request custom component (#2470)
* bugfix: fix api request custom component

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-04 05:05:22 -07:00
Cristhian Zanforlin Lousa
fb21fdda5e
fix: spec files cant find .env variable on CI (#2514)
* bugfix: add env import to spec files correctly

* 🔧 (ci.yml): fix indentation for consistency and readability in CI workflow

* ci: add inputs to workflow

* bugfix: improve flaky test general bugs to run smoothier on CI

* ci: add more shards to improve tests on CI
2024-07-04 01:36:07 +00:00
Gabriel Luiz Freitas Almeida
a3bf1c4502
ci: update CI workflows and add CI workflow (#2498)
* chore(workflows): update lint-js.yml and lint-py.yml workflows to include support for workflow_call and workflow_dispatch events with optional branch input for checkout

* chore(docs_test.yml): update workflow triggers to include workflow_call and workflow_dispatch events

* ci(python_test.yml): update workflow to trigger on workflow_dispatch event and add support for optional branch input parameter to checkout specific branch for testing

* chore(typescript_test.yml): remove unnecessary pull_request event types to streamline workflow configuration

* feat(ci.yml): add CI workflow for automated testing and linting of backend, frontend, and documentation code

* chore: update release.yml to include CI workflow for automated testing and linting

* chore(typescript_test.yml): remove unnecessary 'if: always()' condition from merge-reports job

* chore(ci): add typescript_test.yml to the list of files included in the frontend job for CI workflow

* chore(ci.yml): fix typo in file path for typescript_test.yml in the frontend job of CI workflow

* chore(ci.yml): update path-filter job in CI workflow to include frontend tests and fix typo in file path for typescript_test.yml

* chore(ci.yml): add concurrency configuration to improve workflow efficiency

fix(ci.yml): include tests output in the filter paths job to run frontend tests when needed

* chore(ci.yml): update CI workflow to remove lint-frontend job

* chore(ci.yml): restructure CI workflow to improve readability and maintainability
feat(ci.yml): add separate jobs for frontend tests, backend linting, and docs build to enhance testing coverage
feat(ci.yml): introduce a final job 'CI Success' to check the status of all previous jobs and provide a summary of the CI pipeline execution

* ci(ci.yml): add dependencies between jobs to ensure proper execution order and avoid unnecessary runs

* chore(ci.yml): reformat YAML file for better readability and consistency in indentation
feat(ci.yml): add support for running backend tests, frontend tests, linting backend code, and testing docs build in CI workflow
feat(ci.yml): introduce a final step 'CI Success' to check the status of all previous jobs and exit with appropriate code based on their results

* chore(ci.yml): Remove concurrency configuration and cancel-in-progress option from lint-js, lint-py, python_test, and style-check-py workflows

* chore(ci.yml): Update pull_request event types in js_autofix.yml workflow to remove auto_merge_enabled

* chore: Remove concurrency configuration and cancel-in-progress option from typescript_test.yml workflow

* refactor: change add store key inside test

* ♻️ (tests): remove hardcoded API key and use environment variable
 (tests): add environment variable check to skip tests if not set

*  (store-shard-2.spec.ts): add test skip condition for STORE_API_KEY
 (store-shard-2.spec.ts): implement test for sharing component with API key

*  (store-shard-2.spec.ts): update navigation step in end-to-end test to click "My Collection" instead of going to home page

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2024-07-03 08:24:35 -07:00
Gabriel Luiz Freitas Almeida
15ae185ead
chore: update cancel-in-progress flag in Python and TypeScript test workflows (#2492) 2024-07-02 14:21:29 -07:00
Gabriel Luiz Freitas Almeida
dd5951f949
ci: update test job in release.yml to include both Typescript and Python tests (#2490)
chore: update test job in release.yml to include both Typescript and Python tests
2024-07-02 13:05:26 -07:00
Gabriel Luiz Freitas Almeida
8d1e4ff059
ci: add 'test' job to run Typescript and Python tests (#2489)
* chore: update workflow_dispatch in Python and TypeScript test workflows

* feat(release.yml): add a new 'test' job to run Typescript and Python tests before releasing Langflow Main to ensure code quality and stability. Update dependencies to include Typescript and Python test workflows.
2024-07-02 12:40:57 -07:00
Nicolò Boschi
2787bec4fb
ci: skip tests with openai key required (#2477)
* ci: skip tests with openai key required

* ci: skip tests with openai key required

* ci: skip tests with openai key required

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-02 06:20:13 -07:00
Gabriel Luiz Freitas Almeida
26a71e1c36
ci: add auto_merge_enabled to PR activity types and concurrency settings (#2471)
* ci: add auto_merge_enabled to pr activity types

* fix  (auto-update.yml): remove 'dev' branch from trigger to run workflow on 'main' branch pushes only

fix (js_autofix.yml): remove unnecessary push trigger for 'main' branch in workflow to run on specific file changes only

* ci: Update concurrency settings in CI workflows
2024-07-01 18:45:15 -07:00
Gabriel Luiz Freitas Almeida
4dda82609e
ci: remove merge_group from workflows (#2467)
Remove the merge_group configuration from the workflows to simplify the CI pipeline.
2024-07-01 15:03:23 -07:00
Nicolò Boschi
f2bf62e284
ci: fix mypy checks (#2431)
* ci: fix mypy

* ci: fix mypy

* ci: fix mypy

* run fe checks

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 14:42:14 -07:00
Gabriel Luiz Freitas Almeida
6259269105
ci: add lint commit workflow for pull requests (#2463)
* chore: Add lint commit workflow for pull requests

* chore: Update commit message prefix and include scope for dependabot.yml

* ci: remove pr-checker

* chore: Update commitlint-github-action to version 5

* chore: Remove lint-commit workflow and add semantic.yml configuration
2024-07-01 14:33:49 -07:00
Gabriel Luiz Freitas Almeida
8bcba2d414
chore: Update ruff command in py_autofix.yml to use 'ruff check' before 'ruff --fix-only' (#2461) 2024-07-01 12:36:06 -07:00
Gabriel Luiz Freitas Almeida
4a13afc13b
Merge branch 'main' into dependabot/github_actions/install-pinned/ruff-b52a71f70b28264686d57d1efef1ba845b9cec6c 2024-07-01 15:31:37 -03:00
dependabot[bot]
2a98346740
chore(deps): bump install-pinned/ruff
Bumps [install-pinned/ruff](https://github.com/install-pinned/ruff) from 6b463d795ce39011cc004438ae507ae56235e12a to b52a71f70b28264686d57d1efef1ba845b9cec6c.
- [Release notes](https://github.com/install-pinned/ruff/releases)
- [Commits](6b463d795c...b52a71f70b)

---
updated-dependencies:
- dependency-name: install-pinned/ruff
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 13:58:41 +00:00
Gabriel Luiz Freitas Almeida
e7239f9a7a chore: Update branch checkout description in TypeScript test workflow 2024-06-30 11:22:53 -03:00
cristhianzl
224d447f6b chore: Add branch input parameter to Frontend Tests workflow 2024-06-28 12:05:48 -03:00
cristhianzl
04277fae7e merge dev into branch 2024-06-27 15:16:21 -03:00
Gabriel Luiz Freitas Almeida
adb674355a
Reactivate frontend tests (#2403)
🔧 (typescript_test.yml): Update job name to "Run Playwright Tests" for
clarity and consistency
🔧 (typescript_test.yml): Remove unnecessary 'ref' input from
'actions/checkout' step
2024-06-27 13:33:15 +00:00
Gabriel Luiz Freitas Almeida
7b12a4b3be 🔧 (typescript_test.yml): Add step to get Playwright version and cache Playwright binaries based on the version for better dependency management
🔧 (typescript_test.yml): Update job name to "Run Playwright Tests" for clarity and consistency
🔧 (typescript_test.yml): Remove unnecessary 'ref' input from 'actions/checkout' step
2024-06-27 09:56:08 -03:00
Gabriel Luiz Freitas Almeida
f2fa0be2d0 ⬆️ (typescript_test.yml): upgrade Poetry version from 1.8.2 to 1.8.3 for testing purposes 2024-06-27 09:54:00 -03:00
Gabriel Luiz Freitas Almeida
c3d84dd50d 🔧 (typescript_test.yml): update workflow trigger from workflow_dispatch to pull_request and merge_group to improve workflow automation and efficiency 2024-06-27 09:53:39 -03:00
Gabriel Luiz Freitas Almeida
cfa59a1d52
Merge branch 'dev' into cz/fixTestsCI 2024-06-27 05:08:58 -07:00
Gabriel Luiz Freitas Almeida
f499e257f9
Merge main into dev (#2400)
* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* Refactor "created_at" column type for consistency and fix cancel middleware (#2316)

* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* refactor: update "created_at" column type to use the "sa" module for consistency

* Update README.md

Add 1.0 banner

* chore: Remove unused import in ToolCallingAgent.py

* fix: adapt RequestCancelledMiddleware to handle cancelled requests

* chore: Remove unused import in test_helper_components.py

* refactor: Declare queue variable with explicit type in RequestCancelledMiddleware

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>

* chore: Update AstraDB.py imports and method signature for search_documents

* chore: Update package versions in pyproject.toml files

* chore: Update run-name in release.yml for Langflow Release

* fix: add call to _add_documents_to_vector_store in AstraDB component

* chore: Fix missing parentheses in RequestCancelledMiddleware

* chore: Update pydantic-settings and tenacity versions

The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.

* Update README.md

Add 1.0 banner

* fix fetch data to work even with autologin true

* format code

* deactivate stop button until we have a better solution (#2337)

* chore: Update authContext imports and remove duplicate imports

* Refactor telemetry service payload field names for consistency

* chore: Update package versions in pyproject.toml files

* chore: Update release.yml to use the correct branch for the commit

* added firecrawl integration

* chore: Rename Kubernetes documentation file to use .md extension

* components: simplify astra vectorize

* components: simplify astra vectorize

* Cassandra: support for non-AstraDB databases

* chore: Add GitHub workflows for JavaScript and Python autofix

This commit adds GitHub workflows for JavaScript and Python autofix. The JavaScript workflow is triggered on pull requests and pushes to the main branch, specifically for changes in the "src/frontend" directory. It checks out the code, sets up Node.js, caches Node.js dependencies, installs Node.js dependencies, and runs Prettier for code formatting. The Python workflow is also triggered on pull requests and pushes to the main branch, but for changes in the "poetry.lock", "pyproject.toml", "src/backend", and "tests" directories. It checks out the code, installs Ruff, and runs Mypy for type checking and code formatting.

* chore: Update GitHub workflow to run Ruff Check

* ci: always run required checks (#2395)

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com>
Co-authored-by: Nicolò Boschi <boschi1997@gmail.com>
2024-06-27 05:06:10 -07:00
Gabriel Luiz Freitas Almeida
0e7f4ff37c
Merge branch 'dev' into cz/fixTestsCI 2024-06-27 04:33:29 -07:00
Gabriel Luiz Freitas Almeida
e7f1b9c881
Update dockerfiles and docker-build.yml (#2389)
* chore: Update docker-build.yml to disable pre-release by default

* chore: Update Dockerfiles to set LANGFLOW_HOST and LANGFLOW_PORT

The Dockerfiles have been updated to set the environment variables LANGFLOW_HOST and LANGFLOW_PORT. This ensures that the correct host and port are used when running the langflow application.

* 🔧 (build_and_push_backend.Dockerfile): remove unnecessary host and port configuration to simplify the Dockerfile and focus on backend-only functionality

* chore: Update LANGFLOW_CONFIG_DIR in docker-compose.yml

The LANGFLOW_CONFIG_DIR environment variable in docker-compose.yml has been updated to /app/langflow. This change ensures that the correct directory is used for storing logs, file storage, monitor data, and secret keys.
2024-06-27 04:24:35 -07:00
Nicolò Boschi
bcf5807262
ci: always run required checks (#2395) 2024-06-27 04:22:17 -07:00
cristhianzl
65ea7bede3 Merge branch 'cz/fixTestsCI' of https://github.com/logspace-ai/langflow into cz/fixTestsCI 2024-06-27 02:57:20 -03:00
cristhianzl
f26ba492a4 add more shard and break store tests in 2 2024-06-27 02:57:02 -03:00