Skip to content

Update buildFeatureSets method in Golang SDK to ensure order of FeatureSet in the request follows that from the argument - #351

Merged
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
davidheryanto:fix-feast-golang-sdk-flaky-tests
Dec 10, 2019
Merged

Update buildFeatureSets method in Golang SDK to ensure order of FeatureSet in the request follows that from the argument#351
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
davidheryanto:fix-feast-golang-sdk-flaky-tests

Conversation

@davidheryanto

@davidheryanto davidheryanto commented Dec 5, 2019

Copy link
Copy Markdown
Collaborator

Current implementation of buildFeatureSets method do not ensure such order. However, the unit test expects the order to be respected. This results in failed Golang unit test occasionally.

This pull request update the implementation by not depending on order of iteration of a map object when creating the FeatureSetRequest slice. Map iteration in Golang has random order and therefore cannot be used to ensure ordered output.

Related to #330

To ensure that the feature set name order in the request follows that from the method argument
@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidheryanto

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@davidheryanto davidheryanto changed the title Update buildFeatureSets method in golang SDK to ensure order of FeatureSet in the request follows that from the argument Update buildFeatureSets method in Golang SDK to ensure order of FeatureSet in the request follows that from the argument Dec 9, 2019
@zhilingc

Copy link
Copy Markdown
Collaborator

/lgtm

@feast-ci-bot feast-ci-bot removed the lgtm label Dec 10, 2019
@zhilingc

Copy link
Copy Markdown
Collaborator

/lgtm

@feast-ci-bot
feast-ci-bot merged commit 06fe09b into feast-dev:master Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants