Skip to content

Commit c0cfac3

Browse files
committed
Merge branch 'main' into projectparameter
2 parents c4644e1 + b503c8b commit c0cfac3

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.github/workflows/coder.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
run:
161161
DB=true gotestsum --jsonfile="gotests.json" --packages="./..." --
162162
-covermode=atomic -coverprofile="gotests.coverage" -timeout=3m
163-
-count=1 -race -parallel=2
163+
-count=1 -race -parallel=1
164164

165165
- uses: codecov/codecov-action@v2
166166
with:

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ linters:
241241
- staticcheck
242242
- structcheck
243243
- tenv
244+
- tparallel
244245
- typecheck
245246
- unconvert
246247
- unused

database/pubsub_memory_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ func TestPubsubMemory(t *testing.T) {
1414
t.Parallel()
1515

1616
t.Run("Memory", func(t *testing.T) {
17+
t.Parallel()
18+
1719
pubsub := database.NewPubsubInMemory()
1820
event := "test"
1921
data := "testing"

database/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
-- Run "make gen" to generate models and query functions.
55
;
66

7+
-- Acquires the lock for a single job that isn't started, completed,
8+
-- cancelled, and that matches an array of provisioner types.
9+
--
10+
-- SKIP LOCKED is used to jump over locked rows. This prevents
11+
-- multiple provisioners from acquiring the same jobs. See:
12+
-- https://www.postgresql.org/docs/9.5/sql-select.html#SQL-FOR-UPDATE-SHARE
713
-- name: AcquireProvisionerJob :one
814
UPDATE
915
provisioner_job

database/query.sql.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)