Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add 32-bit alignment check #2874

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/i386.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: i386
on:
merge_group:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
branches:
- "**"
paths-ignore:
- '**/*.md'

permissions:
contents: read # for actions/checkout to fetch code

jobs:
atomicalign:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.22.x
- name: staticcheck
env:
GOARCH: 386
GOFLAGS: -tags=functional
run: |
git clone --depth=1 https://github.com/dominikh/go-tools /tmp/go-tools
( cd /tmp/go-tools/cmd/staticcheck && go build -o /tmp/staticcheck )
/tmp/staticcheck -checks SA1027 ./...
2 changes: 1 addition & 1 deletion mocks/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ func (c *Consumer) ExpectConsumePartition(topic string, partition int32, offset
// channels using YieldMessage and YieldError.
type PartitionConsumer struct {
highWaterMarkOffset int64 // must be at the top of the struct because https://golang.org/pkg/sync/atomic/#pkg-note-BUG
suppressedHighWaterMarkOffset int64
l sync.Mutex
t ErrorReporter
topic string
partition int32
offset int64
messages chan *sarama.ConsumerMessage
suppressedMessages chan *sarama.ConsumerMessage
suppressedHighWaterMarkOffset int64
errors chan *sarama.ConsumerError
singleClose sync.Once
consumed bool
Expand Down
Loading