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

feat(appset): make K8s client configurable #8

Draft
wants to merge 77 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
204176a
chore: enable errorlint linter on applicationset folder (#18618)
mmorel-35 Jun 12, 2024
e0bc7cf
feat(appset): make K8s client configurable
alexymantha Jun 12, 2024
4bfff73
Merge branch 'master' into configure-qps-burst
alexymantha Jun 12, 2024
f1848f5
chore: enable errorlint linter on server folder (#18624)
mmorel-35 Jun 12, 2024
311c059
chore: enable require-error rule from testifylint linter (#18621)
mmorel-35 Jun 13, 2024
f7341ae
chore: enable errorlint linter on cmpserver and reposerver folders (#…
mmorel-35 Jun 13, 2024
fba3c2e
chore(deps): bump library/golang from `969349b` to `0f76912` (#18628)
dependabot[bot] Jun 13, 2024
6232d73
chore(deps): bump bitnami/kubectl in /test/container (#18626)
dependabot[bot] Jun 13, 2024
6f76e71
chore(deps): bump chromedriver from 125.0.3 to 126.0.0 in /ui-test (#…
dependabot[bot] Jun 13, 2024
7adec6e
ci: updated yarn version (#18631)
blakepettersson Jun 13, 2024
9bc1578
feat: Support Rollback multi-source apps; Follow-up to PR 14124 (#18615)
keithchong Jun 13, 2024
2040bd6
fix: Correction in Rocket.chat documentation (#18498)
raghavi101 Jun 13, 2024
5efa404
chore(deps): bump library/golang in /test/container (#18625)
dependabot[bot] Jun 13, 2024
9592b84
feat: adding gocover to e2e tests (#18130) (#18537)
rumstead Jun 13, 2024
9f1e2e8
chore: enable gocritic linter (#18633)
mmorel-35 Jun 13, 2024
ae61752
feat: Provide Edit support in Sources tab for multi-source app (#1758…
keithchong Jun 14, 2024
7efde25
docs: update multiple sources docs (#18662)
ishitasequeira Jun 14, 2024
1757b7e
chore(deps): bump SonarSource/sonarqube-scan-action from 2.1.0 to 2.2…
dependabot[bot] Jun 14, 2024
f8557d2
chore(deps): bump codecov/codecov-action from 4.4.1 to 4.5.0 (#18650)
dependabot[bot] Jun 14, 2024
c9ea5b1
chore: extend require-error rule from testifylint (#18658)
mmorel-35 Jun 14, 2024
e025194
fix: minor ui fixes for repositories (#18648)
blakepettersson Jun 14, 2024
03e6f8a
chore: update docs and skip gpg tests on appset (#18637)
ishitasequeira Jun 14, 2024
48eb7f3
docs: Improve the FAQ (#12039) (#18645)
jsoref Jun 14, 2024
2d5c59c
fix(ui): dropdown-fixed in logs (#18470)
surajyadav1108 Jun 14, 2024
1405413
chore(deps): bump library/node from `f73cc32` to `5e4044f` in /ui-tes…
dependabot[bot] Jun 14, 2024
57ee536
chore(deps): bump library/node from `f73cc32` to `5e4044f` (#18654)
dependabot[bot] Jun 14, 2024
5796557
chore(deps): bump library/node in /test/container (#18651)
dependabot[bot] Jun 14, 2024
170d543
chore(deps): bump library/golang from `0f76912` to `a1dc408` (#18674)
crenshaw-dev Jun 14, 2024
2c0cc02
docs(cli): remove docs for non-existing `argocd app set` flags (#1867…
crenshaw-dev Jun 14, 2024
1e1fe04
Merge branch 'master' into configure-qps-burst
alexymantha Jun 14, 2024
0d1d1a1
chore: extend require-error rule from testifylint (#18675)
mmorel-35 Jun 14, 2024
cc700df
chore(ci): only test four latest k8s versions (#18676)
crenshaw-dev Jun 14, 2024
e3fa52d
chore: bump version (#18677)
crenshaw-dev Jun 15, 2024
eac08dc
chore: extend require-error rule from testifylint (#18681)
mmorel-35 Jun 15, 2024
38d6db6
chore: enable require-error rule from errorlint linter on cmd folder …
mmorel-35 Jun 15, 2024
ad461c2
chore(deps): bump Kustomize from 3.14.4 to 3.15.2 (#18680)
crenshaw-dev Jun 15, 2024
f770a2a
chore: enable require-error rule from errorlint linter on test folder…
mmorel-35 Jun 15, 2024
1ecd397
chore: ignore mocks in codecov (#18685)
crenshaw-dev Jun 15, 2024
dbb9bc8
chore: add codecov config to CI approvers (#18686)
crenshaw-dev Jun 15, 2024
336cc29
feat(reposerver): Skip calling git fetch if commit to checkout exists…
shady-canva Jun 15, 2024
2aefa9c
chore(deps): bump gitops engine (#18679)
crenshaw-dev Jun 15, 2024
c556cf7
chore: enable require-error rule from errorlint linter on server fold…
mmorel-35 Jun 15, 2024
b3b090b
[Bot] docs: Update Snyk reports (#18692)
github-actions[bot] Jun 16, 2024
52b1b43
chore(deps): bump tj-actions/changed-files from 42.0.2 to 44.5.2 (#18…
dependabot[bot] Jun 16, 2024
130c0f4
chore: missing qtar in go exclusions (#18698)
mmorel-35 Jun 16, 2024
d57800f
chore(deps): bump chromedriver from 126.0.0 to 126.0.1 in /ui-test (#…
dependabot[bot] Jun 17, 2024
1fd2f62
chore(deps): bump library/redis in /test/container (#18652)
dependabot[bot] Jun 17, 2024
af60215
chore(deps): bump library/golang in /test/container (#18653)
dependabot[bot] Jun 17, 2024
e5c0526
chore(deps): bump library/golang from `0f76912` to `a1dc408` (#18655)
dependabot[bot] Jun 17, 2024
89a0cc3
chore: enable require-error rule from errorlint linter on pkg folder …
mmorel-35 Jun 17, 2024
4494fe5
chore: enable require-error rule from errorlint linter on application…
mmorel-35 Jun 17, 2024
d7fc1bf
chore: enable require-error rule from errorlint linter on controller …
mmorel-35 Jun 17, 2024
4c6ad9d
feat: Add labels on Application's k8s events (#11381) (#18160)
svghadi Jun 17, 2024
8f28199
chore: enable require-error from testifylint on cmpserver and reposer…
mmorel-35 Jun 18, 2024
9f0d2a8
fix: docs site version selector broken (#18378)
yyzxw Jun 18, 2024
f8e2ca7
fix: JSON unmarshaling error handling and nil return (#18700)
Yuni-sa Jun 18, 2024
50f889c
chore(deps): bump library/golang from `4950c1c` to `c2010b9` (#18704)
dependabot[bot] Jun 18, 2024
3fb9d95
chore(deps-dev): bump @types/node from 20.14.2 to 20.14.4 in /ui-test…
dependabot[bot] Jun 18, 2024
e5eddc3
chore(deps): bump library/golang in /test/container (#18706)
dependabot[bot] Jun 18, 2024
fe965ed
chore(deps): bump library/redis in /test/container (#18707)
dependabot[bot] Jun 18, 2024
3f0d8d5
chore(deps): bump ws from 8.17.0 to 8.17.1 in /ui (#18712)
dependabot[bot] Jun 18, 2024
029b5ac
chore(deps): bump ws from 8.17.0 to 8.17.1 in /ui-test (#18711)
dependabot[bot] Jun 18, 2024
04edbe9
chore: enable error-is-as rule from testifylint linter (#18710)
mmorel-35 Jun 18, 2024
c88d3a9
chore(deps): bump docker/build-push-action from 5.4.0 to 6.0.0 (#18708)
dependabot[bot] Jun 18, 2024
5bf93d4
docs: don't populate tested versions on latest (#18719)
crenshaw-dev Jun 18, 2024
70755aa
feat(cli): add cmd to preview generated apps of appsets (#10895) (#16…
agaudreault Jun 18, 2024
ff1d37f
fix(ci): use commit hash instead of release number in security insigh…
crenshaw-dev Jun 18, 2024
7c7af40
chore: Bump version in master (#18717)
github-actions[bot] Jun 18, 2024
6bc0b29
test(cli): unstable unit test caused by unsorted array (#18722)
agaudreault Jun 18, 2024
e6dc415
fix(ui): set project to empty string if undefined (#18732)
blakepettersson Jun 19, 2024
331944a
fix(docs): fix example in userguide/diffing (#18730)
tillepille Jun 19, 2024
c83a988
chore(deps): bump chromedriver from 126.0.1 to 126.0.2 in /ui-test (#…
dependabot[bot] Jun 20, 2024
1aeed6a
chore(deps-dev): bump @types/node from 20.14.4 to 20.14.6 in /ui-test…
dependabot[bot] Jun 20, 2024
d2436d9
Update USERS.md (#18743)
toniGrabulosa Jun 20, 2024
f7d854e
chore(deps-dev): bump @types/node from 20.14.6 to 20.14.7 in /ui-test…
dependabot[bot] Jun 21, 2024
e98d3b2
chore(deps): bump docker/build-push-action from 6.0.0 to 6.0.2 (#18749)
dependabot[bot] Jun 21, 2024
fff55d5
Merge branch 'master' into configure-qps-burst
alexymantha Jun 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ignore:
- "pkg/client/.*"
- "vendor/.*"
- "test/.*"
- "**/mocks/*"
coverage:
status:
# we've found this not to be useful
Expand Down
59 changes: 38 additions & 21 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
docs: ${{ steps.filter.outputs.docs_any_changed }}
steps:
- uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0
- uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 # v42.0.2
- uses: tj-actions/changed-files@d6babd6899969df1a11d14c368283ea4436bca78 # v44.5.2
id: filter
with:
# Any file which is not under docs/, ui/ or is not a markdown file is counted as a backend file
Expand Down Expand Up @@ -171,16 +171,11 @@ jobs:
go mod download
- name: Run all unit tests
run: make test-local
- name: Generate code coverage artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: code-coverage
path: coverage.out
- name: Generate test results artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: test-results
path: test-results/
path: test-results

test-go-race:
name: Run unit tests with -race for Go packages
Expand Down Expand Up @@ -341,6 +336,7 @@ jobs:
- test-go
- build-ui
- changes
- test-e2e
env:
sonar_secret: ${{ secrets.SONAR_TOKEN }}
steps:
Expand All @@ -357,30 +353,34 @@ jobs:
- name: Remove other node_modules directory
run: |
rm -rf ui/node_modules/argo-ui/node_modules
- name: Create test-results directory
run: |
mkdir -p test-results
- name: Get code coverage artifact
- name: Get e2e code coverage
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: code-coverage
- name: Get test result artifact
name: e2e-code-coverage
path: e2e-code-coverage
- name: Get unit test code coverage
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: test-results
path: test-results
- name: combine-go-coverage
# We generate coverage reports for all Argo CD components, but only the applicationset-controller report
# contains coverage data. The other components currently don't shut down gracefully, so no coverage data is
# produced. Once those components are fixed, we can add references to their coverage output directories.
run: |
go tool covdata percent -i=test-results,e2e-code-coverage/applicationset-controller -o test-results/full-coverage.out
- name: Upload code coverage information to codecov.io
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
file: coverage.out
file: test-results/full-coverage.out
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Perform static code analysis using SonarCloud
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
uses: SonarSource/sonarqube-scan-action@86fe81775628f1c6349c28baab87881a2170f495 # v2.1.0
uses: SonarSource/sonarqube-scan-action@540792c588b5c2740ad2bb4667db5cd46ae678f2 # v2.2
if: env.sonar_secret != ''
test-e2e:
name: Run end-to-end tests
Expand All @@ -389,7 +389,16 @@ jobs:
strategy:
fail-fast: false
matrix:
k3s-version: [v1.29.1, v1.28.6, v1.27.10, v1.26.13, v1.25.16]
k3s:
- version: v1.29.1
# We designate the latest version because we only collect code coverage for that version.
latest: true
- version: v1.28.6
latest: false
- version: v1.27.10
latest: false
- version: v1.26.13
latest: false
needs:
- build-go
- changes
Expand Down Expand Up @@ -418,7 +427,7 @@ jobs:
sudo pkill mono || true
- name: Install K3S
env:
INSTALL_K3S_VERSION: ${{ matrix.k3s-version }}+k3s1
INSTALL_K3S_VERSION: ${{ matrix.k3s.version }}+k3s1
run: |
set -x
curl -sfL https://get.k3s.io | sh -
Expand Down Expand Up @@ -470,7 +479,7 @@ jobs:
# port 8080 which is not visible in netstat -tulpen, but still there
# with a HTTP listener. We have API server listening on port 8088
# instead.
make start-e2e-local 2>&1 | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g" > /tmp/e2e-server.log &
make start-e2e-local COVERAGE_ENABLED=true 2>&1 | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g" > /tmp/e2e-server.log &
count=1
until curl -f http://127.0.0.1:8088/healthz; do
sleep 10;
Expand All @@ -484,10 +493,18 @@ jobs:
run: |
set -x
make test-e2e-local
goreman run stop-all || echo "goreman trouble"
sleep 30
- name: Upload e2e coverage report
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: e2e-code-coverage
path: /tmp/coverage
if: ${{ matrix.k3s.latest }}
- name: Upload e2e-server logs
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: e2e-server-k8s${{ matrix.k3s-version }}.log
name: e2e-server-k8s${{ matrix.k3s.version }}.log
path: /tmp/e2e-server.log
if: ${{ failure() }}

Expand All @@ -512,4 +529,4 @@ jobs:
exit 0
else
exit 1
fi
fi
2 changes: 1 addition & 1 deletion .github/workflows/image-reuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:

- name: Build and push container image
id: image
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 #v5.4.0
uses: docker/build-push-action@f6010ea70151369b06f0194be1051fbbdff851b2 #v6.0.2
with:
context: .
platforms: ${{ inputs.platforms }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ jobs:
# Replace the 'project-release: vX.X.X-rcX' line in SECURITY-INSIGHTS.yml
sed -i "s/project-release: v.*$/project-release: v${{ env.NEW_VERSION }}/" SECURITY-INSIGHTS.yml
# Update the 'commit-hash: XXXXXXX' line in SECURITY-INSIGHTS.yml
sed -i "s/commit-hash: .*/commit-hash: ${{ env.NEW_VERSION }}/" SECURITY-INSIGHTS.yml
sed -i "s/commit-hash: .*/commit-hash: ${{ env.COMMIT_HASH }}/" SECURITY-INSIGHTS.yml
if: ${{ env.UPDATE_VERSION == 'true' }}

- name: Create PR to update VERSION on master branch
Expand Down
19 changes: 13 additions & 6 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
issues:
exclude:
- SA1019
- SA5011
exclude-rules:
- path: "(applicationset|cmpserver|reposerver|server)/"
linters:
- errorlint
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- errcheck
- errorlint
- gocritic
- gofumpt
- goimports
- gosimple
Expand All @@ -22,14 +20,23 @@ linters:
- unused
- whitespace
linters-settings:
gocritic:
disabled-checks:
- appendAssign
- assignOp # Keep it disabled for readability
- badCond
- commentFormatting
- exitAfterDefer
- ifElseChain
- mapKey
- singleCaseSwitch
- typeSwitchVar
goimports:
local-prefixes: github.com/argoproj/argo-cd/v2
testifylint:
enable-all: true
disable:
- error-is-as
- float-compare
- go-require
- require-error
run:
timeout: 50m
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/mkdocs.yml @argoproj/argocd-approvers @argoproj/argocd-approvers-docs

# CI
/.codecov.yml @argoproj/argocd-approvers @argoproj/argocd-approvers-ci
/.github/** @argoproj/argocd-approvers @argoproj/argocd-approvers-ci
/.goreleaser.yaml @argoproj/argocd-approvers @argoproj/argocd-approvers-ci
/sonar-project.properties @argoproj/argocd-approvers @argoproj/argocd-approvers-ci
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG BASE_IMAGE=docker.io/library/ubuntu:24.04@sha256:3f85b7caad41a95462cf5b787d8
# Initial stage which pulls prepares build dependencies and CLI tooling we need for our final image
# Also used as the image in CI jobs so needs all dependencies
####################################################################################################
FROM docker.io/library/golang:1.22.4@sha256:969349b8121a56d51c74f4c273ab974c15b3a8ae246a5cffc1df7d28b66cf978 AS builder
FROM docker.io/library/golang:1.22.4@sha256:c2010b9c2342431a24a2e64e33d9eb2e484af49e72c820e200d332d214d5e61f AS builder

RUN echo 'deb http://archive.debian.org/debian buster-backports main' >> /etc/apt/sources.list

Expand Down Expand Up @@ -83,7 +83,7 @@ WORKDIR /home/argocd
####################################################################################################
# Argo CD UI stage
####################################################################################################
FROM --platform=$BUILDPLATFORM docker.io/library/node:22.3.0@sha256:f73cc32c7285fba333cc4fbe00d5ff8babf7ebfa6a2557ab22919bcfdff05f0e AS argocd-ui
FROM --platform=$BUILDPLATFORM docker.io/library/node:22.3.0@sha256:5e4044ff6001d06e7748e35bfa4f80c73cf5f5a7360a1b782995e038a01b0585 AS argocd-ui

WORKDIR /src
COPY ["ui/package.json", "ui/yarn.lock", "./"]
Expand All @@ -101,7 +101,7 @@ RUN HOST_ARCH=$TARGETARCH NODE_ENV='production' NODE_ONLINE_ENV='online' NODE_OP
####################################################################################################
# Argo CD Build stage which performs the actual build of Argo CD binaries
####################################################################################################
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.22.4@sha256:969349b8121a56d51c74f4c273ab974c15b3a8ae246a5cffc1df7d28b66cf978 AS argocd-build
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.22.4@sha256:c2010b9c2342431a24a2e64e33d9eb2e484af49e72c820e200d332d214d5e61f AS argocd-build

WORKDIR /go/src/github.com/argoproj/argo-cd

Expand Down
26 changes: 20 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ DEV_IMAGE?=false
ARGOCD_GPG_ENABLED?=true
ARGOCD_E2E_APISERVER_PORT?=8080

ifeq (${COVERAGE_ENABLED}, true)
# We use this in the cli-local target to enable code coverage for e2e tests.
COVERAGE_FLAG=-cover
else
COVERAGE_FLAG=
endif

override LDFLAGS += \
-X ${PACKAGE}.version=${VERSION} \
-X ${PACKAGE}.buildDate=${BUILD_DATE} \
Expand Down Expand Up @@ -240,7 +247,7 @@ cli: test-tools-image

.PHONY: cli-local
cli-local: clean-debug
CGO_ENABLED=${CGO_FLAG} GODEBUG="tarinsecurepath=0,zipinsecurepath=0" go build -v -ldflags '${LDFLAGS}' -o ${DIST_DIR}/${CLI_NAME} ./cmd
CGO_ENABLED=${CGO_FLAG} GODEBUG="tarinsecurepath=0,zipinsecurepath=0" go build $(COVERAGE_FLAG) -v -ldflags '${LDFLAGS}' -o ${DIST_DIR}/${CLI_NAME} ./cmd

.PHONY: gen-resources-cli-local
gen-resources-cli-local: clean-debug
Expand Down Expand Up @@ -391,9 +398,9 @@ test: test-tools-image
.PHONY: test-local
test-local:
if test "$(TEST_MODULE)" = ""; then \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES=`go list ./... | grep -v 'test/e2e'` ./hack/test.sh -coverprofile=coverage.out; \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES=`go list ./... | grep -v 'test/e2e'` ./hack/test.sh -args -test.gocoverdir="$(PWD)/test-results"; \
else \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES="$(TEST_MODULE)" ./hack/test.sh -coverprofile=coverage.out "$(TEST_MODULE)"; \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES="$(TEST_MODULE)" ./hack/test.sh -args -test.gocoverdir="$(PWD)/test-results" "$(TEST_MODULE)"; \
fi

.PHONY: test-race
Expand All @@ -405,9 +412,9 @@ test-race: test-tools-image
.PHONY: test-race-local
test-race-local:
if test "$(TEST_MODULE)" = ""; then \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES=`go list ./... | grep -v 'test/e2e'` ./hack/test.sh -race -coverprofile=coverage.out; \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES=`go list ./... | grep -v 'test/e2e'` ./hack/test.sh -race -args -test.gocoverdir="$(PWD)/test-results"; \
else \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES="$(TEST_MODULE)" ./hack/test.sh -race -coverprofile=coverage.out; \
DIST_DIR=${DIST_DIR} RERUN_FAILS=0 PACKAGES="$(TEST_MODULE)" ./hack/test.sh -race -args -test.gocoverdir="$(PWD)/test-results"; \
fi

# Run the E2E test suite. E2E test servers (see start-e2e target) must be
Expand All @@ -421,7 +428,7 @@ test-e2e:
test-e2e-local: cli-local
# NO_PROXY ensures all tests don't go out through a proxy if one is configured on the test system
export GO111MODULE=off
DIST_DIR=${DIST_DIR} RERUN_FAILS=5 PACKAGES="./test/e2e" ARGOCD_E2E_RECORD=${ARGOCD_E2E_RECORD} ARGOCD_GPG_ENABLED=true NO_PROXY=* ./hack/test.sh -timeout $(ARGOCD_E2E_TEST_TIMEOUT) -v
DIST_DIR=${DIST_DIR} RERUN_FAILS=5 PACKAGES="./test/e2e" ARGOCD_E2E_RECORD=${ARGOCD_E2E_RECORD} ARGOCD_GPG_ENABLED=true NO_PROXY=* ./hack/test.sh -timeout $(ARGOCD_E2E_TEST_TIMEOUT) -v -args -test.gocoverdir="$(PWD)/test-results"

# Spawns a shell in the test server container for debugging purposes
debug-test-server: test-tools-image
Expand Down Expand Up @@ -452,6 +459,12 @@ start-e2e-local: mod-vendor-local dep-ui-local cli-local
mkdir -p /tmp/argo-e2e/app/config/gpg/keys && chmod 0700 /tmp/argo-e2e/app/config/gpg/keys
mkdir -p /tmp/argo-e2e/app/config/gpg/source && chmod 0700 /tmp/argo-e2e/app/config/gpg/source
mkdir -p /tmp/argo-e2e/app/config/plugin && chmod 0700 /tmp/argo-e2e/app/config/plugin
# create folders to hold go coverage results for each component
mkdir -p /tmp/coverage/app-controller
mkdir -p /tmp/coverage/api-server
mkdir -p /tmp/coverage/repo-server
mkdir -p /tmp/coverage/applicationset-controller
mkdir -p /tmp/coverage/notification
# set paths for locally managed ssh known hosts and tls certs data
ARGOCD_SSH_DATA_PATH=/tmp/argo-e2e/app/config/ssh \
ARGOCD_TLS_DATA_PATH=/tmp/argo-e2e/app/config/tls \
Expand All @@ -469,6 +482,7 @@ start-e2e-local: mod-vendor-local dep-ui-local cli-local
ARGOCD_APPLICATIONSET_CONTROLLER_ALLOWED_SCM_PROVIDERS=http://127.0.0.1:8341,http://127.0.0.1:8342,http://127.0.0.1:8343,http://127.0.0.1:8344 \
ARGOCD_E2E_TEST=true \
goreman -f $(ARGOCD_PROCFILE) start ${ARGOCD_START}
ls -lrt /tmp/coverage

# Cleans VSCode debug.test files from sub-dirs to prevent them from being included in by golang embed
.PHONY: clean-debug
Expand Down
Loading
Loading