Skip to content

Add list of prerequisites that new provider package should fulfill #10386

Closed

Description

@potiuk

Description

We need to have a folder template (ideally) and list of prerequisites that each provider should fulfill when it is created.

Use case / motivation

To make it easy to add new provider and to make new contributors aware what is needed in order to add provider. The following should be added:

  • directory structure (possibly automated templates or script to create them)
  • usage scenarios for connections in hooks (see discussion in Standardising hooks / connections and adding TTLs #12128)
  • Information about what is required:
    • hooks
    • operators/sensors/transfers
    • unit tests with mocks
    • integration tests if applicable
    • example dags for examples and their use (examples, howtos, system tests)
    • howto guides
  • relation with backport providers.

Activity

  1. pcandoalmeida commented on Aug 19, 2020

    @pcandoalmeida
    Contributor

    Hi @potiuk 🙂 I was thinking about taking a look at this; would you mind if I asked to help clarify the issue a bit further? Would this require a Gitub repository PR template update and documentation or something completely different? Apologies if I am missing the obvious here!

  2. potiuk commented on Aug 19, 2020

    @potiuk
    MemberAuthor

    It's rather about folder structure. We have monorepo - providers are in 'providers' packages/folders - both 'airflow' and 'tests' subfolders and they follow certain structure

  3. potiuk commented on Aug 19, 2020

    @potiuk
    MemberAuthor

    Ah sorry - did not understand. I think it is mostly a 'CONtRIBUTING.rst' update or rather creating new 'how to create a new provider.rst' file + folder structure explanation( or maybe a script creating a new provider with some scaffolding)

  4. pcandoalmeida commented on Aug 20, 2020

    @pcandoalmeida
    Contributor

    Thanks for the clarification @potiuk. I can certainly try working on the documentation to begin with if that suits.

  5. TobKed commented on Dec 8, 2020

    @TobKed
    Contributor

    Any updates for this issue? @pcandoalmeida are you planning to come back working on this? I am happy to help with it.
    I opened PR with new operator (Apache Beam operators) and information about prerequisites for new providers will be very helpful.

  6. TobKed commented on Dec 9, 2020

    @TobKed
    Contributor

    Is it not solved by #12921 ?

  7. pcandoalmeida commented on Dec 18, 2020

    @pcandoalmeida
    Contributor

    Hey @TobKed sorry for the delay on this! @potiuk shall we close this issue?

  8. TobKed commented on Dec 20, 2020

    @TobKed
    Contributor

    Hi @pcandoalmeida , I think issue should not be closed yet, it is only partly solved. I created draft PR #13193 to push it forward

  9. potiuk commented on Dec 21, 2020

    @potiuk
    MemberAuthor

    Yeah. The docs in #12921 only describe prerequisites for "custom" providers - which can be structured in whatever way the 3rd-party provider wants them to be. But there are much "higher" requirements for the providers that are part of the Airflow repo (i.e. community-managed ones) - documentation, examples, proper structure and naming, provider.yaml file etc. We cannot expect 3rd-party provider to fulfill all that (and we have no way of enforcing it). But we have very good checks already and review process to require them from all the Airflow providers :)

  10. potiuk commented on Nov 17, 2021

    @potiuk
    MemberAuthor

    Absolutely. Closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions