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

feat: make stateless #497

Merged
merged 231 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
9752f1e
feat(ledger): make stateless
gfyrag Sep 4, 2024
f16edd8
clean: some todo
gfyrag Sep 24, 2024
5d8b88d
feat: make insertMoves return post commit volumes
gfyrag Sep 24, 2024
b6c10b6
feat: remove ExpandedTransaction and fetch pc(e)v when inserting moves
gfyrag Sep 25, 2024
129f97e
feat: remove usage of unified sdk
gfyrag Sep 25, 2024
8ab28a1
feat: introduce acounts_volumes table
gfyrag Sep 25, 2024
d821df5
feat: make balance aggregation use accounts_volumes table if pit is n…
gfyrag Sep 25, 2024
a530b4a
feat: make the core defined transactions timestamp
gfyrag Sep 25, 2024
bbffa01
feat: homogeneize volumes names
gfyrag Sep 25, 2024
2007a08
feat: make transactions pcv computed on the fly
gfyrag Sep 25, 2024
b38b09d
feat: introduce feature MOVES_HISTORY
gfyrag Sep 25, 2024
b794b9d
feat: convert post_commit_volumes to jsonb
gfyrag Sep 25, 2024
cd1cd2b
feat: compute move pcv on the fly
gfyrag Sep 25, 2024
ccc85bf
feat: remove MOVES_HISTORY_POST_COMMIT_VOLUMES
gfyrag Sep 25, 2024
a691eb0
feat: define insertion date at store level
gfyrag Sep 25, 2024
908278c
feat: modify stress test parameters
gfyrag Sep 25, 2024
6b0e913
feat: remove automatic pit
gfyrag Sep 25, 2024
c3c3833
feat: handle errors on create api of v1 api
gfyrag Sep 25, 2024
614dd28
feat: add features validation
gfyrag Sep 25, 2024
d671b11
chore: clean todo
gfyrag Sep 25, 2024
01cf870
fix: test logging
gfyrag Sep 25, 2024
f606b88
feat: remove transaction sequences
gfyrag Sep 25, 2024
a14530e
feat: remove sequence of accounts
gfyrag Sep 26, 2024
e09fb8c
fix: potential double dispense on some rare case
gfyrag Sep 26, 2024
333e1db
chore: pre-commit
gfyrag Sep 26, 2024
67879f8
feat: add sql options on WithTX
gfyrag Sep 26, 2024
e74bdcc
fix: import locking
gfyrag Sep 26, 2024
5d2f4d6
chore: lint
gfyrag Sep 26, 2024
8961324
refactor(Earthfile): reuse sources stage and optimize build process (…
flemzord Sep 26, 2024
89f0b6b
fix: regexp
gfyrag Sep 26, 2024
595806e
feat: make transaction denorm in sql trigger
gfyrag Sep 26, 2024
7fe89c9
clean: remove ledgerstore.Transaction model
gfyrag Sep 26, 2024
36112d0
chore: remove accounts_address_array from moves
gfyrag Sep 26, 2024
0f57064
fix: various
gfyrag Sep 26, 2024
2801e49
feat: move segments generation on a trigger
gfyrag Sep 26, 2024
d6539e4
chore: simplify storage
gfyrag Sep 27, 2024
d2d9cd6
chore: simplify storage
gfyrag Sep 27, 2024
cbb99e4
chore: simplify storage
gfyrag Sep 27, 2024
d0935fe
chore: simplify storage
gfyrag Sep 27, 2024
8c63822
chore: simplify storage
gfyrag Sep 27, 2024
9580de2
feat: optimize cache on +generate
gfyrag Sep 27, 2024
4dd8f2a
feat: move code
gfyrag Sep 27, 2024
ae3c7f1
chore: lint
gfyrag Sep 27, 2024
f09b8e7
chore: clean code
gfyrag Sep 27, 2024
566f25f
chore: clean
gfyrag Sep 27, 2024
15ae219
feat: move model in core
gfyrag Sep 27, 2024
0c1ab69
feat: move code
gfyrag Sep 27, 2024
f7ce827
chore: simplify code
gfyrag Sep 27, 2024
eb0a819
feat: add nats server on integration tests
gfyrag Sep 27, 2024
d97a785
feat: add test of events
gfyrag Sep 27, 2024
7637917
fix: events
gfyrag Sep 27, 2024
824f003
feat: move code
gfyrag Sep 27, 2024
290eba5
feat: check event schemas and values
gfyrag Sep 27, 2024
c839ff8
feat: completely test events COMITTED_TRANSACTIONS
gfyrag Sep 27, 2024
7f7f3cd
feat: test save metadata event for transactions
gfyrag Sep 27, 2024
f97b346
chore: increate golangci-lint timeout
gfyrag Sep 27, 2024
0df8df5
fix(Earthfile): persist golangci-lint cache for faster builds
flemzord Sep 27, 2024
ae0ca70
feat: test deleted metadata event for transactions
gfyrag Sep 27, 2024
34c8da8
fix: make reversal date of reverted transactions matching insertion d…
gfyrag Sep 27, 2024
fe7ec41
fix: make 'expand' query param more smart by splitting ','
gfyrag Sep 27, 2024
ffe9be7
fix: go libs hash and missing package in coverage
gfyrag Sep 27, 2024
d02829e
chore: add gitignore
gfyrag Sep 27, 2024
23606d9
chore: pre commit
gfyrag Sep 27, 2024
020290e
fix: missing build tag
gfyrag Sep 27, 2024
4b0ac73
test: add some lifecycles tests
gfyrag Sep 29, 2024
bba1a19
chore: some comments
gfyrag Sep 29, 2024
ecd8ea2
feat: move logs model
gfyrag Sep 29, 2024
6f27088
feat: move ledgers model
gfyrag Sep 29, 2024
c3613b6
chore: remove configuration table
gfyrag Sep 29, 2024
cef9aea
chore: merge some packages
gfyrag Sep 29, 2024
cc8ac44
test: add some integration tests
gfyrag Sep 30, 2024
6caa097
chore: lint
gfyrag Sep 30, 2024
bed6e58
fix: tests
gfyrag Sep 30, 2024
407abc2
fix(tests): increate timeout
gfyrag Sep 30, 2024
a0d7cec
chore: remove redundant tests
gfyrag Oct 1, 2024
635b3c9
test: add test on transaction entity
gfyrag Oct 1, 2024
ebfc7bd
feat: add IdempotencyHash on Log model
gfyrag Oct 1, 2024
4594f3d
feat: make idempotency feature check inputs
gfyrag Oct 1, 2024
e3d0ab1
refactor: extract traces from default controller
gfyrag Oct 1, 2024
50307d9
feat: extract event emission from default controller
gfyrag Oct 1, 2024
0228fef
chore: add comment
gfyrag Oct 1, 2024
d084b92
feat: compute hash at core level
gfyrag Oct 1, 2024
5be2e09
feat: store complete log in database
gfyrag Oct 1, 2024
50d3e7f
feat: store complete revert transaction result into database
gfyrag Oct 1, 2024
e83c4d1
chore: remove useless code
gfyrag Oct 1, 2024
073cd0d
chore: simplify some code
gfyrag Oct 1, 2024
96c977e
feat: remove deprecated package github.com/pkg/errors
gfyrag Oct 1, 2024
ca4dc6d
feat: simplify some code
gfyrag Oct 1, 2024
e6ec039
chore: pre-commit
gfyrag Oct 1, 2024
2d346bb
chore: restore failing test
gfyrag Oct 1, 2024
e5f0257
refactor: testing helper
gfyrag Oct 1, 2024
e4e0caf
chore: extract helper in go libs
gfyrag Oct 1, 2024
8e28e3e
test: add some migrations tests
gfyrag Oct 2, 2024
75bf5b0
feat: add migration test using concrete database
gfyrag Oct 2, 2024
3d85a06
doc: add some documentation
gfyrag Oct 2, 2024
37127ff
feat: add gomarkdoc
gfyrag Oct 2, 2024
f4f49bc
feat: use _test.go suffix on generate mock files to avoid their docum…
gfyrag Oct 2, 2024
ad24c16
feat: add some readme
gfyrag Oct 2, 2024
513db8c
chore: pre-commit
gfyrag Oct 2, 2024
99470b1
feat: make MachineFactory take TX instead of vm.Store
ascandone Oct 2, 2024
f2e33a6
chore: remove gomarkdoc usage for now
gfyrag Oct 2, 2024
6fb2a57
doc: add some doc
gfyrag Oct 3, 2024
fcd1ea4
feat: separate doc
gfyrag Oct 3, 2024
c2b8318
chore: pre-commit
gfyrag Oct 3, 2024
cd092af
feat: add doc and fix test
gfyrag Oct 3, 2024
e6699fe
fix: increase golangci-lint timeout
gfyrag Oct 3, 2024
368434b
feat: add todo
gfyrag Oct 3, 2024
8547cad
fix: change type of 'id' column of ledgers table
gfyrag Oct 3, 2024
24a24fb
feat: add doc and remove database exporter from pre-commit
gfyrag Oct 3, 2024
f83c104
feat: add some doc
gfyrag Oct 3, 2024
8fb0b5a
fix: Earthfile
gfyrag Oct 3, 2024
4271549
chore: go generate
gfyrag Oct 3, 2024
9c68380
feat: remove needs to pass Dirty workflow to execute Tests workflow o…
gfyrag Oct 3, 2024
7a4504c
feat: simplify locking system
gfyrag Oct 3, 2024
933c179
chore: simplify Move model
gfyrag Oct 3, 2024
8298d36
doc: add some doc
gfyrag Oct 3, 2024
bb7fe4d
feat: Add openapi markdown documentation
gfyrag Oct 3, 2024
ac8f249
fix: filename
gfyrag Oct 3, 2024
ba7c8e7
fix: openapi markdown
gfyrag Oct 3, 2024
9d46969
feat: refine widdershins parameter
gfyrag Oct 3, 2024
16c491a
feat: refine widdershins parameter
gfyrag Oct 3, 2024
d1ecddc
fix: doc
gfyrag Oct 3, 2024
929545d
doc: move some things
gfyrag Oct 3, 2024
2b0dae8
chore: remove useless files
gfyrag Oct 3, 2024
d169efa
chore: clean benchmark useless code
gfyrag Oct 3, 2024
e591c39
feat: add report file on benchmarks
gfyrag Oct 4, 2024
13538d1
fix: hanging test
gfyrag Oct 4, 2024
a5188ad
fix: bad deadlock error handling
gfyrag Oct 4, 2024
8937067
feat: refine benchmark and add plot script
gfyrag Oct 4, 2024
d6aa843
feat: add tachnymeter
gfyrag Oct 4, 2024
e9fac06
feat: refine benchmarks
gfyrag Oct 5, 2024
388507a
feat: use chart.js for graphs
gfyrag Oct 5, 2024
7253da6
chore: renaming
gfyrag Oct 5, 2024
04cbd94
feat: add goreleaser for benchmarks
gfyrag Oct 8, 2024
101d554
chore: clean todo
gfyrag Oct 8, 2024
d0bc0fc
feat: let database generate all timestamps
gfyrag Oct 9, 2024
95948cc
chore: handle a todo and add some test
gfyrag Oct 9, 2024
0264603
feat: let database generate creation date of ledgers
gfyrag Oct 9, 2024
3324227
feat: ignore idempotency hash from old data
gfyrag Oct 9, 2024
0e5358a
feat: add logs memento
gfyrag Oct 10, 2024
fe85231
Revert "feat: compute hash at core level"
gfyrag Oct 10, 2024
931b1b3
feat: let database generate logs dates
gfyrag Oct 10, 2024
036aa86
feat: let database generate defaults dates for accounts
gfyrag Oct 10, 2024
1d0e9bc
feat: let database generate reversal dates
gfyrag Oct 10, 2024
18b92e9
feat: let database generate dates when updating transactions metadata
gfyrag Oct 10, 2024
8efb6d4
feat: add first_usage filter on accounts
gfyrag Oct 10, 2024
f69510a
chore: add git show on dirty failure
gfyrag Oct 10, 2024
0faf160
chore: remove todo
gfyrag Oct 10, 2024
ea54482
chore: clean todo
gfyrag Oct 10, 2024
0f16fc4
test: add some hash test and fix inconsistencies with v2
gfyrag Oct 10, 2024
ccba7b8
feat: refine query in storage
gfyrag Oct 10, 2024
b7feef1
feat: factorize some code
gfyrag Oct 10, 2024
312e24c
fix: add missing pgccrypto
gfyrag Oct 10, 2024
ecc7b93
fix: git diff
gfyrag Oct 10, 2024
695f537
ci: add benchmarks (#505)
flemzord Oct 10, 2024
c800b9b
perf(benchmark): increase parallelism in performance tests
flemzord Oct 10, 2024
b051a7f
feat: Add benchmarks to the GoReleaser configuration, allowing packag…
flemzord Oct 10, 2024
a310d95
feat: handle too many client connection error
gfyrag Oct 10, 2024
bcc61b1
feat: factorize error handling on api
gfyrag Oct 10, 2024
10b01d7
feat: handle migration
gfyrag Oct 10, 2024
d79134f
chore: clean some code
gfyrag Oct 10, 2024
83509ef
test: add some test
gfyrag Oct 10, 2024
d6f9829
test: add some test
gfyrag Oct 11, 2024
454d9ce
test: test creating ledger with invalid feature configuration
gfyrag Oct 11, 2024
02bc61e
chore: externalize pprof module
gfyrag Oct 11, 2024
78b7a5d
fix: pre-commit
gfyrag Oct 11, 2024
6eb5f8e
chore: lint tools
gfyrag Oct 11, 2024
17eb1cc
chore: remove todo
gfyrag Oct 11, 2024
3798da6
chore: clean todo
gfyrag Oct 11, 2024
1d365d3
feat: add otel collector and prom on benchmarks
gfyrag Oct 11, 2024
b285a56
chore: some lint
gfyrag Oct 11, 2024
4963aff
feat: add some metrics and export them add api level
gfyrag Oct 11, 2024
f12ab5d
feat: remove global tracer usage
gfyrag Oct 12, 2024
d13197f
feat: add pprof at common location
gfyrag Oct 12, 2024
05f40d8
feat: refine technical urls
gfyrag Oct 12, 2024
aee56d7
feat: update lib
gfyrag Oct 12, 2024
3e9e94f
feat: refine some metrics
gfyrag Oct 12, 2024
a3c7935
chore: some renaming
gfyrag Oct 12, 2024
f2719e6
feat: remove --enable-pprof flag, use --debug
gfyrag Oct 12, 2024
a09ba8f
fix: remove duplicate date assignation
gfyrag Oct 13, 2024
e1dbb19
feat: add database connections graph
gfyrag Oct 13, 2024
cf1e25e
feat: add deadlocks metric
gfyrag Oct 13, 2024
d73a2eb
feat: refine metrics and docker-compose
gfyrag Oct 14, 2024
b323ea1
test: add test on storage
gfyrag Oct 14, 2024
7934b81
fix: ci benchmarks
gfyrag Oct 14, 2024
1041e1d
fix: ci
gfyrag Oct 14, 2024
1468814
feat: add log
gfyrag Oct 14, 2024
f8c3dc7
chore: update GitHub Actions workflows
flemzord Oct 14, 2024
165d070
ci: add codecov report upload (#509)
gfyrag Oct 15, 2024
d807d38
fix(benchmarks): debug (#508)
gfyrag Oct 15, 2024
9e843fd
feat: simplify some internals
gfyrag Oct 15, 2024
9eb3510
feat: upgrade golibs under v2
gfyrag Oct 15, 2024
861f7f2
feat: rename MachineFactory struct into NumscriptParser
ascandone Oct 15, 2024
2c87e77
feat: renamed Machine into NumscriptRuntime
ascandone Oct 15, 2024
5a2426d
chore: renamed machine_factory file into numscript_parser
ascandone Oct 16, 2024
33fe17c
chore: renamed machine file into numscript_runtime
ascandone Oct 16, 2024
b734f1a
refactor: removed compiler.go
ascandone Oct 16, 2024
2725fb3
feat: add todo
gfyrag Oct 16, 2024
72493cd
fix: wrong schema
gfyrag Oct 17, 2024
cc70b03
chore: upgrade go libs
gfyrag Oct 17, 2024
397327a
feat: merge stores migrations
gfyrag Oct 17, 2024
e27b872
feat: simplify migration by removing templating
gfyrag Oct 17, 2024
5c4fef9
chore: update libs
gfyrag Oct 17, 2024
03f5c4f
feat: restore removed pg type (keep backward compat with column type)
gfyrag Oct 18, 2024
5e4e64a
wip: make first level of compat with previous version
gfyrag Oct 18, 2024
07bc0d3
feat: import legacy store
gfyrag Oct 18, 2024
5b63f49
feat: add some index allowing to quicky retrieve transactions and acc…
gfyrag Oct 18, 2024
1b94951
feat: route storage
gfyrag Oct 18, 2024
f4228fd
feat: make get balances call compat with v2 model
gfyrag Oct 19, 2024
7634713
chore: remove useless code
gfyrag Oct 19, 2024
921812b
chore: some clean
gfyrag Oct 19, 2024
96c9961
chore: upgrade database schemas
gfyrag Oct 19, 2024
ca352bc
chore: remove useless file
gfyrag Oct 19, 2024
a176231
chore: pre-commit
gfyrag Oct 19, 2024
b3772f5
fix: sequences migration from v2
gfyrag Oct 19, 2024
7ab1e31
feat: add experimental flag to enable features support
gfyrag Oct 20, 2024
7ba6dea
chore: fix benchmarks
gfyrag Oct 20, 2024
bbc0005
fix: benchmarks ci
gfyrag Oct 20, 2024
12ce722
fix: update file name template for benchmarks package in goreleaser c…
flemzord Oct 21, 2024
084d78d
chore(Earthfile): update core import and fix openapi overlay copy
flemzord Oct 22, 2024
0d5c5b9
feat: add global api timeout
gfyrag Oct 22, 2024
5f0efcb
chore: some renaming
gfyrag Oct 22, 2024
48c49f1
chore: pre-commit
gfyrag Oct 22, 2024
b42add9
fix: datarace
gfyrag Oct 22, 2024
51f7f34
feat: add bulk limits
gfyrag Oct 22, 2024
18af14b
fix: do not use same machine in different executions
ascandone Oct 22, 2024
c7363d9
fix: test timeout
gfyrag Oct 22, 2024
b7c23e8
fix: cached parser
gfyrag Oct 22, 2024
3c5d25b
chore: remove timeout feature (buggy)
gfyrag Oct 22, 2024
b39822f
feat: optimize e2e tests
gfyrag Oct 22, 2024
d6aa400
chore: reduce test verbosity
gfyrag Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .github/actions/env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ inputs:
runs:
using: composite
steps:
- uses: earthly/actions-setup@v1
with:
github-token: ${{ inputs.token }}
version: "latest"
use-cache: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Benchmark
on:
workflow_dispatch:
pull_request:
types: [ assigned, opened, synchronize, reopened, labeled ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
Benchmark:
runs-on: "github-001"
if: contains(github.event.pull_request.labels.*.name, 'benchmarks') || github.ref == 'refs/heads/main'
steps:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- run: go build -o /tmp/ledger ./
- run: echo "running actions as ${USER}"
- run: >
/tmp/ledger serve
--postgres-uri=postgres://formance:[email protected]/ledger
--postgres-conn-max-idle-time=120s
--postgres-max-open-conns=500
--postgres-max-idle-conns=100
--experimental-features
--otel-metrics-keep-in-memory &
- run: >
earthly
--allow-privileged
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
./test/performance+run --args="-benchtime 10s --ledger.url=http://localhost:3068 --parallelism=5"
- run: >
earthly
--allow-privileged
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
./test/performance+generate-graphs
- run: kill -9 $(ps aux | grep "ledger serve"| grep -v "grep" | awk '{print $2}')
if: always()
- uses: actions/upload-artifact@v4
with:
name: graphs
path: test/performance/report
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Dirty:
runs-on: "ubuntu-latest"
runs-on: "formance-runner"
steps:
- uses: 'actions/checkout@v4'
with:
Expand All @@ -50,13 +50,12 @@ jobs:
if (( $(echo ${#hasChanged}) != 0 )); then
git status
echo "There are changes in the repository"
git diff
exit 1
fi

Tests:
runs-on: "ubuntu-latest"
needs:
- Dirty
runs-on: "formance-runner"
steps:
- uses: 'actions/checkout@v4'
with:
Expand All @@ -67,16 +66,19 @@ jobs:
token: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- run: >
earthly
--no-output
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
+tests
+tests --coverage=true
env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

GoReleaser:
runs-on: "ubuntu-latest"
runs-on: "formance-runner"
if: contains(github.event.pull_request.labels.*.name, 'build-images') || github.ref == 'refs/heads/main' || github.event_name == 'merge_group'
needs:
- Dirty
Expand Down Expand Up @@ -115,7 +117,7 @@ jobs:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

Deploy:
runs-on: "ubuntu-latest"
runs-on: "formance-runner"
if: github.ref == 'refs/heads/main'
environment: staging
needs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- uses: earthly/actions-setup@v1
with:
github-token: ${{ inputs.token }}
version: "latest"
use-cache: true
- name: Setup Env
uses: ./.github/actions/env
with:
Expand Down
23 changes: 6 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
coverage*
/dist/
cmd/control/*
!cmd/control/gitkeep
.DS_Store
.idea
cover.out
go.work*
*.jar
node_modules
dist
vendor
sdk/swagger.yaml
sdk/swagger.yaml-e
sdk/sdks
.vscode
.env
sqlstorage.test
ledger.test
antlr-*-complete.jar
go.work
go.work.sum
benchs
worktrees
47 changes: 47 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,27 @@ builds:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- binary: benchmarks
id: benchmarks
ldflags:
- -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
command: test
dir: test/performance
no_main_check: true
tags:
- it

release:
prerelease: auto
Expand All @@ -33,6 +51,7 @@ archives:
- id: "{{.ProjectName}}"
builds:
- ledger
- benchmarks
format: tar.gz
name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}"

Expand All @@ -47,11 +66,22 @@ nfpms:
formats:
- deb
- rpm
- id: benchmarks
package_name: ledger-benchmarks
file_name_template: "{{ .ProjectName }}_benchmarks_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- benchmarks
homepage: https://formance.com
maintainer: Maxence Maireaux <[email protected]>
formats:
- deb
- rpm

publishers:
- name: fury.io
ids:
- ledger
- benchmarks
dir: "{{ dir .ArtifactPath }}"
cmd: curl --http1.1 -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/ledger/

Expand All @@ -75,3 +105,20 @@ brews:
system "#{bin}/ledger version"
install: |
bin.install "ledger"
- name: ledger-benchmarks
alternative_names:
- ledger-benchmarks@{{ .Major }}
repository:
owner: formancehq
name: homebrew-tap
pull_request:
enabled: true
base:
owner: formancehq
name: homebrew-tap
branch: main
directory: Formula
homepage: https://formance.com
skip_upload: 'false'
install: |
bin.install "ledger-benchmarks"
Loading