Commit Graph

356 Commits (4a05679fdb88f662b9953b5ee607ac14170d7193)

Author SHA1 Message Date
Erick Friis d5b4b7e05c
infra: langchain max python 3.11 for resolution (#24729) 2 months ago
Erick Friis 3c3d3e9579
infra: community max python 3.11 for resolution (#24728) 2 months ago
Erick Friis e160b669c8
infra: add unstructured api key to release (#24638) 2 months ago
Eugene Yurtsev 0bb54ab9f0
CI: Temporarily disable min version checking on pull request (#24551)
Short term to fix CI
2 months ago
Erick Friis 1f01c0fd98
infra: remove core from min version pr testing (#24507)
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
2 months ago
Erick Friis f4ee3c8a22
infra: add min version testing to pr test flow (#24358)
xfailing some sql tests that do not currently work on sqlalchemy v1

#22207 was very much not sqlalchemy v1 compatible. 

Moving forward, implementations should be compatible with both to pass
CI
2 months ago
Erick Friis 96ccba9c27
infra: 15s retry wait on test pypi (#24375) 2 months ago
Erick Friis 47ed7f766a
infra: fix release prerelease deps bug (#24323) 2 months ago
Erick Friis 6c3e65a878
infra: prerelease dep checking on release (#23269) 2 months ago
Erick Friis 1d7a3ae7ce
infra: add test deps to add_dependents (#24283) 2 months ago
Erick Friis d002fa902f
infra: fix redundant matrix config (#24151) 2 months ago
Erick Friis bd18faa2a0
infra: add SQLAlchemy to min version testing (#23186)
preventing issues like #22546 

Notes:
- this will only affect release CI. We may want to consider adding
running unit tests with min versions to PR CI in some form
- because this only affects release CI, it could create annoying issues
releasing while I'm on vacation. Unless anyone feels strongly, I'll wait
to merge this til when I'm back
2 months ago
Erick Friis 9de562f747
infra: create individual jobs in check_diff, do max milvus testing in 3.11 (#23829)
pickup from #23721
2 months ago
Erick Friis 34a02efcf9
infra: remove double heading in release notes (#24037) 2 months ago
Bagatur 1e957c0c23
docs: rm discord (#23985) 2 months ago
ccurme e62f8f143f
infra: remove cohere from monorepo scheduled tests (#23846) 3 months ago
Bagatur a0c2281540
infra: update mypy 1.10, ruff 0.5 (#23721)
```python
"""python scripts/update_mypy_ruff.py"""
import glob
import tomllib
from pathlib import Path

import toml
import subprocess
import re

ROOT_DIR = Path(__file__).parents[1]


def main():
    for path in glob.glob(str(ROOT_DIR / "libs/**/pyproject.toml"), recursive=True):
        print(path)
        with open(path, "rb") as f:
            pyproject = tomllib.load(f)
        try:
            pyproject["tool"]["poetry"]["group"]["typing"]["dependencies"]["mypy"] = (
                "^1.10"
            )
            pyproject["tool"]["poetry"]["group"]["lint"]["dependencies"]["ruff"] = (
                "^0.5"
            )
        except KeyError:
            continue
        with open(path, "w") as f:
            toml.dump(pyproject, f)
        cwd = "/".join(path.split("/")[:-1])
        completed = subprocess.run(
            "poetry lock --no-update; poetry install --with typing; poetry run mypy . --no-color",
            cwd=cwd,
            shell=True,
            capture_output=True,
            text=True,
        )
        logs = completed.stdout.split("\n")

        to_ignore = {}
        for l in logs:
            if re.match("^(.*)\:(\d+)\: error:.*\[(.*)\]", l):
                path, line_no, error_type = re.match(
                    "^(.*)\:(\d+)\: error:.*\[(.*)\]", l
                ).groups()
                if (path, line_no) in to_ignore:
                    to_ignore[(path, line_no)].append(error_type)
                else:
                    to_ignore[(path, line_no)] = [error_type]
        print(len(to_ignore))
        for (error_path, line_no), error_types in to_ignore.items():
            all_errors = ", ".join(error_types)
            full_path = f"{cwd}/{error_path}"
            try:
                with open(full_path, "r") as f:
                    file_lines = f.readlines()
            except FileNotFoundError:
                continue
            file_lines[int(line_no) - 1] = (
                file_lines[int(line_no) - 1][:-1] + f"  # type: ignore[{all_errors}]\n"
            )
            with open(full_path, "w") as f:
                f.write("".join(file_lines))

        subprocess.run(
            "poetry run ruff format .; poetry run ruff --select I --fix .",
            cwd=cwd,
            shell=True,
            capture_output=True,
            text=True,
        )


if __name__ == "__main__":
    main()

```
3 months ago
Erick Friis 6019147b66
infra: filter template check (#23727) 3 months ago
Jacob Lee d2c7379f1c
👥 Update LangChain people data (#23697)
👥 Update LangChain people data

---------

Co-authored-by: github-actions <github-actions@github.com>
3 months ago
Jacob Lee 9604cb833b
ci[patch]: Update people PR CI permissions (#23696)
CC @agola11
3 months ago
Bagatur 74321e546d
infra: update release permissions (#23662) 3 months ago
Bagatur f055f2a1e3
infra: install integration deps as needed (#23413) 3 months ago
Bagatur 255ad39ae3
infra: run CI on large diffs (#23192)
currently we skip CI on diffs >= 300 files. think we should just run it
on all packages instead

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
3 months ago
Bagatur 093ae04d58
core[patch]: Pin pydantic in py3.12.4 (#23130) 3 months ago
Bagatur 01783d67fc
core[patch]: Release 0.2.9 (#23091) 3 months ago
Bagatur 5ee6e22983
infra: test all dependents on any change (#22994) 3 months ago
ccurme e09c6bb58b
infra: update integration test workflow (#22945) 3 months ago
ccurme 32966a08a9
infra: remove nvidia from monorepo scheduled tests (#22915)
Scheduled tests run in
https://github.com/langchain-ai/langchain-nvidia/tree/main
3 months ago
Christophe Bornet d04e899b56
ci: add testing with Python 3.12 (#22813)
We need to use a different version of numpy for py3.8 and py3.12 in
pyproject.
And so do projects that use that Python version range and import
langchain.

    - **Twitter handle:** _cbornet
3 months ago
Bagatur 8203c1ff87
infra: lint new docs to match templates (#22786) 3 months ago
Lei Zhang 5ba1899cd7
infra: Scheduled GitHub Actions to run only on the upstream repository (#22707)
**Description:** Scheduled GitHub Actions to run only on the upstream
repository

**Issue:** Fixes #22706 

**Twitter handle:** @coolbeevip
3 months ago
Erick Friis a24a9c6427
multiple: get rid of pyproject extras (#22581)
They cause `poetry lock` to take a ton of time, and `uv pip install` can
resolve the constraints from these toml files in trivial time
(addressing problem with #19153)

This allows us to properly upgrade lockfile dependencies moving forward,
which revealed some issues that were either fixed or type-ignored (see
file comments)
4 months ago
Bagatur 410e9add44
infra: run scheduled tests on aws, google, cohere, nvidia (#22328)
Co-authored-by: Erick Friis <erick@langchain.dev>
4 months ago
Erick Friis 611faa22c7
infra: allow first releases 2 (#22237) 4 months ago
Erick Friis 26c6e4a5ef
infra: allow first releases (#22236) 4 months ago
Erick Friis 6ee8de62c0
infra: auto-generated release notes based on git log (#22141)
Generates release notes based on a `git log` command with title names

Aiming to improve to splitting out features vs. bugfixes using
conventional commits in the coming weeks.

Will work for any monorepo packages
4 months ago
Eugene Yurtsev 63004a0945
codespell ignore remaining issues (#22097) 4 months ago
Bagatur 50186da0a1
infra: rm unused # noqa violations (#22049)
Updating #21137
4 months ago
Eugene Yurtsev 4633b4cf2b
ci: update documentation template to include URL (#22032)
update documentation template to include URL
4 months ago
Erick Friis 98b64f3ae3
infra: only tag core releases as github latest (#21991) 4 months ago
ccurme e8bdf245eb
update maintainers (#21305) 4 months ago
Erick Friis be15740084
fireworks: add secret (#21744) 4 months ago
Erick Friis 1647b28a87
infra: release min version dont clobber current lib (#21740) 4 months ago
Erick Friis c77d2f2b06
multiple: core 0.2 nonbreaking dep, check_diff community->langchain dep (#21646)
0.2 is not a breaking release for core (but it is for langchain and
community)

To keep the core+langchain+community packages in sync at 0.2, we will
relax deps throughout the ecosystem to tolerate `langchain-core` 0.2
4 months ago
Erick Friis 56c6b5868b
infra: run codespell on v0.1 prs (#21545) 4 months ago
ccurme d3ff9c5d6a
infra: turn off fail-fast for standard tests (#21541) 4 months ago
Bagatur b00fd1dbde
infra: Undo gh cache removal (#21210)
Co-authored-by: Nuno Campos <nuno@langchain.dev>
5 months ago
Nuno Campos 663747b730
core[patch]: Fixes for convert_messages (#21207)
- support two-tuples of any sequence type (eg. json.loads never produces
tuples)
- support type alias for role key
- if id is passed in in dict form use it
- if tool_calls passed in in dict form use them

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
5 months ago
Erick Friis 5f8a307565
infra: same tagging for langchain (#21126) 5 months ago
Erick Friis dbdfa3d34e
infra: fix minimum version install to force pypi install (#21112) 5 months ago