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

[Event Hubs Client - Track Two Preview 1] Import Track One Source and Establish Test Infrastructure #6430

Merged

Conversation

jsquire
Copy link
Member

@jsquire jsquire commented May 29, 2019

Summary

The goal of these changes to begin laying the groundwork for implementation of the first preview for the track two API. The API surface for the initial preview will base it's implementation on the track one source using a compatibility layer in order to speed delivery.

Goals

  • Expose the track two API surface for consumers of the client library, while delegating implementation to the track one source.

  • Ensure that the track one API is not exposed to consumers, allowing them to experience the track two API design.

  • Isolate the track one source such that it will be easily identified when efforts to create the full track two implementation are begun; this should focus both on the track one implementation as well as the areas that it is consumed within the track two preview implementation.

Non-Goals

  • Providing the implementation for track two; the first preview will focus on design and implementation of the API surface, while delegating functionality.

  • Refactoring or enhancing the track one source beyond minimally-scoped areas, needed specifically for compatibility.

  • Import of the full test suite for the track one implementation; tests will focus on the core scenarios identified for the track two preview.

  • Inclusion of the full set of supporting assets, such as README, samples, and ARM templates; these will happen as part of future efforts.

  • Enabling test parallelism; this will be a stretch goal, but unlikely to occur in the time frame for the first track two preview.

Details

Import of Track One Source

  • Internal copy of the track one source was made for intended use as the basis of implementation for the track two preview.

  • Changed the namespace used within the track one source to avoid any ambiguity what the official API surface was.

  • Rescoped visibility for all track one source classes, limiting them to internal so that consumers of the preview are not exposed to them.

  • Marked internals as visible to the client library, so that the internal types from Track One can be used as part of the compatibility layer.

General

  • Making internals visible to the test library so that non-API types can be unit tested.

  • Removed PartitionCount from the EventHubProperties metadata, at the request of the architecture board as part of the Python client review.

  • Performed some minor cleanup and renaming of members to better align cross-language.

Tests and Test Infrastructure

  • Converted prototype skeleton test framework from xUnit to NUnit, to conform to the adopted standard for track two client libraries.

  • Initial set of test infrastructure for categorizing tests and accessing environment variables.

  • Tests for the Guard class, the first non-prototype implementation for the track two preview code.

Last Upstream Rebase

Wednesday, May 29, 2019 4:17pm (EDT)

Resources

Related and Follow-Up Issues

@jsquire jsquire added Event Hubs Client This issue points to a problem in the data-plane of the library. labels May 29, 2019
@jsquire jsquire added this to the Sprint 153 milestone May 29, 2019
@jsquire jsquire self-assigned this May 29, 2019
Copy link
Contributor

@pakrym pakrym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, couple nits

@jsquire jsquire force-pushed the eventhubs/track-2/track-one-infrastructure branch from 6134f4a to 414ec35 Compare May 29, 2019 16:26
Copy link
Member

@conniey conniey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Looks good. 👍

jsquire added 2 commits May 29, 2019 13:47
    Import of Track One Source
        - Internal copy of the track one source was made for intended use as implementation basis
          for the preview API surface.

        - Changed the namespace used within the Track One source to avoid any ambiguity what the official
          API surface was.

        - Rescoped visibility for all Track One source classes, limiting them to `internal` so that consumers of
          the preview are not exposed to them.

        - Marked internals as visible to the client library, so that the internal types from Track One can be used
          as part of the compatibility layer.

    General
        - Making internals visible to the test library so that non-API types can
          be unit tested.

        - Removed `PartitionCount` from the `EventHubProperties` metadata, at the request of the architecture board
          as part of the Python client review.

        - Performed some minor cleanup and renaming of members to better align cross-language.
    General
        - Removed code signing compiler constant, assuming that projects will
          be signed, now that keys are owned by the repository.

    Tests and Test Infrastructure
        - Converted prototype skeleton test framework from xUnit to NUnit, to
          conform to the adopted standard for track two client libraries.

        - Initial set of test infrastructure for categorizing tests and accessing
          environment variables.

        - Tests for the `Guard` class, the first non-prototype implementation for the
          track two preview code.
@jsquire jsquire force-pushed the eventhubs/track-2/track-one-infrastructure branch from 414ec35 to b9c6dbd Compare May 29, 2019 17:48
@jsquire jsquire merged commit c57d6ca into Azure:master May 29, 2019
@jsquire jsquire deleted the eventhubs/track-2/track-one-infrastructure branch May 29, 2019 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Event Hubs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants