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

Upgraded tools; Split of CI jobs into pieces; Moved some to GH actions; different way of managing tools. #2670

Merged
merged 3 commits into from
May 28, 2020

Conversation

bwplotka
Copy link
Member

@bwplotka bwplotka commented May 27, 2020

Signed-off-by: Bartlomiej Plotka [email protected]

Fixes: #2663

@bwplotka bwplotka force-pushed the fix-tools branch 9 times, most recently from 3adbfd8 to cc1daea Compare May 27, 2020 18:03
@bwplotka bwplotka marked this pull request as ready for review May 27, 2020 18:05
@bwplotka
Copy link
Member Author

This should be ready for review 🤗

Finally after a day of fighting with this. Now most of the things are split, plus golint no longer OOMs (upgrade + move to GH actions)

I also used my https://github.com/bwplotka/bingo project for binary management. This however is not needed for USAGE of those binaries, just for managing them. I will write small blog post about it.

@bwplotka
Copy link
Member Author

bwplotka commented May 27, 2020

OK, Moving doc checks back to .CircleCI GH action constantly fails egress to outside website for LICHE. Let's figure out that in another PR.

See: #2674

It works, looks like just newest LICHE is somehow broken.

…s; different way of managing tools.

Signed-off-by: Bartlomiej Plotka <[email protected]>
Signed-off-by: Bartlomiej Plotka <[email protected]>
@bwplotka
Copy link
Member Author

Green!

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Amazing job, LGTM

# @echo "Running alertmanager"
# @$(ALERTMANAGER) <flags/args..>
#
ALERTMANAGER ?= $(GOBIN)/alertmanager-v0.20.0
Copy link
Contributor

Choose a reason for hiding this comment

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

For each binary, the version is repeated 3 times. Have you considered adding a ALERMANAGER_VERSION variable and then using it, similarly to what we did in Makefile before?

Copy link
Member

Choose a reason for hiding this comment

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

Since this is a generated file, I don't think it's too bad, but agreed.

Copy link
Member Author

Choose a reason for hiding this comment

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

No need for this, https://github.com/bwplotka/bingo recreates this file anyway (:

tags:
pull_request:

# TODO(bwplotka): Add tests here.
Copy link
Contributor

Choose a reason for hiding this comment

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

e2e tests or unit tests? The first one has been done.

Copy link
Member Author

Choose a reason for hiding this comment

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

Unit tests (:

They are still in the Circle CI for now.

run: make format

- name: Linting & vetting.
run: make go-lint
Copy link
Contributor

Choose a reason for hiding this comment

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

Note to myself: before we were calling make lint which calls go-lint and react-app-lint targets. Now, calling only go-lint, we've lost react-app-lint, but react-app-lint is called by react-app-test in the react workflow, so all good.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes (:

# @echo "Running alertmanager"
# @$(ALERTMANAGER) <flags/args..>
#
ALERTMANAGER ?= $(GOBIN)/alertmanager-v0.20.0
Copy link
Member

Choose a reason for hiding this comment

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

Since this is a generated file, I don't think it's too bad, but agreed.

@brancz
Copy link
Member

brancz commented May 28, 2020

Gonna go ahead and merge this, to make CI work on master again.

@brancz brancz merged commit e7d431d into master May 28, 2020
@brancz brancz deleted the fix-tools branch May 28, 2020 07:15
thisisobate pushed a commit to thisisobate/thanos that referenced this pull request Jun 1, 2020
…s; different way of managing tools. (thanos-io#2670)

* Upgraded tools; Split of CI jobs into pieces; Moved some to GH actions; different way of managing tools.

Signed-off-by: Bartlomiej Plotka <[email protected]>

* Trying separate action for docs once again.

Signed-off-by: Bartlomiej Plotka <[email protected]>

* Reverted jb version.

Signed-off-by: Bartlomiej Plotka <[email protected]>
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.

golang lint CI is failing on master.
3 participants