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

build: Improve reliability of release. #2309

Merged
merged 2 commits into from
Feb 25, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Feb 25, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
  • Optional. I've added My organization is added to the README.
  • I've signed the CLA and required builds are green.

I have already merge this to release-2.5 and release-2.6. It does fully automate releases yet, but makes the process simpler and more reliable by making sure you are clean, dist is created, and you build before you publish.

Please merge as soon as approved and builds are green.

@alexec alexec added this to the v2.6 milestone Feb 25, 2020
@alexec alexec requested a review from sarabala1979 February 25, 2020 17:25
# Push images to Docker Hub
docker push $(IMAGE_NAMESPACE)/argocli:$(VERSION)
docker push $(IMAGE_NAMESPACE)/argoexec:$(VERSION)
docker push $(IMAGE_NAMESPACE)/workflow-controller:$(VERSION)
git push --follow-tags
Copy link
Contributor Author

Choose a reason for hiding this comment

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

follow tags never seemed to work correctly

@@ -429,21 +430,23 @@ api/openapi-spec/swagger.json: $(HOME)/go/bin/swagger $(SWAGGER_FILES) dist/MANI
# pre-push

.PHONY: pre-commit
pre-commit: test codegen manifests lint start pf-bg smoke test-api test-cli
pre-commit: test lint codegen manifests start pf-bg smoke test-api test-cli
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this re-ordering will reduce the number of go.mod/sum changes we get


# release
# release - targets only available on release branch
ifneq ($(findstring release,$(GIT_BRANCH)),)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this change actually remove targets if you should not be able to do them

@@ -429,21 +430,23 @@ api/openapi-spec/swagger.json: $(HOME)/go/bin/swagger $(SWAGGER_FILES) dist/MANI
# pre-push

.PHONY: pre-commit
pre-commit: test codegen manifests lint start pf-bg smoke test-api test-cli
pre-commit: test lint codegen manifests start pf-bg smoke test-api test-cli
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this re-ordering will reduce the number of go.mod/sum changes we get

@@ -429,21 +430,23 @@ api/openapi-spec/swagger.json: $(HOME)/go/bin/swagger $(SWAGGER_FILES) dist/MANI
# pre-push

.PHONY: pre-commit
pre-commit: test codegen manifests lint start pf-bg smoke test-api test-cli
pre-commit: test lint codegen manifests start pf-bg smoke test-api test-cli
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this re-ordering will reduce the number of go.mod/sum changes we get

@alexec alexec marked this pull request as ready for review February 25, 2020 17:29
@codecov
Copy link

codecov bot commented Feb 25, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@b594716). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2309   +/-   ##
=========================================
  Coverage          ?   13.01%           
=========================================
  Files             ?       70           
  Lines             ?    24492           
  Branches          ?        0           
=========================================
  Hits              ?     3188           
  Misses            ?    20899           
  Partials          ?      405

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b594716...079e0cf. Read the comment docs.

@alexec alexec merged commit 2f97c26 into argoproj:master Feb 25, 2020
@alexec alexec deleted the rel-enhance branch February 25, 2020 21:30
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.

2 participants