Skip to content

Commit

Permalink
Merge branch 'master' into status-transition-time
Browse files Browse the repository at this point in the history
  • Loading branch information
blakepettersson authored Jun 21, 2024
2 parents 8795035 + 3dcddee commit 53d49d8
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .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@d6babd6899969df1a11d14c368283ea4436bca78 # v44.5.2
- uses: tj-actions/changed-files@eaf854ef0c266753e1abec356dcf17d92695b251 # v44.5.3
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
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@c382f710d39a5bb4e430307530a720f50c2d3318 #v6.0.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/init-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
git stash pop
- name: Create pull request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
commit-message: "Bump version to ${{ inputs.TARGET_VERSION }}"
title: "Bump version to ${{ inputs.TARGET_VERSION }} on ${{ inputs.TARGET_BRANCH }} branch"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
echo "hashes=$(sha256sum /tmp/sbom.tar.gz | base64 -w0)" >> "$GITHUB_OUTPUT"
- name: Upload SBOM
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # v2.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
if: ${{ env.UPDATE_VERSION == 'true' }}

- name: Create PR to update VERSION on master branch
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
commit-message: Bump version in master
title: "chore: Bump version in master"
Expand Down
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ linters-settings:
testifylint:
enable-all: true
disable:
- float-compare
- go-require
run:
timeout: 50m
1 change: 1 addition & 0 deletions USERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ Currently, the following organizations are **officially** using Argo CD:
1. [Karrot](https://www.daangn.com/)
1. [KarrotPay](https://www.daangnpay.com/)
1. [Kasa](https://kasa.co.kr/)
1. [Kave Home](https://kavehome.com)
1. [Keeeb](https://www.keeeb.com/)
1. [KelkooGroup](https://www.kelkoogroup.com)
1. [Keptn](https://keptn.sh)
Expand Down
2 changes: 1 addition & 1 deletion controller/appcontroller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ func TestProcessRequestedAppOperation_FailedHasRetries(t *testing.T) {
message, _, _ := unstructured.NestedString(receivedPatch, "status", "operationState", "message")
assert.Contains(t, message, "Retrying attempt #1")
retryCount, _, _ := unstructured.NestedFloat64(receivedPatch, "status", "operationState", "retryCount")
assert.Equal(t, float64(1), retryCount)
assert.InEpsilon(t, float64(1), retryCount, 0.0001)
}

func TestProcessRequestedAppOperation_RunningPreviouslyFailed(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions ui-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"dependencies": {
"@types/selenium-webdriver": "^4.1.23",
"assert": "^2.1.0",
"chromedriver": "^126.0.1",
"chromedriver": "^126.0.2",
"selenium-webdriver": "^4.21.0"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.14.4",
"@types/node": "^20.14.7",
"dotenv": "^16.4.5",
"mocha": "^10.4.0",
"prettier": "^2.8.8",
Expand Down
16 changes: 8 additions & 8 deletions ui-test/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.6.tgz#818551d39113081048bdddbef96701b4e8bb9d1b"
integrity sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==

"@types/node@*", "@types/node@^20.14.4":
version "20.14.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.4.tgz#3426db474378502882036d595ec9e79a9b17d1e6"
integrity sha512-1ChboN+57suCT2t/f8lwtPY/k3qTpuD/qnqQuYoBg6OQOcPyaw7PiZVdGpaZYAvhDDtqrt0oAaM8+oSu1xsUGw==
"@types/node@*", "@types/node@^20.14.7":
version "20.14.7"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.7.tgz#342cada27f97509eb8eb2dbc003edf21ce8ab5a8"
integrity sha512-uTr2m2IbJJucF3KUxgnGOZvYbN0QgkGyWxG6973HCpMYFy2KfcgYuIwkJQMQkt1VbBMlvWRbpshFTLxnxCZjKQ==
dependencies:
undici-types "~5.26.4"

Expand Down Expand Up @@ -262,10 +262,10 @@ chokidar@3.5.3:
optionalDependencies:
fsevents "~2.3.2"

chromedriver@^126.0.1:
version "126.0.1"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-126.0.1.tgz#2591500833ba5baa626c2725f2877cce02237883"
integrity sha512-uV4xIvpPimKmV1/Hn9oX0C57tjsBbVtOeKFX9JzzPYpsu8xiSUAdqa3A8mgZE5DMJKDDoDyDIrA656QncVWRzg==
chromedriver@^126.0.2:
version "126.0.2"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-126.0.2.tgz#0c0840cd1ba00b73fa16d4292fa739860ee20ec8"
integrity sha512-61R0w7C+uJVCykabdqWsvitne2rg3MTI8xOKJosk+YbKdyLeGHYiCCeU82ZsUY+v9qnN1p48THcthgKubxPRWQ==
dependencies:
"@testim/chrome-version" "^1.1.4"
axios "^1.6.7"
Expand Down
4 changes: 2 additions & 2 deletions util/argo/diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ func TestStateDiff(t *testing.T) {
replicas, found, err := unstructured.NestedFloat64(normalized.Object, "spec", "replicas")
require.NoError(t, err)
assert.True(t, found)
assert.Equal(t, float64(tc.expectedNormalizedReplicas), replicas)
assert.InEpsilon(t, float64(tc.expectedNormalizedReplicas), replicas, 0.0001)
predicted := testutil.YamlToUnstructured(string(result.PredictedLive))
predictedReplicas, found, err := unstructured.NestedFloat64(predicted.Object, "spec", "replicas")
require.NoError(t, err)
assert.True(t, found)
assert.Equal(t, float64(tc.expectedPredictedReplicas), predictedReplicas)
assert.InEpsilon(t, float64(tc.expectedPredictedReplicas), predictedReplicas, 0.0001)
})
}
}
Expand Down
8 changes: 5 additions & 3 deletions util/argo/managedfields/managed_fields_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ func TestNormalize(t *testing.T) {
liveReplicas, ok, err := unstructured.NestedFloat64(liveResult.Object, "spec", "replicas")
assert.False(t, ok)
require.NoError(t, err)
assert.Equal(t, liveReplicas, desiredReplicas)
assert.Zero(t, desiredReplicas)
assert.Zero(t, liveReplicas)
liveRevisionHistory, ok, err := unstructured.NestedFloat64(liveResult.Object, "spec", "revisionHistoryLimit")
assert.False(t, ok)
require.NoError(t, err)
desiredRevisionHistory, ok, err := unstructured.NestedFloat64(desiredResult.Object, "spec", "revisionHistoryLimit")
assert.False(t, ok)
require.NoError(t, err)
assert.Equal(t, liveRevisionHistory, desiredRevisionHistory)
assert.Zero(t, desiredRevisionHistory)
assert.Zero(t, liveRevisionHistory)
})
t.Run("will keep conflicting fields if not from trusted manager", func(t *testing.T) {
// given
Expand Down Expand Up @@ -146,7 +148,7 @@ func TestNormalize(t *testing.T) {
func validateNestedFloat64(t *testing.T, expected float64, obj *unstructured.Unstructured, fields ...string) {
t.Helper()
current := getNestedFloat64(t, obj, fields...)
assert.Equal(t, expected, current)
assert.InEpsilon(t, expected, current, 0.0001)
}

func getNestedFloat64(t *testing.T, obj *unstructured.Unstructured, fields ...string) float64 {
Expand Down
4 changes: 2 additions & 2 deletions util/cache/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestRedisMetrics(t *testing.T) {
require.NoError(t, err)
err = c.Write(metric)
require.NoError(t, err)
assert.Equal(t, float64(2), metric.Counter.GetValue())
assert.InEpsilon(t, float64(2), metric.Counter.GetValue(), 0.0001)

// faulty client failed request
err = faultyClient.Get("foo", &res)
Expand All @@ -154,7 +154,7 @@ func TestRedisMetrics(t *testing.T) {
require.NoError(t, err)
err = c.Write(metric)
require.NoError(t, err)
assert.Equal(t, float64(1), metric.Counter.GetValue())
assert.InEpsilon(t, float64(1), metric.Counter.GetValue(), 0.0001)

// both clients histogram count
o, err := ms.redisRequestHistogram.GetMetricWithLabelValues("mock")
Expand Down
2 changes: 1 addition & 1 deletion util/env/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestParseFloatFromEnv(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
t.Setenv(envKey, tt.env)
f := ParseFloatFromEnv(envKey, def, min, max)
assert.Equal(t, tt.expected, f)
assert.InEpsilon(t, tt.expected, f, 0.0001)
})
}
}
Expand Down

0 comments on commit 53d49d8

Please sign in to comment.