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

chore(deps): bump express from 4.17.1 to 4.18.2 in /ui #39

Open
wants to merge 3 commits into
base: custom
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/custom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Custom
on:
push:
branches:
- custom
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Login Docker Hub
env:
DOCKERHUB_ACCESS_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
run: |
echo ${DOCKERHUB_ACCESS_TOKEN} | docker login --username yujunz --password-stdin
echo ${QUAY_PASSWORD} | docker login quay.io --username yujunz --password-stdin

- name: Build
env:
IMAGE_NAMESPACE: quay.io/yujunz
DOCKER_PUSH: true
run: IMAGE_TAG=$(cat VERSION)-$(git describe --always --dirty) make image
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ DOCKER_WORKDIR?=/go/src/github.com/argoproj/argo-cd

ARGOCD_PROCFILE?=Procfile

# Strict mode has been disabled in latest versions of mkdocs-material.
# Strict mode has been disabled in latest versions of mkdocs-material.
# Thus pointing to the older image of mkdocs-material matching the version used by argo-cd.
MKDOCS_DOCKER_IMAGE?=squidfunk/mkdocs-material:4.1.1
MKDOCS_RUN_ARGS?=
Expand Down Expand Up @@ -117,7 +117,7 @@ define run-in-test-client
bash -c "$(1)"
endef

#
#
define exec-in-test-server
docker exec -it -u $(shell id -u):$(shell id -g) -e ARGOCD_E2E_RECORD=$(ARGOCD_E2E_RECORD) -e ARGOCD_E2E_K3S=$(ARGOCD_E2E_K3S) argocd-test-server $(1)
endef
Expand Down Expand Up @@ -299,7 +299,10 @@ else
image:
DOCKER_BUILDKIT=1 docker build -t $(IMAGE_PREFIX)argocd:$(IMAGE_TAG) .
endif
@if [ "$(DOCKER_PUSH)" = "true" ] ; then docker push $(IMAGE_PREFIX)argocd:$(IMAGE_TAG) ; fi
@if [ "$(DOCKER_PUSH)" = "true" ] ; then \
docker tag $(IMAGE_PREFIX)argocd:$(IMAGE_TAG) $(IMAGE_PREFIX)argocd:latest \
&& docker push --all-tags $(IMAGE_PREFIX)argocd ; \
fi

.PHONY: armimage
armimage:
Expand Down
7 changes: 4 additions & 3 deletions controller/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,11 @@ func ownerRefGV(ownerRef metav1.OwnerReference) schema.GroupVersion {
}

func getAppRecursive(r *clustercache.Resource, ns map[kube.ResourceKey]*clustercache.Resource, visited map[kube.ResourceKey]bool) string {
if !visited[r.ResourceKey()] {
visited[r.ResourceKey()] = true
k := r.ResourceKey()
if !visited[k] {
visited[k] = true
} else {
log.Warnf("Circular dependency detected: %v.", visited)
log.Warnf("Circular dependency detected: %v in %v.", k, visited)
return resInfo(r).AppName
}

Expand Down
7 changes: 7 additions & 0 deletions controller/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,13 @@ func (m *appStateManager) CompareAppState(app *v1alpha1.Application, project *ap
})
ts.AddCheckpoint("health_ms")
compRes.timings = ts.Timings()

for k, v := range ts.Timings() {
logCtx = logCtx.WithField(k, v.Milliseconds())
}
logCtx = logCtx.WithField("time_ms", time.Since(ts.StartTime).Milliseconds())
logCtx.Info("CompareAppState stats")

return &compRes
}

Expand Down
Loading