1
0
mirror of synced 2026-01-17 12:07:50 -05:00
Commit Graph

941 Commits

Author SHA1 Message Date
Anne
e7cc086394 Turn on auto-detect schema env variable (#21814)
* Turn on auto-detect schema env variable
Co-authored-by: Edmundo Ruiz Ghanem <168664+edmundito@users.noreply.github.com>
2023-01-25 13:39:15 -08:00
Evan Tahler
e39ee94b8c Pass allowedHosts to container runners (#21676)
* Pass allowed hosts to Process Factories and log

* fix loading method

* github allowed hosts

* StringSubstitutor

* lint

* ConfigReplacerTest class + tests

* tests are private
2023-01-24 16:55:51 -08:00
Octavia Squidington III
b9de100058 Bump Airbyte version from 0.40.28 to 0.40.29 (#21767)
Co-authored-by: lmossman <lmossman@users.noreply.github.com>
2023-01-23 23:22:45 -08:00
Anne
1fba39a6bf Uncomment auto detect schema (#21731) 2023-01-23 19:41:44 +00:00
Benoit Moriceau
b8d54717fb Fix an npe on a sort fuction (#21685)
* Fix an npe on a sort fuction

* Format

* Fix build
2023-01-23 16:50:43 +00:00
Anne
6026465c52 Remove jobPersistence dependency (#21625)
* Remove JobPersistence from ConfigFetchActivityImpl
2023-01-20 16:32:23 -08:00
Anne
0906ea8d4a Revert uncommenting auto detect schema in sync workflow (#21614)
* Revert uncommenting auto detect schema in sync workflow
2023-01-19 11:38:04 -08:00
Pedro S. Lopez
b24d575903 feat: return whether configuration was updated as part of api response (#21466)
* wip: return whether configuration was updated

* updated outputs working

* fix pmd

* update description, format

* add didUpdateConfiguration to metadata, rm unneeded generics

* add didUpdateConfiguration to api response

* update name to fix pmd

* not required

* rename to match api response

* remove unused field

* match naming
2023-01-18 18:00:37 +00:00
Charles
9415eb55cb add attempt metrics (#21286) 2023-01-17 16:13:06 -08:00
Anne
dd0e83e135 Add back in Auto detect schema functionality in sync workflow (#21361)
* Add back in Auto detect schema functionality in sync workflow
2023-01-17 12:06:02 -08:00
Octavia Squidington III
02e0258948 Bump Airbyte version from 0.40.27 to 0.40.28 (#21359)
Co-authored-by: lmossman <lmossman@users.noreply.github.com>
2023-01-12 16:47:07 -08:00
Benoit Moriceau
954ca75517 Avoid parsing a message if this message is too big (#21090)
* Tmp

* Format

* TMP

* TMP

* Inject max memory

* Clean up

* Improve error message

* PR comments

* Unrelated changes

* Fix pmd
2023-01-12 16:20:10 -08:00
Augustin
2dc5b2f818 airbyte-common-workers: Collect trace message on failed connection_status (#20721) 2023-01-12 21:49:21 +00:00
Jonathan Pearlin
7676af5f5f Migrate airbyte-bootloader to Micronaut (#21073)
* Migrate airbyte-bootloader to Micronaut

* PR feedback

* More PR feedback

* Rename variable for clarity

* Add properties to support cloud

* Formatting

* Use default values for env vars

* Re-organization to support cloud overrides

* Disable conditional logging

* More singleton cleanup

* test: try CI without fluentbit

* Revert "test: try CI without fluentbit"

This reverts commit 8fa0f74106.

* test: enable SSH on EC2 runner

* Revert "test: enable SSH on EC2 runner"

This reverts commit e4867aae09.

* Avoid early database connection on startup

* Fix compile issues from refactor

* Formatting

Co-authored-by: perangel <perangel@gmail.com>
2023-01-12 09:47:25 -05:00
Jonathan Pearlin
e571b2bfd5 Upgrade to Micronaut 3.8.0 and related dependencies (#21077)
* Upgrade to Micronaut 3.8.0 and related dependencies

* Define hostname/subdomain to be compatible with updated AWS SDK

* Use bucket name for hostname

* Pin dependencies to avoid behavior change

* Add comment
2023-01-11 10:40:29 -05:00
Cole Snodgrass
afaf2d1bb2 convert EnvVariableFeatureFlag to an injected dependency (#21171)
* inject feature-flag client into integration-launcher

* inject feature-flag client into message-tracker

* inject feature-flag client into DefaultAirbyteSource

* missed reference in message-tracker
2023-01-10 08:59:02 -08:00
Benoit Moriceau
9adb63cc0b Revert "Revert Convert the server to micronaut" (#21133)
* Revert "Revert "Convert the server to micronaut (#19194)" (#21132)"

This reverts commit 31c65f8eea.

* Fix the cors

* Fix cloud
2023-01-09 10:52:19 -08:00
Benoit Moriceau
3c52168f80 Remove the quarantine status (#21088)
* Rm temporal version

* Remove temporal version

* Update the replayed workflow

* Remove quarantine information
2023-01-06 15:46:45 -08:00
Octavia Squidington III
00fb4bba09 Bump Airbyte version from 0.40.26 to 0.40.27 (#21135)
Co-authored-by: lmossman <lmossman@users.noreply.github.com>
2023-01-06 14:27:01 -08:00
Davin Chia
f3ec113036 Remerge Progress Bar Read API. (#21124)
Let's try #20937 again, this time with better test for error cases.

See original PR for description.

This PR adds testing and logic to handle empty/bad job input.
2023-01-06 14:19:41 -08:00
Benoit Moriceau
31c65f8eea Revert "Convert the server to micronaut (#19194)" (#21132)
This reverts commit 0b153d11f9.
2023-01-06 15:08:22 -06:00
Pedro S. Lopez
01e256f579 process config control messages during check and discover (#20894)
* track latest config message

* pass new config as part of outputs

* persist new config

* persist config as the messages come through, dont set output

* clean up old implementation

* accept control messages for destinations

* get api client from micronaut

* mask instance-wide oauth params when updating configs

* defaultreplicationworker tests

* formatting

* tests for source/destination handlers

* rm todo

* refactor test a bit to fix pmd

* fix pmd

* fix test

* add PersistConfigHelperTest

* update message tracker comment

* fix pmd

* format

* move ApiClientBeanFactory to commons-worker, use in container-orchestrator

* pull out config updating to separate methods

* add jitter

* rename PersistConfigHelper -> UpdateConnectorConfigHelper, docs

* fix exception type

* fmt

* move message type check into runnable

* formatting

* pass api client env vars to container orchestrator

* pass micronaut envs to container orchestrator

* print stacktrace for debugging

* different api host for container orchestrator

* fix default env var

* format

* fix errors after merge

* set source and destination actor id as part of the sync input

* fix: get destination definition

* fix null ptr

* remove "actor" from naming

* fix missing change from rename

* revert ContainerOrchestratorConfigBeanFactory changes

* inject sourceapi/destinationapi directly rather than airbyteapiclient

* UpdateConnectorConfigHelper -> ConnectorConfigUpdater

* rm log

* fix test

* dont fail on config update error

* process control messages for discover jobs

* process control messages for CHECK

* persist config updates on check_connection_for_update

* get last config message rather than first

* fix pmd

* fix failing tests

* add tests

* source id not required for check connection (create case)

* suppress pmd warning for BusyWait literal

* source id not required for checkc onnection (create case) (p2)

* pass id, not full config to runnables/accept control message

* add new config required for api client

* add test file

* remove debugging logs

* rename method (getLast -> getMostRecent)

* rm version check (re-added this in by mistake on merge)

* fix test compatibility

* simplify
2023-01-06 15:24:24 -04:00
Jonathan Pearlin
31c28f5956 Use explicit configuration for Micronaut endpoints (#20759) 2023-01-06 14:16:36 -05:00
Benoit Moriceau
0b153d11f9 Convert the server to micronaut (#19194)
* Extract Operation API

* Extract scheduler API

* Format

* extract source api

* Extract source definition api

* Add path

* Extract State API

* extract webbackend api

* extract webbackend api

* extract workspace api

* Extract source definition specification api

* Remove configuration API

* tmp

* Checkstyle

* tmp

* tmp

* Inject but don't resolve Bean

* tmp

* Tmp

* fix build

* TMP

* Tmp

* Clean up

* better thread pool

* Change port to 8080

* Fix port

* Rm unused

* Cors filter

* Format

* rename

* Tmp

* Config based

* Rm health controller ref

* tmp

* Pool size

* Mock healthcheck

* Revert "Mock healthcheck"

This reverts commit 466677636b.

* Revert "Revert "Mock healthcheck""

This reverts commit 267094ae14.

* Restore health check

* Tmp

* format

* Rm deprecated

* Fix PMD

* Tmp

* Fix proxy test

* Remove useless annotation

* set auto commit as false

* Clean up and PR comments

* Bmoric/convert attempt micronaut (#19847)

* tmp

* Fix build

* tmp

* Tmp

* tmp

* tmp

* Tmp

* tmp

* tmp

* Clean up

* Comments and banner

* Non related files

* rm tmp

* Fix build

* Format

* Hit the micronaut server directly

* micronaut OperationApiController (#20270)

* micronaut OperationApiController

* pass micronaut client to OperationApi

* Bmoric/convert connection micronaut (#20211)

* tmp

* Fix build

* tmp

* Tmp

* tmp

* tmp

* Tmp

* tmp

* tmp

* Clean up

* tmp

* Convert Connection Api Controller

* PR Comments

* convert openapiapicontroller to micronaut (#20258)

* convert openapiapicontroller to micronaut

* merge health/openapi locations into one entry

* Fix build

* Format

* Remove media type

* Format

Co-authored-by: Cole Snodgrass <cole@airbyte.io>

* Bmoric/convert destination controller micronaut (#20269)

* tmp

* Fix build

* tmp

* Tmp

* tmp

* tmp

* Tmp

* tmp

* tmp

* Clean up

* tmp

* Convert Connection Api Controller

* Tmp

* PR Comments

* convert openapiapicontroller to micronaut (#20258)

* convert openapiapicontroller to micronaut

* merge health/openapi locations into one entry

* Fix bean

* Add JsonSchemaValidator as a Bean

* Fix build

* Format

* Format

* Test fix

* Pr comments

* Remove media type

* Format

* Remove media type

* Format

* format

* Add missing airbyte api client

Co-authored-by: Cole Snodgrass <cole@airbyte.io>

* Bmoric/convert destination definition controller micronaut (#20277)

* tmp

* Fix build

* tmp

* Tmp

* tmp

* tmp

* Tmp

* tmp

* tmp

* Clean up

* tmp

* Convert Connection Api Controller

* Tmp

* PR Comments

* convert openapiapicontroller to micronaut (#20258)

* convert openapiapicontroller to micronaut

* merge health/openapi locations into one entry

* Fix bean

* Add JsonSchemaValidator as a Bean

* Fix build

* Format

* Format

* Test fix

* Pr comments

* Remove media type

* Format

* Remove media type

* Format

* Remove media type

* Format

* api client

* missing annotation

* format

Co-authored-by: Cole Snodgrass <cole@airbyte.io>

* convert StateApiController to Micronaut (#20329)

* convert to micronaut

* nginx updates

* format

* Move dest oauth to micronaut (#20318)

* tmp

* Fix build

* tmp

* Tmp

* tmp

* tmp

* Tmp

* tmp

* tmp

* Clean up

* tmp

* Convert Connection Api Controller

* PR Comments

* convert openapiapicontroller to micronaut (#20258)

* convert openapiapicontroller to micronaut

* merge health/openapi locations into one entry

* Fix build

* Format

* Remove media type

* Format

* Move dest oauth to micronaut

* Pr comments

* format

Co-authored-by: Cole Snodgrass <cole@airbyte.io>

* Bmoric/convert source micronaut (#20334)

* tmp

* Fix build

* tmp

* Tmp

* tmp

* tmp

* Tmp

* tmp

* tmp

* Clean up

* tmp

* Convert Connection Api Controller

* PR Comments

* convert openapiapicontroller to micronaut (#20258)

* convert openapiapicontroller to micronaut

* merge health/openapi locations into one entry

* Fix build

* Format

* Remove media type

* Format

* Tmp

* tmp

* Build

* missing bean

* format

Co-authored-by: Cole Snodgrass <cole@airbyte.io>

* Migrate to micronaut (#20339)

* Migrate source to micronaut

* convert SchedulerApiController to Micronaut (#20337)

* wip; SchedulerApiController

* remove @Named

* remove @Singleton

* add back todo message

* Bmoric/convert source definition micronaut (#20338)

* tmp

* Fix build

* tmp

* Tmp

* tmp

* tmp

* Tmp

* tmp

* tmp

* Clean up

* tmp

* Convert Connection Api Controller

* PR Comments

* convert openapiapicontroller to micronaut (#20258)

* convert openapiapicontroller to micronaut

* merge health/openapi locations into one entry

* Fix build

* Format

* Remove media type

* Format

* Tmp

* tmp

* Build

* missing bean

* Tmp

* Add Beans

* fix Bean

* Add passthrough

* Clean up

* Missing path

* FIx typo

* Fix conflicts

* for mat

Co-authored-by: Cole Snodgrass <cole@airbyte.io>

* update SourceOauthApiController to Micronaut (#20386)

* convert SourceOauthApiController to Micronaut

* remove SourceOauthApi reference

* convert WorkspaceApiController to micronaut (#20214)

* wip; broken

* convert WorkspaceApiController to micronaut

* remove test controller

* format

* format

* add @Body to SourceOauthApiController

* consolidate nginx settings

* remove unnecessary factories

* Bmoric/convert jobs micronaut (#20382)

* Convert jobs to micronaut

* Nit

* Format

* Bmoric/convert source definition specification micronaut (#20379)

* Migrate source definition specifications to micronaut

* Format

* Format

* convert database assert call to Micronaut (#20406)

* remove dupe config section; add DatabaseEventListener

* move eventlistner to correct package; update implementation

* convert NotificationsApiController to Micronaut (#20396)

* convert NotificationsApiController to Micronaut

* format

* Migrate logs to micronaut (#20400)

* Bmoric/convert webbackend micronaut (#20403)

* Convert jobs to micronaut

* Nit

* Format

* Migrate the webbackend to micronaut

* Add missing Bean

* Cleanup (#20459)

* Cleanup

* More cleanup

* Disable in order to test cloud

* Restore missing files

* Fix test

* Format and fix pmd

* Add transactional

* Fix version

* Tentative

* Cleanup the cleanup

* Rm reference to the micronaut server

* format

* pmd

* more pmd

* fix build

* Delete logs API

* Revert "Delete logs API"

This reverts commit fcb271dcdf.

* Rm flaky test

* Format

* Try to fix test

* Format

* Remove optional

* Rm import

* Test sleep

* Simplify injection

* update import

* Remove sleep

* More injection

* Remove more requirement

* imports

* Remove more requirement

* Fix yaml

* Remove unused conf

* Add role

* Test acceptance test

* Update env

* Revert "Update to Micronaut 3.8.0 (#20716)"

This reverts commit a28f93747f.

* Update helm chart

* Fix helm chart

* Convert Application Listener

* Format

* Add explicit deployment mode

* Change check port

* Update version and bump version to the right value

* Cleanup

* Update FE end to end test

* Allow head request

* Fix controller

* Format

* Fix http client Bean

* Format

Co-authored-by: Cole Snodgrass <cole@airbyte.io>
2023-01-06 11:04:03 -08:00
Pedro S. Lopez
2a3817748a feat(Platform): update actor configuration when receiving control messages from connectors during sync (#19811)
* track latest config message

* pass new config as part of outputs

* persist new config

* persist config as the messages come through, dont set output

* clean up old implementation

* accept control messages for destinations

* get api client from micronaut

* mask instance-wide oauth params when updating configs

* defaultreplicationworker tests

* formatting

* tests for source/destination handlers

* rm todo

* refactor test a bit to fix pmd

* fix pmd

* fix test

* add PersistConfigHelperTest

* update message tracker comment

* fix pmd

* format

* move ApiClientBeanFactory to commons-worker, use in container-orchestrator

* pull out config updating to separate methods

* add jitter

* rename PersistConfigHelper -> UpdateConnectorConfigHelper, docs

* fix exception type

* fmt

* move message type check into runnable

* formatting

* pass api client env vars to container orchestrator

* pass micronaut envs to container orchestrator

* print stacktrace for debugging

* different api host for container orchestrator

* fix default env var

* format

* fix errors after merge

* set source and destination actor id as part of the sync input

* fix: get destination definition

* fix null ptr

* remove "actor" from naming

* fix missing change from rename

* revert ContainerOrchestratorConfigBeanFactory changes

* inject sourceapi/destinationapi directly rather than airbyteapiclient

* UpdateConnectorConfigHelper -> ConnectorConfigUpdater

* rm log

* fix test

* dont fail on config update error

* pass id, not full config to runnables/accept control message

* add new config required for api client

* add test file

* fix test compatibility

* mount data plane credentials secret to container orchestrator (#20724)

* mount data plane credentials secret to container orchestrator

* rm copy-pasta

* properly handle empty strings

* set env vars like before

* use the right config vars
2023-01-06 13:17:25 -04:00
Topher Lubaway
ef335e283f Revert "Progress Bar Read APIs (#20937)" (#21115)
Breaks when there is no config present
https://github.com/airbytehq/airbyte/issues/21112
This reverts commit 3a2b0405c4.
2023-01-06 10:09:31 -06:00
Benoit Moriceau
606812b5d1 Rm temporal version (#21045)
* Rm temporal version

* Remove temporal version

* Update the replayed workflow

* Format

* Fix pmd
2023-01-05 16:38:39 -08:00
Davin Chia
3a2b0405c4 Progress Bar Read APIs (#20937)
Follow up PR to #20787 . Make stats available to the read apis so these are available to the webapp.

After this, all that is left is writing these stats as the job progresses.

Add the required logic in JobHistoryHandler.java.

Took the chance to also rename our internal Attempt models field from id to attemptNumber to better reflect that the field stores not the row's database id, but the job's attempt number. Most of the files changes here are due to that rename.
2023-01-05 16:32:19 -08:00
Anne
84cd1547e8 Remove workspace helper from fetchConfigActivity (#21048)
* Remove workspace helper and replace with workspaceApi
2023-01-05 23:30:26 +00:00
Anne
bb84fac8d1 Add new actorCatalogWithUpdatedAt endpoint 2023-01-05 22:12:31 +00:00
Jimmy Ma
f846678d18 Refactor code to avoid missing check (#21046) 2023-01-05 01:05:31 +00:00
Anne
94513f07c3 remove config repository from config fetch activity impl scheduling (#20908)
* Remove config repository from config fetch activity impl for scheduling data
2023-01-04 16:07:48 -08:00
Anne
c6715bd98a Remove config repo dependency for getStatus (#21033) 2023-01-04 13:24:26 -08:00
Michael Siega
6130a54795 pass workspace id to sync workflow and use it to selectively enable field selection (#20589)
* pass workspace id to sync workflow and use it to selectively enable field selection

* fix tests around workspace id in job creation

* make sure field selection environment variables get passed through properly

* clean up handling around field selection flags

* debug logging for field selection

* properly handle empty field selection feature flag

* fix pmd

* actually fix pmd
2023-01-03 23:30:35 +00:00
Anne
dddaad5df2 Remove configRepo dependencies (#20690)
* Use ConnectionApi to fetch source ID (#20670)
2023-01-03 21:53:37 +00:00
Xiaohan Song
4eca4a4302 OSS changes to support acceptance test on data plane (#20853)
* addlog

* fix applicaion.yml

* remove logging

* var name for boolean

* test setup

* test

* more fix for testing

* self review

* remove unrelated changes

* remove unwanted cdk changes

* more clean ups
2023-01-03 13:34:27 -08:00
Jonathan Pearlin
c3987a9645 Skip validation when previous state is empty due to reset (#20585)
* Skip validation when previous state is empty due to reset

* Handle null state object

* Fix formatting

* Fix logic

* Fix method name
2023-01-03 12:17:59 -05:00
Davin Chia
2deac0f244 Prep for Java 19 Upgrade (#20911)
Upgrade all the necessary tooling dependencies to get us to Java 19.
2022-12-29 12:32:42 -08:00
Michael Siega
16e890aee1 add noise to cron scheduling (#20665)
* add noise to cron scheduling

* fix tests

* add a workspace id to test cron scheduling jitter

* add unit test and fix scheduling noise for crons
2022-12-20 19:45:03 -06:00
Jonathan Pearlin
c0838f81da Disable auto detect schema activity bits (#20615)
* Disable auto detect schema activity bits

* Disable impacted tests

* Disable auto detect schema checks

* Add comment as to why code has been disabled

* Fix PMD warnings

* Fix PMD warning

Co-authored-by: Peter Hu <peter@airbyte.io>
2022-12-19 15:36:22 -06:00
Octavia Squidington III
27bd807fd1 Bump Airbyte version from 0.40.25 to 0.40.26 (#20630)
Co-authored-by: lmossman <lmossman@users.noreply.github.com>
2022-12-18 15:54:55 -08:00
Edward Gao
69bc4a3cfe airbyte-workers copyGenerateTar depends on generateWellKnownTypes (#20528) 2022-12-15 10:41:29 -08:00
andriikorotkov
eecfafd10e Remove NormalizationRunnerFactory (#20245)
* updated IntegrationLauncherConfig.yaml and added to this class suportDBT and normalizationImage fields. Added to the GenerateInputActivityImpl and TemporalClient classes code parts for read destination_definition.yaml and get suportDBT and normalizationImage fields. Added logging and comparing normalization images from NormalizationRunnerFactory and destination_definition.yaml

* updated minor remarks

* updated minor remarks

* fixed minor remarks

* added normalization data to the tests

* fixed minor remarks

* removed NormalizationRunnerFactory

* fixed remarks

* fixed remarks

* fixed remarks

* updated acceptance tests

* updated acceptance tests

* updated check_images_exist.sh script

* updated method for get normalization image name for destination acceptance test

* fixed code style

* fixed code style and removed tests data

* updated JobErrorReporterTest.java

* updated JobErrorReporterTest.java

* fixed remarks

* added integration type field to the dectination_definition file and actor_definition table

* fixed tests

* fixed tests

* fixed minor changes after pulling master changes

* fixed minor changes after pulling master changes

* renamed integrationType to normalizationIntegrationType/ fixed minor remarks

* renamed extra dependencies

* updated docs

* updated docs

* fixed minor remarks

* added NormalizationDestinationDefinitionConfig.yaml for StandardDestinationDefinition.yaml and updated configuration

* updated normalization tag

* updated DestinationAcceptanceTest.java

* updated DestinationAcceptanceTest.java

* updated imports and descriptions
2022-12-15 12:15:34 +02:00
Edward Gao
2392acb845 Enable record schema validation using v1 type system; CI uses MSG to start EC2 runners (#20439)
* Revert "Revert "RecordSchemaValidator can resolve $ref schemas (#19625)" (#20113)"

This reverts commit 86f61a53d3.

* just hardcode build?

* sshable instance

* pass arg for release oss only

* also skip octavia + create PR

* update ec2 runner

* revert CI test changes

* whoops

* whoopswhoops
2022-12-14 16:06:21 -08:00
Xiaohan Song
ea3db512e1 Fix incorrect naming in application.yml (#20494)
* addlog

* fix applicaion.yml

* remove logging

* var name for boolean
2022-12-14 15:37:10 -08:00
Conor
e7c3fbf62d restore containerOrchestrator image value (#20313)
* Revert "fix: remove unused CONTAINER_ORCHESTRATOR_ENABLED var (#20261)"

This reverts commit ce29361b55.

* docs: add additional commentary on flag usage
2022-12-12 18:06:47 -06:00
Michael Siega
0fac8c82e6 implement column filtering in the replication workflow (#20369)
* implement column filtering in the replication workflow

* fixes to column selection in replication workflow

* add a basic acceptance test for column selection

* make CI acceptance tests run with new field selection flag enabled

* fix format

* readability improvements around columns selection tests and other small fixes
2022-12-13 01:02:09 +01:00
Charles
0af6bd06ba emit failure type in attempt_failure_by_origin (#20349) 2022-12-12 15:06:31 -08:00
Benoit Moriceau
790dc42bcb remove the requirement on the activity (#20311)
* remove the requirement on the activity

* Remove unused import
2022-12-09 12:27:17 -08:00
Anne
0a8fc9e187 Disable all broken connections when source is refreshed (#20208) 2022-12-09 10:36:39 -08:00