Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Source Amplitude: label as generally_available in UI #13599

Merged
merged 6 commits into from
Jun 9, 2022

Conversation

bazarnov
Copy link
Collaborator

@bazarnov bazarnov commented Jun 8, 2022

What

Resolving: #13598

How

  • changed the releaseStage to generally_available for UI

Pre-merge Checklist

Expand the relevant checklist and delete the others.

Updating a connector

Community member or Airbyter

  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here

@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Jun 8, 2022
@bazarnov
Copy link
Collaborator Author

bazarnov commented Jun 8, 2022

/test connector=connectors/source-amplitude

🕑 connectors/source-amplitude https://github.com/airbytehq/airbyte/actions/runs/2460879005
✅ connectors/source-amplitude https://github.com/airbytehq/airbyte/actions/runs/2460879005
Python tests coverage:

Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
source_acceptance_test/utils/__init__.py                 6      0   100%
source_acceptance_test/tests/__init__.py                 4      0   100%
source_acceptance_test/__init__.py                       2      0   100%
source_acceptance_test/tests/test_full_refresh.py       52      2    96%
source_acceptance_test/utils/asserts.py                 37      2    95%
source_acceptance_test/config.py                        77      6    92%
source_acceptance_test/utils/json_schema_helper.py     105     13    88%
source_acceptance_test/tests/test_incremental.py       121     25    79%
source_acceptance_test/utils/common.py                  80     17    79%
source_acceptance_test/tests/test_core.py              294    106    64%
source_acceptance_test/utils/compare.py                 62     23    63%
source_acceptance_test/base.py                          10      4    60%
source_acceptance_test/utils/connector_runner.py       110     48    56%
------------------------------------------------------------------------
TOTAL                                                  960    246    74%
Name                           Stmts   Miss  Cover
--------------------------------------------------
source_amplitude/source.py        24      0   100%
source_amplitude/__init__.py       2      0   100%
source_amplitude/errors.py        12      1    92%
source_amplitude/api.py          163     15    91%
--------------------------------------------------
TOTAL                            201     16    92%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_incremental.py:23: `future_state_path` not specified, skipping
================== 23 passed, 1 skipped in 155.92s (0:02:35) ===================

@bazarnov bazarnov requested review from lazebnyi and midavadim June 8, 2022 10:36
@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@5077852). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 43bbaf4 differs from pull request most recent head 8cff6ce. Consider uploading reports for the commit 8cff6ce to get more accurate results

@@            Coverage Diff            @@
##             master   #13599   +/-   ##
=========================================
  Coverage          ?   92.03%           
=========================================
  Files             ?        4           
  Lines             ?      201           
  Branches          ?        0           
=========================================
  Hits              ?      185           
  Misses            ?       16           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5077852...8cff6ce. Read the comment docs.

@bazarnov bazarnov linked an issue Jun 8, 2022 that may be closed by this pull request
@bazarnov bazarnov temporarily deployed to more-secrets June 8, 2022 10:56 Inactive
@sherifnada
Copy link
Contributor

@bazarnov how come this passed SATs, do you know? ideally a wrong format should fail there

@bazarnov
Copy link
Collaborator Author

bazarnov commented Jun 8, 2022

@bazarnov how come this passed SATs, do you know? ideally a wrong format should fail there

Good question, I'll dive into it

@bazarnov
Copy link
Collaborator Author

bazarnov commented Jun 9, 2022

@bazarnov how come this passed SATs, do you know? ideally a wrong format should fail there

Good question, I'll dive into it

The answer could be very simple, the CustomFormatChecker(FormatChecker) seems like doesn't check for date format, but for date-time only...

Check this code part for more:
https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/utils/asserts.py#L34-L39

Anyway, I'm going to switch back to date format for Annotations, since the API clearly declares this is the format we need:
https://developers.amplitude.com/docs/chart-annotations-api#example-response-2

@github-actions github-actions bot removed area/documentation Improvements or additions to documentation area/connectors Connector related issues labels Jun 9, 2022
@bazarnov bazarnov changed the title 🐛 Source Amplitude: fix annotations schema 🐛 Source Amplitude: label as generally_available in UI Jun 9, 2022
@bazarnov bazarnov changed the title 🐛 Source Amplitude: label as generally_available in UI 🎉 Source Amplitude: label as generally_available in UI Jun 9, 2022
@bazarnov bazarnov temporarily deployed to more-secrets June 9, 2022 09:48 Inactive
@bazarnov bazarnov merged commit d19b7eb into master Jun 9, 2022
@bazarnov bazarnov deleted the bazarnov/source-amplitude-to-ga branch June 9, 2022 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants