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

Update main to use setup.File interfaces #21

Merged
merged 5 commits into from
Nov 19, 2019

Conversation

stephen-soltesz
Copy link
Contributor

@stephen-soltesz stephen-soltesz commented Nov 19, 2019

This change updates main to use the new setup.File interfaces and completes unit test coverage.

Note: this is a breaking change with respect to the original handling of flags. The flag package is changed from github.com/spf13/pflag so that we can take advantage of flagx.ArgsFromEnv and flagx.StringArray. As well, the separate flags for metric '--type' and '--query' filename are combined as --guage-query. This change removes support for counter queries, but adds a TODO. Counters are a special use-case that make queries more expensive and might be suited to a different collector implementation.


This change is Reviewable

@coveralls
Copy link
Collaborator

coveralls commented Nov 19, 2019

Pull Request Test Coverage Report for Build 65

  • 44 of 44 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 57: 0.0%
Covered Lines: 222
Relevant Lines: 222

💛 - Coveralls

Copy link
Contributor

@pboothe pboothe left a comment

Choose a reason for hiding this comment

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

Please use ioutil and its MakeTemp functions instead of putting an empty file under source control.

Reviewable status: 0 of 1 LGTMs obtained

Copy link
Contributor Author

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

PTAL?

Reviewable status: 0 of 1 LGTMs obtained

Copy link
Contributor

@pboothe pboothe left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained


cmd/bigquery_exporter/main_test.go, line 49 at r2 (raw file):

func Test_main(t *testing.T) {

Random blank line

Copy link
Contributor Author

@stephen-soltesz stephen-soltesz 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: :shipit: complete! 1 of 1 LGTMs obtained


cmd/bigquery_exporter/main_test.go, line 49 at r2 (raw file):

Previously, pboothe (Peter Boothe) wrote…

Random blank line

Fixed.

@stephen-soltesz stephen-soltesz merged commit 4907b9d into master Nov 19, 2019
@stephen-soltesz stephen-soltesz deleted the sandbox-soltesz-main branch August 12, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants