Skip to content

Commit 3205f31

Browse files
committed
fix: CI tweaks
1 parent 46b8934 commit 3205f31

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Diff for: .gitlab-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ test_and_lint:
1515
- if: '$CI_COMMIT_TAG && $CI_COMMIT_TAG !~ /^(.+\/)?v[0-9]+\.[0-9]+\.[0-9]+$/'
1616

1717
build_and_push:
18+
needs: []
1819
script:
1920
- |-
2021
if [ "${BUILD_IN_SUBPATH:-true}" == "true" ]; then

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ lint: ## Verifies `golangci-lint` passes
6565
lint-ci: ## Verifies `golangci-lint` passes and outputs in CI-friendly format
6666
@echo "==> $@"
6767
@golangci-lint version
68-
@golangci-lint run ./... --timeout=10m --out-format code-climate > golangci-lint.json
68+
@golangci-lint run ./... --timeout=10m --out-format code-climate
6969

7070
.PHONY: build
7171
build: ## Builds the executable and places it in the build dir

Diff for: internal/instances/instances.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
const (
20-
InstanceNotFoundInterval = 2 * time.Minute
20+
InstanceNotFoundInterval = 1 * time.Minute
2121
ProviderPrefix = "crusoe://"
2222
)
2323

@@ -153,11 +153,11 @@ func (i *Instances) InstanceExistsByProviderID(ctx context.Context, providerID s
153153
if inst == nil || (responseBody != nil && responseBody.StatusCode == 404) {
154154
if timeDiff < InstanceNotFoundInterval {
155155
klog.Infof("Node %v last seen: %v", providerID, timeDiff)
156-
klog.Infof("Node %v not seen for less than 2 minutes", providerID)
156+
klog.Infof("Node %v not seen for less than 1 minute", providerID)
157157

158158
return true, nil
159159
}
160-
klog.Infof("Node %v not seen for more than 2 minutes", providerID)
160+
klog.Infof("Node %v not seen for more than 1 minute", providerID)
161161

162162
return false, nil
163163
}

0 commit comments

Comments
 (0)