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

fix: Improve robustness of releases. Fixes #3004 #3009

Merged
merged 24 commits into from May 13, 2020

Conversation

alexec
Copy link
Contributor

@alexec alexec commented May 12, 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've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Fixes #3004

v2.8.0 had no less than three problems:

  • Manifests pointed to the incorrect version.
  • Images were not pushed correctly.
  • Homebrew was wrong.

I believe this all stems from the v2.8.0 tag having been applied to an old commit. Either way, we (I) should have a checklist to prevent these problems.

Additionally, what should be clean builds show dirty. In the past this has been things like file permissions. I'd like to understand why this is.

@alexec alexec added this to the v2.9 milestone May 12, 2020
@@ -233,7 +233,7 @@ jobs:
- yarn-packages-v3-{{ checksum "ui/yarn.lock" }}
- run:
name: Download dependencies
command: yarn --cwd ui install --frozen-lockfile --ignore-optional --non-interactive
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we make these the default options in the .yarnrc

@@ -78,7 +71,7 @@ CONTROLLER_IMAGE_FILE := dist/controller-image.$(VERSION)
STATIC_BUILD ?= true
CI ?= false
DB ?= postgres
K3D := $(shell if [ "`kubectl config current-context`" = "k3s-default" ]; then echo true; else echo false; fi)
K3D := $(shell if [ `which kubectl` <> '' ] && [ "`kubectl config current-context`" = "k3s-default" ]; then echo true; else echo false; fi)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removes annoying kubectl not found warning

@@ -127,7 +120,7 @@ endef
define docker_build
# If we're making a dev build, we build this locally (this will be faster due to existing Go build caches).
if [ $(DEV_IMAGE) = true ]; then $(MAKE) dist/$(2)-$(OUTPUT_IMAGE_OS)-$(OUTPUT_IMAGE_ARCH) && mv dist/$(2)-$(OUTPUT_IMAGE_OS)-$(OUTPUT_IMAGE_ARCH) $(2); fi
docker build $(DOCKER_BUILD_OPTS) -t $(IMAGE_NAMESPACE)/$(1):$(VERSION) --target $(1) -f $(DOCKERFILE) --build-arg IMAGE_OS=$(OUTPUT_IMAGE_OS) --build-arg IMAGE_ARCH=$(OUTPUT_IMAGE_ARCH) .
docker build --progress plain $(DOCKER_BUILD_OPTS) -t $(IMAGE_NAMESPACE)/$(1):$(VERSION) --target $(1) -f $(DOCKERFILE) --build-arg IMAGE_OS=$(OUTPUT_IMAGE_OS) --build-arg IMAGE_ARCH=$(OUTPUT_IMAGE_ARCH) .
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"plain" shows more info and made issues easier to diagnose

@@ -167,8 +160,9 @@ else
endif

$(HOME)/go/bin/staticfiles:
# Install the "staticfiles" tool
$(call backup_go_mod)
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 is what was making builds "dirty"

@@ -16,7 +16,27 @@ To generate new manifests and perform basic checks:

Publish the images and local Git changes (disabling K3D as this is faster and more reliable for releases):

make publish-release K3D=false
make publish-release K3D=false VERSION=v2.7.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

double check the version here

@sonarcloud
Copy link

sonarcloud bot commented May 12, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@alexec alexec marked this pull request as ready for review May 12, 2020 22:09
@alexec alexec requested a review from sarabala1979 May 12, 2020 22:09
@alexec alexec changed the title fix: Update release guide with verification checks. Fixes #3004 fix: Improve robustness of releases. Fixes #3004 May 12, 2020
@alexec alexec requested a review from simster7 May 13, 2020 18:35
Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

LGTM!

@alexec alexec merged commit 3717dd6 into argoproj:master May 13, 2020
@alexec alexec deleted the fix-3004 branch May 13, 2020 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

not found latest release version docker image in docker hub
2 participants