Skip to content

Commit 09c8ece

Browse files
Merge branch 'main' into master
2 parents dbd1cd3 + 94cf531 commit 09c8ece

File tree

135 files changed

+4777
-1432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+4777
-1432
lines changed

.devcontainer/Dockerfile.dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM mcr.microsoft.com/vscode/devcontainers/go:0-1.18

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Quickfix/Go Development",
3+
"dockerComposeFile": "docker-compose.yml",
4+
"service": "app",
5+
"workspaceFolder": "/workspace",
6+
"shutdownAction": "stopCompose",
7+
"runArgs": [
8+
"--cap-add=SYS_PTRACE",
9+
"--security-opt",
10+
"seccomp=unconfined"
11+
],
12+
"features": {
13+
"ruby": "latest"
14+
},
15+
"customizations": {
16+
"vscode": {
17+
"settings": {
18+
"go.toolsManagement.checkForUpdates": "local",
19+
"go.useLanguageServer": true,
20+
"go.gopath": "/go"
21+
},
22+
"extensions": [
23+
"golang.Go",
24+
"mongodb.mongodb-vscode"
25+
]
26+
}
27+
},
28+
"remoteUser": "vscode"
29+
}

.devcontainer/docker-compose.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: '3.8'
2+
3+
services:
4+
app:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile.dev
8+
volumes:
9+
- ..:/workspace:cached
10+
- /var/run/docker.sock:/var/run/docker.sock
11+
# Overrides default command so things don't shut down after the process ends.
12+
command: sleep infinity
13+
14+
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
15+
network_mode: service:db
16+
17+
# Uncomment the next line to use a non-root user for all processes.
18+
# user: node
19+
20+
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
21+
# (Adding the "ports" property to this file will not forward from a Codespace.)
22+
23+
db:
24+
image: bitnami/mongodb:latest
25+
restart: unless-stopped
26+
volumes:
27+
- mongodb-data:/data/db
28+
ports:
29+
- 27017:27017
30+
environment:
31+
MONGODB_REPLICA_SET_MODE: primary
32+
ALLOW_EMPTY_PASSWORD: 'yes'
33+
34+
# Add "forwardPorts": ["27017"] to **devcontainer.json** to forward MongoDB locally.
35+
# (Adding the "ports" property to this file will not forward from a Codespace.)
36+
37+
volumes:
38+
mongodb-data:

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/ci.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: CI
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- master
8+
- main
9+
pull_request:
10+
branches:
11+
- master
12+
- main
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
golangci:
18+
permissions:
19+
contents: read # for actions/checkout to fetch code
20+
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
21+
name: Linter
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout source code
25+
uses: actions/checkout@v2
26+
- name: Setup Go
27+
uses: actions/setup-go@v2
28+
with:
29+
go-version: '1.18'
30+
- name: Install golangci-lint
31+
run: |
32+
curl -sSLO https://github.com/golangci/golangci-lint/releases/download/v$GOLANGCI_LINT_VERSION/golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz
33+
tar -xf golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz
34+
sudo mv golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64/golangci-lint /usr/local/bin/golangci-lint
35+
rm -rf golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64*
36+
env:
37+
GOLANGCI_LINT_VERSION: '1.50.1'
38+
- name: Run Lint
39+
run: make lint
40+
41+
build:
42+
name: build
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
go: [1.18]
47+
fix-version:
48+
-
49+
- fix40
50+
- fix41
51+
- fix42
52+
- fix43
53+
- fix44
54+
- fix50
55+
- fix50sp1
56+
- fix50sp2
57+
steps:
58+
- name: Setup
59+
uses: actions/setup-go@v2
60+
with:
61+
go-version: ${{ matrix.go }}
62+
- name: Check out source
63+
uses: actions/checkout@v2
64+
- name: Start MongoDB
65+
uses: supercharge/[email protected]
66+
with:
67+
mongodb-replica-set: replicaset
68+
- name: Install ruby
69+
uses: ruby/setup-ruby@v1
70+
with:
71+
ruby-version: '3.0'
72+
- name: Test
73+
env:
74+
GO111MODULE: on
75+
MONGODB_TEST_CXN: mongodb://localhost:27017
76+
FIX_TEST: ${{ matrix.fix-version }}
77+
run: if [ -z $FIX_TEST ]; then make build-src && make test-ci; else make generate-ci && make build && make $FIX_TEST; fi
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '42 21 * * 3'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'go' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*~
22
*.swp
33
*.swo
4+
.idea
45
vendor
56
_test/test
67
_test/echo_server

.golangci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
run:
2+
timeout: 10m
3+
skip-dirs:
4+
- gen
5+
- vendor
6+
7+
linters:
8+
disable-all: true
9+
enable:
10+
- dupl
11+
- gofmt
12+
- goimports
13+
- gosimple
14+
- govet
15+
- ineffassign
16+
- misspell
17+
- revive
18+
- unused
19+
- staticcheck
20+
- godot
21+
22+
linters-settings:
23+
gofmt:
24+
simplify: true
25+
goimports:
26+
local-prefixes: github.com/quickfixgo/quickfix
27+
dupl:
28+
threshold: 400

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
## 0.8.0 (October 25, 2023)
2+
3+
ENHANCEMENTS
4+
5+
* Remove tag from field map [GH 544]
6+
* Add message.Bytes() to avoid string conversion [GH 546]
7+
* Check RejectInvalidMessage on FIXT validation [GH 572]
8+
9+
BUG FIXES
10+
11+
* Fix repeating group read tags lost [GH 462]
12+
* Acceptance test result must be predictable [GH 578]
13+
* Makes event timer stop idempotent [GH 580, 581]
14+
* Added WaitGroup Wait in Initiator [GH 584]
15+
16+
## 0.7.0 (January 2, 2023)
17+
18+
FEATURES
19+
20+
* PersistMessages Config [GH 297]
21+
* MaxLatency [GH 242]
22+
* ResetOnDisconnect Configuration [GH 68]
23+
* Support for High Precision Timestamps [GH 288]
24+
* LogonTimeout [GH 295]
25+
* LogoutTimeout [GH 296]
26+
* Socks Proxy [GH 375]
27+
28+
ENHANCEMENTS
29+
30+
* Add SocketUseSSL parameter to allow SSL/TLS without client certs [GH 311]
31+
* Support for RejectInvalidMessage configuration [GH 336]
32+
* Add deep copy for Messages [GH 338]
33+
* Add Go Module support [GH 340]
34+
* Support timeout on ssl connection [GH 347, 349]
35+
* Dynamic Sessions [GH 521]
36+
* Upgrade Mongo Driver to support transactions [GH 527]
37+
38+
BUG FIXES
39+
40+
* header and trailer templates use rootpath [GH 302]
41+
* Initiator stop panic if stop chan's already closed [GH 359]
42+
* Connection closed when inbound logon has a too-low sequence number [GH 369]
43+
* TLS server name config [GH 384]
44+
* Fix concurrent map write [GH 436]
45+
* Race condition during bilateral initial resend request [GH 439]
46+
* Deadlock when disconnecting dynamic session [GH 524]
47+
* Align session's ticker with round second [GH 533]
48+
* Seqnum persist and increment fix [GH 528]
49+
50+
151
## 0.6.0 (August 14, 2017)
252

353
FEATURES

0 commit comments

Comments
 (0)