commit minio-client for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package minio-client for openSUSE:Factory checked in at 2024-06-05 17:42:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/minio-client (Old) and /work/SRC/openSUSE:Factory/.minio-client.new.24587 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "minio-client" Wed Jun 5 17:42:35 2024 rev:80 rq:1178651 version:20240601T150335Z Changes: -------- --- /work/SRC/openSUSE:Factory/minio-client/minio-client.changes 2024-05-31 22:16:48.788012646 +0200 +++ /work/SRC/openSUSE:Factory/.minio-client.new.24587/minio-client.changes 2024-06-05 17:43:17.892067660 +0200 @@ -1,0 +2,9 @@ +Wed Jun 05 05:29:26 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 20240601T150335Z: + * fix: rm command with `--newer-than` not working (#4944) + * Fix support top net JSON (#4948) + * fix: avoid HeadObject call for mc get (#4947) + * remote flaky bucket_replication test for now + +------------------------------------------------------------------- Old: ---- mc-20240524T090849Z.obscpio New: ---- mc-20240601T150335Z.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ minio-client.spec ++++++ --- /var/tmp/diff_new_pack.3rqQNE/_old 2024-06-05 17:43:18.756099127 +0200 +++ /var/tmp/diff_new_pack.3rqQNE/_new 2024-06-05 17:43:18.760099272 +0200 @@ -22,7 +22,7 @@ %define binary_name minio-client Name: minio-client -Version: 20240524T090849Z +Version: 20240601T150335Z Release: 0 Summary: Client for MinIO License: AGPL-3.0-only ++++++ _service ++++++ --- /var/tmp/diff_new_pack.3rqQNE/_old 2024-06-05 17:43:18.800100729 +0200 +++ /var/tmp/diff_new_pack.3rqQNE/_new 2024-06-05 17:43:18.808101020 +0200 @@ -5,7 +5,7 @@ <param name="exclude">.git</param> <param name="changesgenerate">enable</param> <param name="versionformat">@PARENT_TAG@</param> - <param name="revision">RELEASE.2024-05-24T09-08-49Z</param> + <param name="revision">RELEASE.2024-06-01T15-03-35Z</param> <param name="match-tag">RELEASE.*</param> <param name="versionrewrite-pattern">RELEASE\.(.*)-(.*)-(.*)-(.*)-(.*)</param> <param name="versionrewrite-replacement">\1\2\3\4\5</param> @@ -19,7 +19,7 @@ <param name="compression">gz</param> </service> <service name="go_modules" mode="manual"> - <param name="archive">mc-20240524T090849Z.obscpio</param> + <param name="archive">mc-20240601T150335Z.obscpio</param> </service> </services> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.3rqQNE/_old 2024-06-05 17:43:18.832101894 +0200 +++ /var/tmp/diff_new_pack.3rqQNE/_new 2024-06-05 17:43:18.836102040 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/minio/mc</param> - <param name="changesrevision">a8fdcbe7cb2f85ce98d60e904717aa00016a7d37</param></service></servicedata> + <param name="changesrevision">3cfa8642fdab18e3c1599360be26167e377063cf</param></service></servicedata> (No newline at EOF) ++++++ mc-20240524T090849Z.obscpio -> mc-20240601T150335Z.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mc-20240524T090849Z/cmd/client-s3.go new/mc-20240601T150335Z/cmd/client-s3.go --- old/mc-20240524T090849Z/cmd/client-s3.go 2024-05-24 11:08:49.000000000 +0200 +++ new/mc-20240601T150335Z/cmd/client-s3.go 2024-06-01 17:03:35.000000000 +0200 @@ -953,7 +953,8 @@ // Disallow automatic decompression for some objects with content-encoding set. o.Set("Accept-Encoding", "identity") - reader, e := c.api.GetObject(ctx, bucket, object, o) + cr := minio.Core{Client: c.api} + reader, objectInfo, _, e := cr.GetObject(ctx, bucket, object, o) if e != nil { errResponse := minio.ToErrorResponse(e) if errResponse.Code == "NoSuchBucket" { @@ -971,25 +972,7 @@ } return nil, nil, probe.NewError(e) } - objStat, e := reader.Stat() - if e != nil { - errResponse := minio.ToErrorResponse(e) - if errResponse.Code == "NoSuchBucket" { - return nil, nil, probe.NewError(BucketDoesNotExist{ - Bucket: bucket, - }) - } - if errResponse.Code == "InvalidBucketName" { - return nil, nil, probe.NewError(BucketInvalid{ - Bucket: bucket, - }) - } - if errResponse.Code == "NoSuchKey" { - return nil, nil, probe.NewError(ObjectMissing{}) - } - return nil, nil, probe.NewError(e) - } - return reader, c.objectInfo2ClientContent(bucket, objStat), nil + return reader, c.objectInfo2ClientContent(bucket, objectInfo), nil } // Copy - copy object, uses server side copy API. Also uses an abstracted API diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mc-20240524T090849Z/cmd/rm-main.go new/mc-20240601T150335Z/cmd/rm-main.go --- old/mc-20240524T090849Z/cmd/rm-main.go 2024-05-24 11:08:49.000000000 +0200 +++ new/mc-20240601T150335Z/cmd/rm-main.go 2024-06-01 17:03:35.000000000 +0200 @@ -329,7 +329,7 @@ } // We should not proceed - if ignoreStatError && opts.olderThan != "" || opts.newerThan != "" { + if ignoreStatError && (opts.olderThan != "" || opts.newerThan != "") { errorIf(pErr.Trace(url), "Unable to stat `"+url+"`.") return exitStatus(globalErrorExitStatus) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mc-20240524T090849Z/cmd/support-top-net.go new/mc-20240601T150335Z/cmd/support-top-net.go --- old/mc-20240524T090849Z/cmd/support-top-net.go 2024-05-24 11:08:49.000000000 +0200 +++ new/mc-20240601T150335Z/cmd/support-top-net.go 2024-06-01 17:03:35.000000000 +0200 @@ -34,6 +34,11 @@ Usage: "interval between requests in seconds", Value: 1, }, + cli.IntFlag{ + Name: "n", + Usage: "number of requests to run before exiting. 0 for endless (default)", + Value: 0, + }, } var supportTopNetCmd = cli.Command{ @@ -94,42 +99,42 @@ opts := madmin.MetricsOptions{ Type: madmin.MetricNet, Interval: time.Duration(ctx.Int("interval")) * time.Second, + N: ctx.Int("n"), ByHost: true, Hosts: hosts, } - + if globalJSON { + e := client.Metrics(ctxt, opts, func(metrics madmin.RealtimeMetrics) { + printMsg(metricsMessage{RealtimeMetrics: metrics}) + }) + if e != nil && !errors.Is(e, context.Canceled) { + fatalIf(probe.NewError(e).Trace(aliasedURL), "Unable to fetch scanner metrics") + } + return nil + } p := tea.NewProgram(initTopNetUI()) go func() { - if globalJSON { - e := client.Metrics(ctxt, opts, func(metrics madmin.RealtimeMetrics) { - printMsg(metricsMessage{RealtimeMetrics: metrics}) - }) - if e != nil && !errors.Is(e, context.Canceled) { - fatalIf(probe.NewError(e).Trace(aliasedURL), "Unable to fetch scanner metrics") - } - } else { - out := func(m madmin.RealtimeMetrics) { - for endPoint, metric := range m.ByHost { - if metric.Net != nil { - p.Send(topNetResult{ - endPoint: endPoint, - stats: *metric.Net, - }) - } - } - if len(m.Errors) != 0 && len(m.Hosts) != 0 { + out := func(m madmin.RealtimeMetrics) { + for endPoint, metric := range m.ByHost { + if metric.Net != nil { p.Send(topNetResult{ - endPoint: m.Hosts[0], - error: m.Errors[0], + endPoint: endPoint, + stats: *metric.Net, }) } } - - e := client.Metrics(ctxt, opts, out) - if e != nil { - fatalIf(probe.NewError(e), "Unable to fetch top net events") + if len(m.Errors) != 0 && len(m.Hosts) != 0 { + p.Send(topNetResult{ + endPoint: m.Hosts[0], + error: m.Errors[0], + }) } } + + e := client.Metrics(ctxt, opts, out) + if e != nil { + fatalIf(probe.NewError(e), "Unable to fetch top net events") + } p.Quit() }() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mc-20240524T090849Z/functional-tests.sh new/mc-20240601T150335Z/functional-tests.sh --- old/mc-20240524T090849Z/functional-tests.sh 2024-05-24 11:08:49.000000000 +0200 +++ new/mc-20240601T150335Z/functional-tests.sh 2024-06-01 17:03:35.000000000 +0200 @@ -1009,36 +1009,6 @@ log_success "$start_time" "${FUNCNAME[0]}" } -function test_bucket_replication() { - show "${FUNCNAME[0]}" - - start_time=$(get_time) - object_name="mc-test-replicate-$RANDOM" - bkt1="${object_name}-bucket1" - bkt2="${object_name}-bucket2" - - assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd mb "${SERVER_ALIAS}/${bkt1}" - assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd version enable "${SERVER_ALIAS}/${bkt1}" - assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd mb "${SERVER_ALIAS}/${bkt2}" - assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd version enable "${SERVER_ALIAS}/${bkt2}" - assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd replicate add "${SERVER_ALIAS}/${bkt1}" --remote-bucket "${SERVER_ALIAS}/${bkt2}" - loop_count=0 - while true; do - if [ $loop_count -eq 100 ]; then - break - fi - assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd cp "$FILE_0_B" "${SERVER_ALIAS}/${bkt1}/${object_name}" - assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd rm "${SERVER_ALIAS}/${bkt1}/${object_name}" - assert_failure "$start_time" "${FUNCNAME[0]}" mc_cmd stat "${SERVER_ALIAS}/${bkt1}/${object_name}" - loop_count=$((loop_count + 1)) - done - - diff -bB <(mc_cmd --json ls "${SERVER_ALIAS}/${bkt1}/${object_name}" | jq -r .key) <(mc_cmd --json ls "${SERVER_ALIAS}/${bkt2}/${object_name}" | jq -r .key) >/dev/null 2>&1 - assert_success "$start_time" "${FUNCNAME[0]}" show_on_failure $? "replication list differs" - - log_success "$start_time" "${FUNCNAME[0]}" -} - function run_test() { test_make_bucket test_make_bucket_error ++++++ mc.obsinfo ++++++ --- /var/tmp/diff_new_pack.3rqQNE/_old 2024-06-05 17:43:19.116112237 +0200 +++ /var/tmp/diff_new_pack.3rqQNE/_new 2024-06-05 17:43:19.120112383 +0200 @@ -1,5 +1,5 @@ name: mc -version: 20240524T090849Z -mtime: 1716541729 -commit: a8fdcbe7cb2f85ce98d60e904717aa00016a7d37 +version: 20240601T150335Z +mtime: 1717254215 +commit: 3cfa8642fdab18e3c1599360be26167e377063cf ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/minio-client/vendor.tar.gz /work/SRC/openSUSE:Factory/.minio-client.new.24587/vendor.tar.gz differ: char 5, line 1
participants (1)
-
Source-Sync