Skip to content

Commit 348a6f5

Browse files
authored
chore: fix import order and redundance in 15 files (baseline formatting) (#12296)
Signed-off-by: kaikaila <[email protected]>
1 parent 82f6b7d commit 348a6f5

File tree

15 files changed

+40
-30
lines changed

15 files changed

+40
-30
lines changed

backend/src/common/client/api_server/v2/experiment_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package api_server_v2
1616

1717
import (
1818
"fmt"
19+
1920
httptransport "github.com/go-openapi/runtime/client"
2021

2122
"github.com/go-openapi/strfmt"

backend/src/common/client/api_server/v2/recurring_run_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package api_server_v2
1616

1717
import (
1818
"fmt"
19+
1920
httptransport "github.com/go-openapi/runtime/client"
2021

2122
"github.com/go-openapi/runtime"

backend/src/common/client/api_server/v2/run_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package api_server_v2
1616

1717
import (
1818
"fmt"
19+
1920
httptransport "github.com/go-openapi/runtime/client"
2021

2122
"github.com/go-openapi/runtime"

backend/src/v2/objectstore/object_store_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,16 @@ func Test_bucketConfig_KeyFromURI(t *testing.T) {
203203

204204
func Test_createS3BucketSession(t *testing.T) {
205205
tt := []struct {
206-
msg string
207-
ns string
208-
sessionInfo *SessionInfo
209-
sessionSecret *corev1.Secret
210-
expectValidClient bool
211-
expectedRegion string
212-
expectedEndpoint string
213-
expectedPathStyle bool
214-
wantErr bool
215-
errorMsg string
206+
msg string
207+
ns string
208+
sessionInfo *SessionInfo
209+
sessionSecret *corev1.Secret
210+
expectValidClient bool
211+
expectedRegion string
212+
expectedEndpoint string
213+
expectedPathStyle bool
214+
wantErr bool
215+
errorMsg string
216216
}{
217217
{
218218
msg: "Bucket with session",

backend/test/compiler/compiler_visitor_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ package compiler
1616

1717
import (
1818
"fmt"
19-
"google.golang.org/protobuf/types/known/structpb"
2019
"path/filepath"
2120

21+
"google.golang.org/protobuf/types/known/structpb"
22+
2223
"github.com/kubeflow/pipelines/api/v2alpha1/go/pipelinespec"
2324
"github.com/kubeflow/pipelines/backend/src/v2/compiler"
2425
workflowutils "github.com/kubeflow/pipelines/backend/test/compiler/utils"

backend/test/compiler/utils/workflow_utils.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ package utils
1919
import (
2020
"encoding/json"
2121
"fmt"
22-
"google.golang.org/protobuf/encoding/protojson"
2322
"os"
24-
"sigs.k8s.io/yaml"
2523
"slices"
2624

25+
"google.golang.org/protobuf/encoding/protojson"
26+
"sigs.k8s.io/yaml"
27+
2728
"github.com/kubeflow/pipelines/api/v2alpha1/go/pipelinespec"
2829
"github.com/kubeflow/pipelines/backend/src/v2/compiler/argocompiler"
2930
"github.com/kubeflow/pipelines/backend/test/logger"

backend/test/proto_tests/objects.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
package proto_tests
1616

1717
import (
18-
"google.golang.org/genproto/googleapis/rpc/status"
19-
"google.golang.org/protobuf/types/known/structpb"
20-
"google.golang.org/protobuf/types/known/timestamppb"
2118
"os"
2219
"path/filepath"
2320
"time"
2421

22+
"google.golang.org/genproto/googleapis/rpc/status"
23+
"google.golang.org/protobuf/types/known/structpb"
24+
"google.golang.org/protobuf/types/known/timestamppb"
25+
2526
specPB "github.com/kubeflow/pipelines/api/v2alpha1/go/pipelinespec"
2627
pb "github.com/kubeflow/pipelines/backend/api/v2beta1/go_client"
2728
"github.com/kubeflow/pipelines/backend/src/apiserver/server"

backend/test/proto_tests/util.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ package proto_tests
1616

1717
import (
1818
"encoding/json"
19-
"google.golang.org/protobuf/encoding/protojson"
20-
"google.golang.org/protobuf/proto"
2119
"os"
2220
"path/filepath"
2321
"testing"
2422

23+
"google.golang.org/protobuf/encoding/protojson"
24+
"google.golang.org/protobuf/proto"
25+
2526
"github.com/google/go-cmp/cmp"
2627
)
2728

backend/test/test_utils/file_utils.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ package test_utils
1616

1717
import (
1818
"fmt"
19-
"google.golang.org/protobuf/encoding/protojson"
20-
"google.golang.org/protobuf/proto"
2119
"os"
2220
"path/filepath"
23-
"sigs.k8s.io/yaml"
2421
"slices"
2522

23+
"google.golang.org/protobuf/encoding/protojson"
24+
"google.golang.org/protobuf/proto"
25+
"sigs.k8s.io/yaml"
26+
2627
"github.com/kubeflow/pipelines/backend/src/apiserver/common"
2728
"github.com/kubeflow/pipelines/backend/src/apiserver/server"
2829
"github.com/kubeflow/pipelines/backend/src/apiserver/template"

backend/test/test_utils/pipeline_version_utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ package test_utils
1717
import (
1818
"fmt"
1919
"os"
20-
"sigs.k8s.io/yaml"
2120
"sort"
2221
"time"
2322

23+
"sigs.k8s.io/yaml"
24+
2425
pipeline_params "github.com/kubeflow/pipelines/backend/api/v2beta1/go_http_client/pipeline_client/pipeline_service"
2526
"github.com/kubeflow/pipelines/backend/api/v2beta1/go_http_client/pipeline_model"
2627
api_server "github.com/kubeflow/pipelines/backend/src/common/client/api_server/v2"

0 commit comments

Comments
 (0)