1
0
mirror of synced 2025-12-20 10:32:35 -05:00
Commit Graph

1266 Commits

Author SHA1 Message Date
Baz
0c237d81d0 🐛 [CDK, Declarative Source]: fix bug when type is missing for anyOf in nested arrays (#40667) 2024-07-08 10:09:02 +03:00
Augustin
1eac62ff3f airbyte-cdk: run poetry check in CI (#39404) 2024-07-05 15:35:37 -07:00
aldogonzalez8
cb6f2c51b3 🤖 minor bump Python CDK to version 2.3.0 2024-07-05 15:52:37 +00:00
aldogonzalez8
2106854ebc 🤖 minor bump Python CDK to version 2.2.0 2024-07-05 15:29:14 +00:00
Cristina Mariscal
a8e985b7a0 Revert "CDK: Add jinja macro format_datetime_string" (#40747) 2024-07-05 15:04:32 +00:00
aldogonzalez8
c3fe18ea9d 🤖 minor bump Python CDK to version 2.1.0 2024-07-05 14:33:38 +00:00
Aldo Gonzalez
1422786282 feat(Airbyte CDK): add with_json_schema method to ConfiguredAirbyteStreamBuilder (#40737) 2024-07-05 08:27:57 -06:00
Cristina Mariscal
b9c213a473 CDK: Add jinja macro format_datetime_string (#40744) 2024-07-05 13:19:43 +00:00
Natik Gadzhi
4a06230436 feat(python cdk): Allow regex_search in jinja interpolations (#40696)
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2024-07-03 23:21:51 +00:00
Boris Staal
6dd9b7ab25 chore(cdk): Avoid using time.sleep in unit tests for backoff of http stream (#40239)
Co-authored-by: Alexandre Girard <alexandre@airbyte.io>
2024-07-02 11:47:56 -07:00
Maxime Carbonneau-Leclerc
2b7ef3fb25 Validate error handler fallback (#40570)
Co-authored-by: Serhii Lazebnyi <serhii.lazebnyi@globallogic.com>
2024-06-27 17:03:03 -04:00
Boris Staal
4f6c29a9ca chore(cdk): @deprecated for experimental classes made more explicit and filtered in tests (#40240) 2024-06-26 18:15:41 -07:00
erohmensing
7cfb9e9d11 🤖 major bump Python CDK to version 2.0.0 2024-06-21 00:00:47 +00:00
Ella Rohm-Ensing
fc12432305 airbyte-cdk: only update airbyte-protocol-models to pydantic v2 (#39524)
## What

Migrating Pydantic V2 for Protocol Messages to speed up emitting records. This gives us 2.5x boost over V1. 

Close https://github.com/airbytehq/airbyte-internal-issues/issues/8333

## How
- Switch to using protocol models generated for pydantic_v2, in a new (temporary) package, `airbyte-protocol-models-pdv2` .
- Update pydantic dependency of the CDK accordingly to v2.
- For minimal impact, still use the compatibility code `pydantic.v1` in all of our pydantic code from airbyte-cdk that does not interact with the protocol models.

## Review guide
1. Checkout the code and clear your CDK virtual env (either `rm -rf .venv && python -m venv .venv` or `poetry env list; poetry env remove <env>`. This is necessary to fully clean out the `airbyte_protocol` library, for some reason. Then: `poetry lock --no-update && poetry install --all-extras`. This should install the CDK with new models. 
2. Run unit tests on the CDK
3. Take your favorite connector and point it's `pyproject.toml` on local CDK (see example in `source-s3`) and try running it's tests and it's regression tests.

## User Impact

> [!warning]
> This is a major CDK change due to the pydantic dependency change - if connectors use pydantic 1.10, they will break and will need to do similar `from pydantic.v1` updates to get running again. Therefore, we should release this as a major CDK version bump.

## Can this PR be safely reverted and rolled back?
- [x] YES 💚
- [ ] NO 

Even if sources migrate to this version, state format should not change, so a revert should be possible.

## Follow up work - Ella to move into issues

<details>

### Source-s3 - turn this into an issue
- [ ] Update source s3 CDK version and any required code changes
- [ ] Fix source-s3 unit tests
- [ ] Run source-s3 regression tests
- [ ] Merge and release source-s3 by June 21st

### Docs
- [ ] Update documentation on how to build with CDK 

### CDK pieces
- [ ] Update file-based CDK format validation to use Pydantic V2
  - This is doable, and requires a breaking change to change `OneOfOptionConfig`. There are a few unhandled test cases that present issues we're unsure of how to handle so far.
- [ ] Update low-code component generators to use Pydantic V2
  - This is doable, there are a few issues around custom component generation that are unhandled.

### Further CDK performance work - create issues for these
- [ ] Research if we can replace prints with buffered output (write to byte buffer and then flush to stdout)
- [ ] Replace `json` with `orjson`
...

</details>
2024-06-21 01:53:44 +02:00
Augustin
6d42ecafb0 Augustin/protocolv2 (#39863)
## What
<!--
* Describe what the change is solving. Link all GitHub issues related to this change.
-->

Separate out the `datamodel-codegen` workflow into a dagger workflow. This enables us to, upstack, properly generate the same v1 models as previously. Unfortunately datamodel-codegen's "pydantic v1" output on its v2 versions doesn't output what one would expect - see [issue](https://github.com/koxudaxi/datamodel-code-generator/issues/1950) (thanks AJ!). 

## How
<!--
* Describe how code changes achieve the solution.
-->
* Convert the script from bash to python (in dagger) and run it via a shell script (to install dagger)

## User Impact
<!--
* What is the end result perceived by the user?
* If there are negative side effects, please list them. 
-->
None. Development experience is also the same

## Can this PR be safely reverted and rolled back?
<!--
* If unsure, leave it blank.
-->
- [x] YES 💚
- [ ] NO 
2024-06-21 01:36:43 +02:00
lazebnyi
2ae1e4c2a1 🤖 minor bump Python CDK to version 1.8.0 2024-06-19 23:16:59 +00:00
Serhii Lazebnyi
a284676a4d feat(airbyte-cdk): add DatetimeIntervalCursor (#39603) 2024-06-20 01:11:13 +02:00
maxi297
9f95601317 🤖 patch bump Python CDK to version 1.7.3 2024-06-19 14:39:39 +00:00
maxi297
0673e8e01b 🤖 patch bump Python CDK to version 1.7.2 2024-06-19 14:03:14 +00:00
maxi297
fbc4ebbf61 🤖 patch bump Python CDK to version 1.7.1 2024-06-19 13:32:18 +00:00
Maxime Carbonneau-Leclerc
0386ca21ae Exclude airbyte-cdk modules from schema discovery (#39586) 2024-06-19 09:29:45 -04:00
artem1205
58b7b7faa6 🤖 minor bump Python CDK to version 1.7.0 2024-06-19 09:25:30 +00:00
artem1205
d4492f171b 🤖 minor bump Python CDK to version 1.6.0 2024-06-19 09:15:20 +00:00
Artem Inzhyyants
f49c8054ad feat(airbyte-cdk): add json_schema from ConfiguredCatalog to Stream (#39522)
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
2024-06-19 11:12:33 +02:00
maxi297
a026ee203d 🤖 patch bump Python CDK to version 1.5.6 2024-06-19 03:25:14 +00:00
maxi297
ad0abea35e 🤖 patch bump Python CDK to version 1.5.5 2024-06-19 01:57:28 +00:00
maxi297
dc30e1cfd3 🤖 patch bump Python CDK to version 1.5.4 2024-06-19 01:50:28 +00:00
Maxime Carbonneau-Leclerc
5b4bd3485d Allow access to _partition for source-jira (#39576) 2024-06-18 21:47:30 -04:00
maxi297
92d48432c1 🤖 patch bump Python CDK to version 1.5.3 2024-06-18 21:29:40 +00:00
Maxime Carbonneau-Leclerc
ad5d2b48a2 Ensure error message is the same after migration to HttpClient (#39565) 2024-06-18 17:26:48 -04:00
maxi297
94067de9c1 🤖 patch bump Python CDK to version 1.5.2 2024-06-18 17:02:24 +00:00
Maxime Carbonneau-Leclerc
7d56e19ac7 Improve error message on state initialization (#39553) 2024-06-18 12:58:11 -04:00
artem1205
7c29e4b66e 🤖 patch bump Python CDK to version 1.5.1 2024-06-18 09:38:45 +00:00
Artem Inzhyyants
46f8d4e2fc fix(airbyte-cdk): client_side_incremental fix end_datetime comparison (#38874)
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
2024-06-18 11:35:42 +02:00
pnilan
77af422fcc 🤖 minor bump Python CDK to version 1.5.0 2024-06-18 01:05:35 +00:00
Patrick Nilan
18e82d949a [airbyte-cdk] - Integrate HttpClient into HttpRequester (#38906) 2024-06-18 01:03:15 +00:00
Patrick Nilan
7a639660cf [airbyte-cdk] Updates Low Code CDK ErrorHandlers and BackoffStrategies to align with Python CDK Interfaces (#38743) 2024-06-17 17:41:14 -07:00
tolik0
60f24cafd0 🤖 minor bump Python CDK to version 1.4.0 2024-06-14 19:56:27 +00:00
Anatolii Yatsuk
258603e907 low-code: Add Incremental Parent State Handling to SubstreamPartitionRouter (#38211) 2024-06-14 10:57:42 -07:00
maxi297
1900f07a41 🤖 patch bump Python CDK to version 1.3.3 2024-06-11 14:21:10 +00:00
Maxime Carbonneau-Leclerc
9b1d7205f3 Add discover to entrypoint wrapper (#39396) 2024-06-11 10:18:31 -04:00
lazebnyi
4d775df68f 🤖 patch bump Python CDK to version 1.3.2 2024-06-10 16:20:04 +00:00
Serhii Lazebnyi
4e91046af1 [airbyte-cdk]: add condition to check type retriever (#39309) 2024-06-10 17:08:50 +02:00
Gergely Imreh
d55995deb5 [cdk]: correctly raise unsupported logical type errors when parsing avro (#36888)
Co-authored-by: Natik Gadzhi <natik@respawn.io>
2024-06-06 04:17:02 +00:00
Natik Gadzhi
2d926cf7b9 [airbyte-cdk] Removed unused script file remove-default-paginator-url-base.sh (#38887) 2024-06-05 18:36:52 -07:00
natikgadzhi
a6326a62e7 🤖 patch bump Python CDK to version 1.3.1 2024-06-05 21:04:32 +00:00
Natik Gadzhi
5c9115b0b7 [airbyte-cdk] Use jinja.sandbox.SandboxEnvironment to restrict InterpolatedString (#39130) 2024-06-05 14:01:07 -07:00
tolik0
2e2571d23c 🤖 minor bump Python CDK to version 1.3.0 2024-06-05 13:10:42 +00:00
Anatolii Yatsuk
2da71a3707 feat(low-code): add new format float_s (#38869)
Co-authored-by: Alexandre Girard <alexandre@airbyte.io>
2024-06-05 12:34:20 +03:00
natikgadzhi
bc8c980f05 🤖 patch bump Python CDK to version 1.2.1 2024-06-03 20:10:42 +00:00