1
0
mirror of synced 2026-01-07 09:05:45 -05:00
Commit Graph

213 Commits

Author SHA1 Message Date
Davin Chia
c5a02810d1 Various build updates. (#4425)
* Stop pushing dev images. Pin actions to the v2 release track to get latest updates.

* Update gradle git workflow comments.
2021-06-30 11:16:00 +08:00
Marcos Marx
4bace33322 Add comments on issue templates and reframe bug-report template (#3203)
* add comments and reframe bug-report issue

* add suggestion using details tag for log

* change abhi comments

* add more example os vrson/instance

* correct tag

* remove hidden comments and add submit pr

* correct some points

* correct details log block
2021-06-29 18:37:18 -03:00
Subodh Kant Chaturvedi
887752822c 🎉 introduce automatic migration at the startup of server for docker environment (#3980)
* introduce automatic migration at the startup of server

* handle versions with non-zero patch

* it works!!!

* add dummy data

* cleanup orphan configs

* add more assertions

* format + add comments

* move migration acceptance test to acceptance test directory

* add automatic migration test to the build

* address review comments

* missed out on these

* format

* add more assertions

* format

* fix test

* format

* use default port for temporal

* move seed to server + introduce atomice replacement for config

* make tests better

* remove unwanted changes

* move atomic replacement logic behind persistence + pass path to latest seeds

* format

* update seeds

* review comments

* update seeds

* merge latest seeds with configs

* fix bug around latest seed

* update seed

* update seed

* seeds should be populated by separate container

* address review comment + change latest definition url

* update seeds

* format

* update seed references

* update seed

* update seed

* update seed

* update seed references

* update seed references + add Migration Acceptance Test

* update seed container in kube + disable automatic migration for kube + update docs

* update docs

* address review comments from Michel

* update doc

* temporary commmit to see if build becomes green

* delete seeds from airbyte config + undo temp commit
2021-06-29 23:50:00 +05:30
Davin Chia
bb189cf896 Migrate actions to the fix the paginate bug. (#4398)
Fix a bug in ec2 runner that I committed to the underlying library in machulav/ec2-github-runner#51.

This points to master because the action's maintainer has yet to release a version. I'll move it to a proper version when one is released.
2021-06-29 18:16:18 +08:00
Charles
97c0ee83df run docker acceptance tests once (#4362) 2021-06-28 13:48:20 -07:00
Charles
8ebc3dc73b Build Core Docker Images and Run Tests should only do composeBuild (#4361) 2021-06-28 09:33:26 -07:00
Sherif A. Nada
767f40b82e Publish Pubsub (#4354) 2021-06-25 11:48:30 -07:00
Sherif A. Nada
8bce17470c add missing items to PR template 2021-06-25 11:28:03 -07:00
Davin Chia
683a67c023 Upgrade Gradle Python plugin + explicitly install PyEnv to fix transient checkPython error. (#3362)
This is what the plugin's maintainer suggested: xvik/gradle-use-python-plugin#19.

I ran the build 10 times in a row without any checkPython error so this does seem to have fixed it.
2021-06-25 17:32:41 +08:00
Yaroslav Dudar
2ccb1c2de0 🎉 New source: AWS CloudTrail (#4122)
AWS CloudTrail connector initial release
2021-06-25 11:10:07 +03:00
Jared Rhizor
a824323df2 use kind instead of minikube for kube integration tests (#4333)
* use docker driver for minikube

* try out kind

* remove minikube post-step
2021-06-24 17:48:27 -07:00
Sherif A. Nada
ebbef5e3ef update PR template 2021-06-23 08:01:23 -07:00
Davin Chia
e60f5369e0 🎉 Kube Logs support stored and reading from S3. (#4053)
Use Log4j2 appender to support routing logs to S3.

Create LogClient to support reading from S3.

Some clean up of the Log4j2 xml variables.

Several dependency changes to be more explicit when configuring jackson.
2021-06-19 12:15:15 +08:00
Jared Rhizor
883166a6c2 use ec2 runner for kube acceptance tests (#4058)
* use ec2 runner for kube acceptance tests

* add missing newline

* log outputs

* add user and home env vars

* log more

* use root user

* fix ec2 runner

* remaining debugging

* try overwrite forcing

* fail fast

* get kubectl location

* even more

* just look for it

* see if it's a symlink

* symlink

* make sure it's started

* try with overrides

* Revert "try with overrides"

This reverts commit 123e3c033e.

* clean up

* describe pods

* display exception when getting address in use error

* retry installing socat

* try inet4 address specifically

* switch order of install

* use unique ports for each

* try to detect locations with home and user set

* STOPTTTTTTTTTTT

* fix typo

* move socat back up one more

* add update
2021-06-17 22:48:52 -07:00
Marcos Marx
83a0ad1c32 Correct pattern for connector label (#4112)
* correct pattern for connector label

* add label for API
2021-06-14 18:38:28 -03:00
Harshith Mullapudi
bad2fb14e3 🎉 New source: Google Ads API (#3842)
* New source: Google Ads API

Co-authored-by: Sherif Nada <snadalive@gmail.com>
2021-06-14 16:16:32 +08:00
Sherif A. Nada
4ffa1bb6ab add item in PR checklist for documenting build status 2021-06-10 07:42:49 -07:00
Davin Chia
8d97ea2f01 Do not run acceptance tests on every merge to master. Gradle build on master runs hourly. (#3979) 2021-06-10 14:57:19 +08:00
Davin Chia
b04c080c95 Kube Queueing POC (#3464)
* Use CDK to generate source that can be configured to emit a certain number of records and always works.

* Checkpoint: socat works from inside the docker container.

* Override the entry point.

* Clean up and add ReadMe.

* Clean up socat.

* Checkpoint: connect to Kube cluster and list all the pods.

* Checkpoint: Sync worker pod is able to send output to the destination pod.

* Checkpoint: Sync worker creates Dest pod if none existed previously. It also waits for the pod to be ready before doing anything else. Sync worker will also remove the pod on termination.

* update readme

* Checkpoint: Dest pod does nott restart after finishing. Comment out delete command in Sync worker.

* working towards named pipes

* named pipes working

* update readme

* WIP named pipe / socat sidecar kube port forwarding (#3518)

* nearly working sources

* update

* stdin example

* move all kube testing yamls into the airbyte-workers directories. sort the airbyte-workers resource folder; place all the poc yamls together.

* Format.

* Put back the original KubeProcessBuilderFactory.

* Fix slight errors.

* Checkpoint: Worker pod knows its own IP. Successfully starts and writes to Dest pod after refactor.

* remove unused file and update readme

* Dest pod loops back into worker pod. However, the right messages do not seem to be passing in.

* Switch back to worker ip.

* SWEET VICTORY!.

* wrap kube pod in process (#3540)

also clean up kubernetes deploys.

* More clean up. (#3586)

The first 6 points of #3464.

The only interesting thing about this PR is the kube pod shutdown. For whatever reason, the OkHttpPool isn't respecting the evictAll call and 1 idle thread remains. So instead of shutting down immediately, the worker pod shuts down after 5 mins when the idle thread id reaped. There isn't an easy way to modify the pool's idle reap configuration now. I do not think this issue is blocking since it's relatively benign, so I vote we create a ticket and come back to this once we do an e2e test.

* Implements redirecting standard error as well. (#3623)

* Clean up before next implementation.

* kube process launching (#3790)

* processes must handle file mounting

* remove comment

* default to base entrypoint

* use process builder factory / select stdin / use a pool of ports

* fix up

* add super hacky copying example

* Checkpoint: Works end to end!

* Checkpoint: Use API to make sure init container is ready instead of blind sleep. Propagate exception in DefaultCheckConnectionWorker.

* Refactor KubePodProcess. Checked to make sure everything still works.

* Format.

* Clean up code. Begin putting this into variables and breaking up long constructor function.

* Add comments to explain what is happening.

* fix normalization test

* increase timeout for initcontainer

Co-authored-by: Davin Chia <davinchia@gmail.com>

* facepalm moment

* clean up kube poc pr (#3834)

* clean up

* remove source-always-works

* create separate commons-docker

* fix test

* enable kube e2e tests (#3866)

* enable kube e2e tests

* use more generally accepted env definition

* use new runners

* use its own runner and install minikube differently

* update name

* use kubectl alias

* use link instead of alias that doesn't propagate

* start minikube

* use driver=none

* go back to using action

* mess with versions

* revert runner

* install socat

* print logs after run

* also try re-runnining tasks

* always wait for file transfer

* use ports

* increase wait timeout for kube

* use different localhost ips and bump normalization to include an entrypoint

* proposed fix

* all working locally

* revert temporary changes

* revert normalization image change that's happening in a separate pr

* readability

* final comment

* Working Kube Cancel. (#3983)

* Port over the basic changes.

* Add logic to return proper exit code in the event of termination. Add comments to explain why.

* revert envs change and merge master to fix kube acceptance tests (#4012)

* use older env format

* fix build

Co-authored-by: jrhizor <me@jaredrhizor.com>
Co-authored-by: Jared Rhizor <jared@dataline.io>
2021-06-09 18:12:39 -07:00
Jared Rhizor
b4793b2510 add AIRBYTE_ENTRYPOINT for kubernetes support (#3973)
* add AIRBYTE_ENTRYPOINT for kubernetes support

* bump versions

* bump version in seed

* Update generic template

* keep scaffold sources at 0.1.0

* add missing newline

* handle python base versions correctly

* re-bump mysql and postgres sources

* re-bump snowflake destination

* add skip tests option

* switch to running tests

* reverse conditional to make it safer

* fix publish to include the test running

* fix iterable version

* fix file generation

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
2021-06-09 13:01:45 -07:00
Charles
b5bb4efb57 remove auto assign bot (#3974) 2021-06-09 08:39:43 -07:00
vovavovavovavova
07b09a9a12 🎉 Posthog: New Source (#3768)
Co-authored-by: Eugene Kulak <kulak.eugene@gmail.com>
2021-06-08 16:55:05 -07:00
Sherif A. Nada
4ce67f43e7 fix PR template formatting 2021-06-08 10:28:01 -07:00
Marcos Marx
bbac373713 Correct labeler pattern finder (#3952)
* correct labeler pattern to get subfolder

* folder and subfolders

* remove normalization from connectors

* add normalization label
2021-06-08 13:51:05 -03:00
Davin Chia
961ab6693a Turn EC2 Build Back On (#3925) 2021-06-08 23:17:08 +08:00
Daniel Dubinin
1a147e472a Source MSSQL: Enabled SSL connections (#3893)
* Source MSSQL: Enabled SSL connections
2021-06-08 15:05:15 +03:00
Yevhenii
a90e5f0eca 🎉 New Source: Amplitude (#3664)
* New Amplitude Source: Full Refresh and Incremental Sync

* update api.py, add CHANGELOG.md file

* bump version

Co-authored-by: ykurochkin <y.kurochkin@zazmic.com>
2021-06-08 10:36:31 +03:00
Sherif A. Nada
5ed64d16a8 Add checklist for updating connector generators (#3941) 2021-06-07 23:48:31 -07:00
Marcos Marx
1687159e64 add auto labeler (#3928) 2021-06-07 13:40:05 -03:00
Vadym
e699f39740 🎉 New Source: Harvest (#3709)
* Add harvest source.
Add Clients, Contacts, Company, Invoices, InvoiceMessages, InvoicePayments streams full_refresh support.

* Add all Harvest source streams.
Add config and schema files for all the streams.

* Complete streams implementation.
Add config and schemas.

* Fix expenses stream calls.
Fix ExpensesBase request_params method.
Add source docs and definitions.

* Update harvest.md docs.

* Comment source_definitions.yaml harvest definition.

* Delete Harvest standard source definitions.

* Add Harvest creds to commands.

* Update Harvest build.gradle.

* Add extra report streams schemas.
Update config files.
Update incremental streams mixin.

* Fix HarvestStreamWithPaginationSliced stream_slices method for incremental stream support

* Remove source-acceptance-test test requirement

* * Fix schema.
* Update streams
* Update docs

* Update billable_rates and cost_rates to full_refresh only

* Fix HarvestStreamIncrementalMixin request_params method

* Fix BillableRates and CostRates streams initialization

* Refactor streams.py code common usages.
Update HarvestTokenAuthenticator class definition.

* Add streams docstring.
Fix sub streams slicing.
Update spec and schemas.
Update md docs.

* Update report streams to be support incremental sync.
Update report schemas.

* Removed Uninvoiced and ProjectBudget incremental sync support.
Fix configs and configured catalog.

* Fix streams cursor value.
Update IncrementalReportsBase request_params.
Update schemas and config.

* Add harvest source definitions.
2021-06-07 15:11:30 +03:00
Davin Chia
5d911ed8f2 Remove unused dotnet library so Github Runner has more disk space. (#3924) 2021-06-07 18:53:20 +08:00
Davin Chia
119bfa5116 Move back to normal Github worker since self-hosted is bugging out. (#3919) 2021-06-07 13:49:26 +08:00
Sherif A. Nada
4f520e5f3a Add naming convention to checklist 2021-06-04 11:23:47 -07:00
Sherif A. Nada
85425f8380 add connector checklist item about annotating secrets (#3895)
Co-authored-by: Christophe Duong <christophe.duong@gmail.com>

Co-authored-by: Christophe Duong <christophe.duong@gmail.com>
2021-06-04 09:11:38 -07:00
Yaroslav Hrytsaienko
cdd1d0af5a Revert "Add skip keyword for gl which allows to skip default assignments prio to internal review. (#3781)" (#3805) 2021-06-04 12:50:56 +03:00
Sherif A. Nada
5c7edee833 📚 Add definition-of-done checklist for connectors into PR template (#3864) 2021-06-03 12:42:28 -07:00
LiRen Tu
c13b9883e8 🎉 New destination: S3 (#3672)
* Update README icon links

* Update airbyte-specification doc

* Extend base connector

* Remove redundant region

* Separate warning from info

* Implement s3 destination

* Run format

* Clarify logging message

* Rename variables and functions

* Update documentation

* Rename and annotate interface

* Inject formatter factory

* Remove part size

* Fix spec field names and add unit tests

* Add unit tests for csv output formatter

* Format code

* Complete acceptance test and fix bugs

* Fix uuid

* Remove generator template files

They belong to another PR.

* Add unhappy test case

* Checkin airbyte state message

* Adjust stream transfer manager parameters

* Use underscore in filename

* Create csv sheet generator to handle data processing

* Format code

* Add partition id to filename

* Rename date format variable
2021-06-03 09:40:51 -07:00
Sherif A. Nada
c5005e323c Remove merge step in publish workflow (#3855) 2021-06-03 09:35:36 -07:00
Gabriel Rebessi
eade88efa7 New Source: Okta (#3563)
* Add source-okta

* Add PR suggestions

* Remove typo

* Remove unused file

* hard code page size

* add missing fields to catalog.json

* Add missing fields to catalog

* Add docs to Okta

* Add credential for okta

* Update docs/integrations/README.md

* Fix linting

* fix dependency conflict

* Fix integration tests

* update ci_credentials

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
2021-06-02 14:03:00 -03:00
Abhi Vaidyanatha
f2fa59ff92 Update docs request template to request that people add docs issues t… (#3606)
* Update docs request template to request that people add docs issues to the docs project.

* Use auto assign scripts to assign docs issues and PRs to project.

* Run gradle format

Co-authored-by: Abhi Vaidyanatha <abhivaidyanatha@Abhis-MacBook-Pro.local>
2021-06-01 16:35:18 -06:00
Yaroslav Hrytsaienko
0fd9913104 Add skip keyword for gl which allows to skip default assingments prio to internal review. (#3781) 2021-06-01 20:10:58 +03:00
midavadim
430471bd9a Run build with all supported python versions before publishing to pypi (#3726)
* Split workflow into two jobs: build-cdk, publish-cdk
* added strategy for python versions 3.7.1, 3.7, 3.8, 3.9
* Fixed python version for 'Publish Python Package', updated comment for 'dry-run' input
2021-06-01 13:36:33 +03:00
Phlair
c89b8870cc Added Azure Storage into CI yml (#3762) 2021-06-01 10:10:41 +08:00
Davin Chia
e391fc64fa Test command accepts repo to allow us to build connectors from forked repos. (#3745) 2021-05-30 21:52:48 +08:00
Davin Chia
86e0b54e4e Try to enable Test commands to run from forked branches. (#3740) 2021-05-29 23:40:50 +08:00
Yaroslav Dudar
c49ff40754 🎉 Python CDK: change minimum python version to 3.7.0 (#3692)
* changed python version to 3.7.0 in cdk

* updated Python version in Github Actions
2021-05-28 21:08:53 +03:00
Sherif A. Nada
3251c6efc1 Update title and label in new connector request 2021-05-27 21:10:09 -07:00
oleh.zorenko
5aa03643cf Update source-exchange-rates connector (#3566) 2021-05-26 21:59:42 +03:00
oleh.zorenko
c8711abbd6 🎉 New Source: Asana (#3510)
* Asana source

* Fix creds for CI.

* Update connection status in acceptance test config

Change status from `exception` to `failed`.

* Implement change request.

Remove few files from /integration_tests folder.
Use `stream_slices` and/or `request_params` functions instear of `read_records` function

* Update sample_config.json file.

* Update airbyte-integrations/connectors/source-asana/CHANGELOG.md

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* Update `stream_slices` using.

Create reneric `read_stream` function in AsanaStream class and move there logic from `stream_slices` function.

* Rename functions.

rename `read_stream` to `read_slices_from_records`.

* Changes about publishing.

Add asana source to `source_definitions.yaml`.
Add `asana.svg`.
Create connector related file in `STANDARD_SOURCE_DEFINITION` folder.

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
2021-05-25 18:55:46 +03:00
Sherif A. Nada
68504d87a3 Update new integration issue template to use area/connectors label 2021-05-24 19:45:00 -07:00