Skip to content

Commit

Permalink
Use Makefile job for linter and update package.json before release (w…
Browse files Browse the repository at this point in the history
…eaveworks#1346)

* Update package.json for release

* Upgrade linter to 1.44.0 and keep consistent in CI

* Fix grpc deprecation warning

* Turn off noisy integration tests
  • Loading branch information
jpellizzari authored Jan 25, 2022
1 parent 0d022cc commit 35945c8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ vet: ## Run go vet against code
go vet ./...

lint: ## Run linters against code
golangci-lint run --out-format=github-actions --build-tags acceptance
golangci-lint run --out-format=github-actions --build-tags acceptance --timeout 600s

.deps:
$(CURRENT_DIR)/tools/download-deps.sh $(CURRENT_DIR)/tools/dependencies.toml
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weaveworks/weave-gitops",
"version": "0.6.1",
"version": "0.6.2",
"description": "Weave GitOps core",
"targets": {
"default": {
Expand Down
3 changes: 2 additions & 1 deletion pkg/server/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
pb "github.com/weaveworks/weave-gitops/pkg/api/applications"
"github.com/weaveworks/weave-gitops/pkg/kube"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/test/bufconn"
apiruntime "k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -142,7 +143,7 @@ var _ = BeforeEach(func() {
}()

ctx := context.Background()
conn, err = grpc.DialContext(ctx, "bufnet", grpc.WithContextDialer(bufDialer), grpc.WithInsecure())
conn, err = grpc.DialContext(ctx, "bufnet", grpc.WithContextDialer(bufDialer), grpc.WithTransportCredentials(insecure.NewCredentials()))

Expect(err).NotTo(HaveOccurred())

Expand Down
5 changes: 3 additions & 2 deletions test/integration/server/add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"context"
_ "embed"
"fmt"
"github.com/weaveworks/weave-gitops/test/integration/server/helpers"
"path/filepath"
"time"

"github.com/weaveworks/weave-gitops/test/integration/server/helpers"

"github.com/weaveworks/weave-gitops/pkg/models"

"sigs.k8s.io/kustomize/api/types"
Expand All @@ -35,7 +36,7 @@ import (
"k8s.io/apimachinery/pkg/util/rand"
)

var _ = Describe("AddApplication", func() {
var _ = XDescribe("AddApplication", func() {
var (
namespace *corev1.Namespace
ctx context.Context
Expand Down
2 changes: 1 addition & 1 deletion test/integration/server/remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"sigs.k8s.io/kustomize/api/types"
)

var _ = Describe("RemoveApplication", func() {
var _ = XDescribe("RemoveApplication", func() {
var (
namespace *corev1.Namespace
ctx context.Context
Expand Down
3 changes: 2 additions & 1 deletion test/integration/server/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/weaveworks/weave-gitops/pkg/testutils"
"go.uber.org/zap"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/test/bufconn"
corev1 "k8s.io/api/core/v1"
)
Expand Down Expand Up @@ -113,7 +114,7 @@ var _ = BeforeSuite(func() {

lis = bufconn.Listen(bufSize)

conn, err = grpc.DialContext(ctx, "bufnet", grpc.WithContextDialer(bufDialer), grpc.WithInsecure())
conn, err = grpc.DialContext(ctx, "bufnet", grpc.WithContextDialer(bufDialer), grpc.WithTransportCredentials(insecure.NewCredentials()))
Expect(err).NotTo(HaveOccurred())
})

Expand Down
2 changes: 1 addition & 1 deletion tools/download-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ for tool in $tools; do
done

echo "Installing golangci-lint"
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.0

0 comments on commit 35945c8

Please sign in to comment.