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

ci: Make builds marginally faster. Fixes #3515 #3519

Merged
merged 8 commits into from Jul 21, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Jul 19, 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.

Improvements

  • Docker Image CI: 14m
  • CI: 14m
    • Test: 5m -> 3m30
    • Test E2E: 14m -> 13m
    • Test Cron: 8m -> 8m
    • Codegen: 8m -> 7m30
    • UI: 32s

There are some slow tests, but no single test which is much worse that other tests. So no improvement to be made there today.
Fixes #3515

GIT_TREE_STATE = $(shell if [ -z "`git status --porcelain`" ]; then echo "clean" ; else echo "dirty"; fi)

export DOCKER_BUILDKIT = 1

# To allow you to build with or without cache for debugging purposes.
DOCKER_BUILD_OPTS := --no-cache
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no longer needed, all builds are done an Github Actions - we should always cache


.PHONY: publish-release
publish-release: check-version-warning build
# Push images to Docker Hub
docker push $(IMAGE_NAMESPACE)/argocli:$(VERSION)
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 never push locally for releases

@@ -36,29 +36,6 @@ const Label = "argo-e2e"
// Cron tests run in parallel, so use a different label so they are not deleted when a new test runs
const LabelCron = Label + "-cron"

var imageTag string

func init() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unreliable code removed in v2.9

@alexec alexec changed the title ci: Make builds faster ci: Make builds marginally faster Jul 19, 2020
@alexec alexec marked this pull request as ready for review July 20, 2020 19:01
@alexec alexec changed the title ci: Make builds marginally faster ci: Make builds marginally faster. Fixes #3515 Jul 21, 2020
@alexec alexec merged commit d07a0e7 into argoproj:master Jul 21, 2020
@alexec alexec deleted the faster branch July 21, 2020 21:32
alexec added a commit that referenced this pull request Jul 23, 2020
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.

v2.9.3 Docker images report they are v2.10.0-rc1
2 participants