-
Notifications
You must be signed in to change notification settings - Fork 5k
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: adding gocover to e2e tests (#18130) #18247
Conversation
Thanks for the PR! Can you rebase? Codecov report uploading was broken. |
Done! However, I am not 100% sure how to test this. I have a feeling this won't work the first time. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #18247 +/- ##
==========================================
- Coverage 44.99% 44.90% -0.10%
==========================================
Files 355 354 -1
Lines 47925 47705 -220
==========================================
- Hits 21564 21421 -143
+ Misses 23561 23488 -73
+ Partials 2800 2796 -4 ☔ View full report in Codecov by Sentry. |
Looks like codecov is uploading, but the coverage amount hasn't changed... will look tomorrow |
Checking https://github.com/argoproj/argo-cd/actions/runs/9341278349/job/25707896658?pr=18247 and the uploading e2e coverage report
I think I had a bad path |
Procfile
Outdated
@@ -1,13 +1,13 @@ | |||
controller: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/argocd || COMMAND='go run ./cmd/main.go' && sh -c "HOSTNAME=testappcontroller-1 FORCE_LOG_COLORS=1 ARGOCD_FAKE_IN_CLUSTER=true ARGOCD_TLS_DATA_PATH=${ARGOCD_TLS_DATA_PATH:-/tmp/argocd-local/tls} ARGOCD_SSH_DATA_PATH=${ARGOCD_SSH_DATA_PATH:-/tmp/argocd-local/ssh} ARGOCD_BINARY_NAME=argocd-application-controller $COMMAND --loglevel debug --redis localhost:${ARGOCD_E2E_REDIS_PORT:-6379} --repo-server localhost:${ARGOCD_E2E_REPOSERVER_PORT:-8081} --otlp-address=${ARGOCD_OTLP_ADDRESS} --application-namespaces=${ARGOCD_APPLICATION_NAMESPACES:-''} --server-side-diff-enabled=${ARGOCD_APPLICATION_CONTROLLER_SERVER_SIDE_DIFF:-'false'}" | |||
api-server: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/argocd || COMMAND='go run ./cmd/main.go' && sh -c "FORCE_LOG_COLORS=1 ARGOCD_FAKE_IN_CLUSTER=true ARGOCD_TLS_DATA_PATH=${ARGOCD_TLS_DATA_PATH:-/tmp/argocd-local/tls} ARGOCD_SSH_DATA_PATH=${ARGOCD_SSH_DATA_PATH:-/tmp/argocd-local/ssh} ARGOCD_BINARY_NAME=argocd-server $COMMAND --loglevel debug --redis localhost:${ARGOCD_E2E_REDIS_PORT:-6379} --disable-auth=${ARGOCD_E2E_DISABLE_AUTH:-'true'} --insecure --dex-server http://localhost:${ARGOCD_E2E_DEX_PORT:-5556} --repo-server localhost:${ARGOCD_E2E_REPOSERVER_PORT:-8081} --port ${ARGOCD_E2E_APISERVER_PORT:-8080} --otlp-address=${ARGOCD_OTLP_ADDRESS} --application-namespaces=${ARGOCD_APPLICATION_NAMESPACES:-''}" | |||
controller: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/argocd || COMMAND='go run ./cmd/main.go' && sh -c "GOCOVERDIR="test-results" HOSTNAME=testappcontroller-1 FORCE_LOG_COLORS=1 ARGOCD_FAKE_IN_CLUSTER=true ARGOCD_TLS_DATA_PATH=${ARGOCD_TLS_DATA_PATH:-/tmp/argocd-local/tls} ARGOCD_SSH_DATA_PATH=${ARGOCD_SSH_DATA_PATH:-/tmp/argocd-local/ssh} ARGOCD_BINARY_NAME=argocd-application-controller $COMMAND --loglevel debug --redis localhost:${ARGOCD_E2E_REDIS_PORT:-6379} --repo-server localhost:${ARGOCD_E2E_REPOSERVER_PORT:-8081} --otlp-address=${ARGOCD_OTLP_ADDRESS} --application-namespaces=${ARGOCD_APPLICATION_NAMESPACES:-''} --server-side-diff-enabled=${ARGOCD_APPLICATION_CONTROLLER_SERVER_SIDE_DIFF:-'false'}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we need to make the same changes to the test tool Procfile
?
Didn't seem to help. When I run:
I see the
|
Ok after looking at the
|
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: Nicholas Morey <nicholas@morey.tech> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: Isaac Gaskin <isaac.gaskin@circle.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…oproj#18260) Bumps library/node from 22.1.0 to 22.2.0. --- updated-dependencies: - dependency-name: library/node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…er (argoproj#18261) Bumps library/node from 22.1.0 to 22.2.0. --- updated-dependencies: - dependency-name: library/node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Bumps bitnami/kubectl from `09c66fb` to `0aef4af`. --- updated-dependencies: - dependency-name: bitnami/kubectl dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
* chore(deps): upgrade helm to 3.14.4 Signed-off-by: Justin Marquis <justin@akuity.io> * place checksums where they belong Signed-off-by: Justin Marquis <justin@akuity.io> --------- Signed-off-by: Justin Marquis <justin@akuity.io> Co-authored-by: Dan Garfield <dan@codefresh.io> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: Tomáš Novák <tomas.novak@bcas.cz> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…rgoproj#17929) (argoproj#18207) * Remove CSS class `.cd-layout--extension` Signed-off-by: David Wu <155603967+david-wu-octopus@users.noreply.github.com> * Remove all usages of CSS class `.cd-layout--extension` Signed-off-by: David Wu <155603967+david-wu-octopus@users.noreply.github.com> * Remove unused prop `isExtension` from `<Layout />` Signed-off-by: David Wu <155603967+david-wu-octopus@users.noreply.github.com> * Remove unused property `extension` from type `Routes` Signed-off-by: David Wu <155603967+david-wu-octopus@users.noreply.github.com> * Fix linting error Signed-off-by: David Wu <155603967+david-wu-octopus@users.noreply.github.com> --------- Signed-off-by: David Wu <155603967+david-wu-octopus@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: condaatje <condaatje@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…17600) (argoproj#18243) * fix: Add title for full content without clicking Signed-off-by: sunyeongchoi <suoung0716@gmail.com> * fix: apply ui lint Signed-off-by: sunyeongchoi <suoung0716@gmail.com> * fix: apply argo-ui Tooltip and define local variable Signed-off-by: sunyeongchoi <suoung0716@gmail.com> --------- Signed-off-by: sunyeongchoi <suoung0716@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…on (argoproj#18214) * [18066] - Added DomainHint key in OIDCConfig struct Signed-off-by: nikzayn <nikhilvaidyar1997@gmail.com> * [18066] - Added DomainHint in options for grantType Signed-off-by: nikzayn <nikhilvaidyar1997@gmail.com> * [18066] - Auth0 readme.md --updated Signed-off-by: nikzayn <nikhilvaidyar1997@gmail.com> --------- Signed-off-by: nikzayn <nikhilvaidyar1997@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Bumps library/node from 21.6.2 to 21.7.0. --- updated-dependencies: - dependency-name: library/node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pasha-codefresh <pavel@codefresh.io> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: CI <ci@argoproj.com> Co-authored-by: CI <ci@argoproj.com> Co-authored-by: pasha-codefresh <pavel@codefresh.io> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
* feat: argocd cli support fish completion Signed-off-by: Sn0rt <wangguohao.2009@gmail.com> * fix: update user doc for argocd fish completion Signed-off-by: Sn0rt <wangguohao.2009@gmail.com> --------- Signed-off-by: Sn0rt <wangguohao.2009@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: Zadkiel AHARONIAN <hello@zadkiel.fr> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…rgoproj#18504) * chore(deps): bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](goreleaser/goreleaser-action@5742e2a...286f3b1) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * bump goreleaser version Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
argoproj#16611 Signed-off-by: bhargav joshi <bhargav.joshi@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…rgoproj#16564) * Adds consistent hashing with bound loads sharding algorithm Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com> * Make the assignement consistent accross all clusters - The assignment or running of the algorithm has to be consistent across all the clusters. Changed the function to return a map where the consistent hash will be used to build the map - Modifications to the createConsistentHashsingWithBoundLoads function. This will create the map for cluster to shard. Note that the list must be consistent across all shards so that is why the cluster list must be sorted before going through the consistent hash algorithm Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com> * Extracting constant and simplifying boolean expression Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com> * Update docs: consistent-hashing sharding algorithm Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com> --------- Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…18290) * docs: proposal for enhancing scoped repository credentials Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: flesh out section on project matching Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: scope down proposal For the sake of time and simplicity, we will not do any modifications of `repo-creds` secrets for this proposal. Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: added feedback Feedback from contributors' meeting, part one. Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: modification date Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: remove use cases Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: spec update Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: clarify backward-compatability Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: further clarification of backwards compatibility Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * Update docs/proposals/project-scoped-repository-enhancements.md Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * Update docs/proposals/project-scoped-repository-enhancements.md Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * Update docs/proposals/project-scoped-repository-enhancements.md Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * chore: behavior in line with current impl Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * docs: add reviewers Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> * Update docs/proposals/project-scoped-repository-enhancements.md Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> --------- Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…j#17566) * feat: changes git client to resolve semantic versioning tags Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> * docs: update documentation Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> * feat: simplify `resolveSemverRevision` method Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> * chore: add two more test cases Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> * chore: update `resolveSemverRevision` behavior Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> * chore: add end to end test Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> * chore: fix end to end test Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> * chore: improve semver constraint e2e testing Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> --------- Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: Paul Larsen <pnvlarsen@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…argoproj#18519) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.1 to 20.14.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Bumps bitnami/kubectl from `0aef4af` to `cdca6c1`. --- updated-dependencies: - dependency-name: bitnami/kubectl dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…ret (argoproj#18490) * Update troubleshooting-errors with custom secret Adding section for a custom secret Signed-off-by: Nicholas Hawkes <hawkesn@gmail.com> * Update troubleshooting-errors.md Signed-off-by: Nicholas Hawkes <hawkesn@gmail.com> --------- Signed-off-by: Nicholas Hawkes <hawkesn@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
* fix: prevent enumerating by cluster name, return exact error for case when cluster exists and not Signed-off-by: pashakostohrys <pavel@codefresh.io> * fix: prevent cluster enumeration by name Signed-off-by: pashakostohrys <pavel@codefresh.io> * fix: prevent cluster enumeration by name Signed-off-by: pashakostohrys <pavel@codefresh.io> * fix linter and add unit test Signed-off-by: pashakostohrys <pavel@codefresh.io> * fix linter and add unit test Signed-off-by: pashakostohrys <pavel@codefresh.io> * fix linter and add unit test Signed-off-by: pashakostohrys <pavel@codefresh.io> * fix linter and add unit test Signed-off-by: pashakostohrys <pavel@codefresh.io> * fix linter and add unit test Signed-off-by: pashakostohrys <pavel@codefresh.io> --------- Signed-off-by: pashakostohrys <pavel@codefresh.io> Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
020aea9
to
eca2d9a
Compare
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
closes #18130
Checklist: