Skip to content

Commit

Permalink
Merge branch 'main' into aman/gomod
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 authored Jan 27, 2025
2 parents 3a5b173 + a0d027d commit c11f4f8
Show file tree
Hide file tree
Showing 18 changed files with 55 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
branches:
- main
- release/**
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-core-upgrade-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-integration2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-ldbc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-oss-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-system-upgrade-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-systest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-tests-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dgraph-vector-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- "**/*.go"
- "**/go.mod"
- "**/*.yml"
- "**/Dockerfile"
- "**/Makefile"
types:
- opened
- reopened
Expand Down
12 changes: 6 additions & 6 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.22.8
version: 1.22.9

# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
Expand All @@ -25,8 +25,8 @@ lint:
paths:
- contrib/**
enabled:
- [email protected].6
- [email protected].351
- [email protected].7
- [email protected].353
- [email protected]
- git-diff-check
- [email protected]
Expand All @@ -36,11 +36,11 @@ lint:
- [email protected]
- [email protected]
- [email protected]
- renovate@39.92.0
- renovate@39.119.0
- [email protected]
- [email protected]
- tflint@0.54.0
- [email protected].1
- tflint@0.55.0
- [email protected].2
- [email protected]
actions:
enabled:
Expand Down
2 changes: 1 addition & 1 deletion graphql/e2e/custom_logic/cmd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine
FROM golang:1.23-alpine

COPY . /go/src/cmd/

Expand Down
2 changes: 1 addition & 1 deletion ocagent/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
--raft="idx=1" --my=zero1:5180 --replicas=3 --logtostderr -v=2 --bindall --trace
"jaeger=http://ocagent:14268;"
ocagent:
image: omnition/opencensus-agent:0.1.6
image: omnition/opencensus-agent:0.1.11
container_name: ocagent
labels:
cluster: test
Expand Down
15 changes: 8 additions & 7 deletions posting/mvcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ func RemoveCacheFor(key []byte) {
type Cache struct {
data *ristretto.Cache[[]byte, *CachePL]

numCacheRead int
numCacheReadFails int
numCacheSave int
numCacheRead int64
numCacheReadFails int64
numCacheSave int64
}

func (c *Cache) wait() {
Expand All @@ -365,13 +365,14 @@ func (c *Cache) get(key []byte) (*CachePL, bool) {
}
val, ok := c.data.Get(key)
if !ok {
c.numCacheReadFails += 1
atomic.AddInt64(&c.numCacheReadFails, 1)
return val, ok
}
if val.list == nil {
c.numCacheReadFails += 1
atomic.AddInt64(&c.numCacheReadFails, 1)
return nil, false
}
atomic.AddInt64(&c.numCacheRead, 1)
c.numCacheRead += 1
return val, true
}
Expand Down Expand Up @@ -407,7 +408,7 @@ type MemoryLayer struct {

// metrics
statsHolder *StatsHolder
numDisksRead int
numDisksRead int64
}

func (ml *MemoryLayer) clear() {
Expand Down Expand Up @@ -656,7 +657,7 @@ func (ml *MemoryLayer) readFromCache(key []byte, readTs uint64) *List {
}

func (ml *MemoryLayer) readFromDisk(key []byte, pstore *badger.DB, readTs uint64) (*List, error) {
ml.numDisksRead += 1
atomic.AddInt64(&ml.numDisksRead, 1)
txn := pstore.NewTransactionAt(readTs, false)
defer txn.Discard()

Expand Down
2 changes: 1 addition & 1 deletion worker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ services:
--logtostderr -v=2 --raft "idx=6; group=2; snapshot-after-entries=100;
snapshot-after-duration=1m" --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
jaeger:
image: jaegertracing/all-in-one:1.18
image: jaegertracing/all-in-one:1.60
working_dir: /working/jaeger
environment:
- SPAN_STORAGE_TYPE=badger
Expand Down
5 changes: 2 additions & 3 deletions x/x.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
"strings"
"sync"
"sync/atomic"
"syscall"
"time"

"github.com/dustin/go-humanize"
Expand Down Expand Up @@ -1117,7 +1116,7 @@ func AskUserPassword(userid string, pwdType string, times int) (string, error) {
AssertTrue(pwdType == "Current" || pwdType == "New")
// ask for the user's password
fmt.Printf("%s password for %v:", pwdType, userid)
pd, err := term.ReadPassword(syscall.Stdin)
pd, err := term.ReadPassword(int(os.Stdin.Fd()))
if err != nil {
return "", errors.Wrapf(err, "while reading password")
}
Expand All @@ -1126,7 +1125,7 @@ func AskUserPassword(userid string, pwdType string, times int) (string, error) {

if times == 2 {
fmt.Printf("Retype %s password for %v:", strings.ToLower(pwdType), userid)
pd2, err := term.ReadPassword(syscall.Stdin)
pd2, err := term.ReadPassword(int(os.Stdin.Fd()))
if err != nil {
return "", errors.Wrapf(err, "while reading password")
}
Expand Down

0 comments on commit c11f4f8

Please sign in to comment.