Skip to content

Conversation

oncilla
Copy link
Contributor

@oncilla oncilla commented Sep 16, 2019

This changes allows generating the mock files for specific packages.

Sample usage: PKG_MATCHER=svc make mocks
generates only packages that contain svc in the import path.


This change is Reviewable

@oncilla oncilla added the feature New feature or request label Sep 16, 2019
@oncilla oncilla added this to the Q3S3 milestone Sep 16, 2019
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @oncilla)


Makefile, line 42 at r1 (raw file):

PKG_MATCHER

I would probably name the env variable MOCKS or MOCKS_PKGS. PKG_MATCHER doesn't really make sense in a global context.
Also couldn't you use env_name in add_argument below, so you wouldn't need to change the make file? But then maybe the env name can be less global again :man-shrugging:

This changes allows generating the mock files for specific packages.

Sample usage: `make PKG_MATCHER=svc mocks`
generates only packages that contain `svc` in the import path.
Copy link
Contributor Author

@oncilla oncilla left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker)


Makefile, line 42 at r1 (raw file):

Previously, lukedirtwalker (Lukas Vogel) wrote…
PKG_MATCHER

I would probably name the env variable MOCKS or MOCKS_PKGS. PKG_MATCHER doesn't really make sense in a global context.
Also couldn't you use env_name in add_argument below, so you wouldn't need to change the make file? But then maybe the env name can be less global again :man-shrugging:

Done.

Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@oncilla oncilla merged commit f2851f0 into scionproto:master Sep 20, 2019
@oncilla oncilla deleted the pub-mock-gen branch September 20, 2019 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants