Skip to content

Commit 5a391e0

Browse files
authored
feat: release v0.19.5 (#498)
1 parent 458241e commit 5a391e0

46 files changed

Lines changed: 777 additions & 341 deletions

Some content is hidden

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

‎.github/workflows/coverage.yml‎

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -63,60 +63,3 @@ jobs:
6363
uses: codecov/codecov-action@v4
6464
with:
6565
token: ${{ secrets.CODECOV_TOKEN }}
66-
67-
# # TODO handle locally
68-
# - name: Test coverage pkg
69-
# run: task test-coverage-pkg
70-
# - name: Test count
71-
# run: task test-count
72-
# - name: Test count pkg
73-
# run: task test-count-pkg
74-
#
75-
# - name: Numbers to env
76-
# run: |
77-
# echo "LOC_TOOLS=$(task cloc-go-tools)" >> $GITHUB_ENV
78-
# echo "LOC_PKG=$(task cloc-go-pkg)" >> $GITHUB_ENV
79-
# echo "COVERAGE=$(cat coverage.sum.txt)" >> $GITHUB_ENV
80-
# echo "COVERAGE_PKG=$(cat coverage-pkg.sum.txt)" >> $GITHUB_ENV
81-
# echo "TESTS=$(cat tests.txt)" >> $GITHUB_ENV
82-
# echo "TESTS_PKG=$(cat tests-pkg.txt)" >> $GITHUB_ENV
83-
#
84-
# - name: Badge - LoC /tools
85-
# uses: schneegans/dynamic-badges-action@v1.3.0
86-
# with:
87-
# auth: ${{ secrets.GIST_SECRET }}
88-
# gistID: c6032233dc1d632732ecdc1a4c119850
89-
# filename: loc-tools.json
90-
# label: LoC /tools
91-
# message: ${{ env.LOC_TOOLS }}
92-
# color: orange
93-
#
94-
# - name: Badge - LoC /pkg
95-
# uses: schneegans/dynamic-badges-action@v1.3.0
96-
# with:
97-
# auth: ${{ secrets.GIST_SECRET }}
98-
# gistID: c6032233dc1d632732ecdc1a4c119850
99-
# filename: loc-pkg.json
100-
# label: LoC /pkg
101-
# message: ${{ env.LOC_PKG }}
102-
# color: orange
103-
#
104-
# - name: Badge - tests
105-
# uses: schneegans/dynamic-badges-action@v1.3.0
106-
# with:
107-
# auth: ${{ secrets.GIST_SECRET }}
108-
# gistID: c6032233dc1d632732ecdc1a4c119850
109-
# filename: tests.json
110-
# label: tests
111-
# message: ${{ env.TESTS }}
112-
# color: blue
113-
#
114-
# - name: Badge - tests /pkg
115-
# uses: schneegans/dynamic-badges-action@v1.3.0
116-
# with:
117-
# auth: ${{ secrets.GIST_SECRET }}
118-
# gistID: c6032233dc1d632732ecdc1a4c119850
119-
# filename: tests-pkg.json
120-
# label: tests /pkg
121-
# message: ${{ env.TESTS_PKG }}
122-
# color: blue

‎.github/workflows/linter.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Linter
22

3-
on: [push]
3+
on: release
44

55
jobs:
66
build:

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ tools/visualizer/testdata/*
112112
/docs/editors/skills/am-cook
113113
/docs/editors/skills/am-full
114114
/docs/editors/skills/am-mini
115+
/docs/editors/skills/am-readme
115116
/pkg/history/badger/amhist.badger
116117
/examples/wasm/client/amhist.badger/
117118
/.rumdl_cache/

‎Taskfile.yml‎

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -256,22 +256,23 @@ tasks:
256256
AM_TEST_RUNNER: 1
257257
desc: Run only integration tests
258258
cmds:
259+
- task: test-integration-dbg
260+
- task: test-integration-wasm
259261
- task: clean-test
260262
- go test -tags integration
261-
-p 1 --parallel 1
262-
./tools/debugger/test
263-
./examples/arpc
264-
./examples/basic
265-
./examples/cli
266-
./examples/cli_daemon
267-
./examples/dag_dependency_graph
268-
./examples/fan_out_in
269-
./examples/mach_template
270-
./examples/pipes
271-
./examples/raw_strings
272-
./examples/subscriptions
273-
./tools/debugger
274-
{{.CLI_ARGS}}
263+
-p 1 --parallel 1
264+
./examples/arpc
265+
./examples/basic
266+
./examples/cli
267+
./examples/cli_daemon
268+
./examples/dag_dependency_graph
269+
./examples/fan_out_in
270+
./examples/mach_template
271+
./examples/pipes
272+
./examples/raw_strings
273+
./examples/subscriptions
274+
./pkg/history/gorm
275+
{{.CLI_ARGS}}
275276

276277
test-integration-dbg:
277278
env:
@@ -591,7 +592,11 @@ tasks:
591592

592593
gen-docs-manual-pdf:
593594
cmds:
594-
- pandoc -f markdown-implicit_figures docs/manual.md -o assets/asyncmachine-go/manual.pdf
595+
- >-
596+
docker run --rm -v "$(pwd):/data" pandoc/extra \
597+
-f markdown-implicit_figures docs/manual.md \
598+
-o manual.pdf
599+
- mv manual.pdf assets/asyncmachine-go/manual.pdf
595600

596601
prof-cpu-img:
597602
cmds:
@@ -731,7 +736,7 @@ tasks:
731736
desc: Exit Zellij dashboard
732737
cmd: zellij delete-session am-dashboard --force
733738

734-
gen-jsonschema:
739+
gen-docs-jsonschema:
735740
desc: Generate JSON schemas for pkg/integrations
736741
dir: scripts
737742
cmd: go run ./gen_jsonschema
@@ -882,7 +887,6 @@ tasks:
882887
script-gen-api-docs:
883888
dir: scripts
884889
deps: [install-deps-scripts]
885-
# TODO run tool golds
886890
cmd: go run ./gen_api_docs
887891

888892
script-gen-website:

‎config/terminalizer.yml‎

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

‎examples/mach_template/mach_template.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ type TemplateHandlers struct {
178178
var _ = ss.Foo
179179

180180
func (h *TemplateHandlers) FooState(e *am.Event) {
181-
ctx := h.Mach.NewStateCtx(ss.Bar)
181+
ctx := h.Mach.NewStateCtx(ss.Bar, e)
182182

183183
// unblock
184184
h.Mach.Fork(ctx, e, func() {
@@ -205,7 +205,7 @@ func (h *TemplateHandlers) BazState(e *am.Event) {
205205
addr := args.Addr
206206

207207
// multi states rely on context of other states
208-
ctx := h.Mach.NewStateCtx(ss.Start)
208+
ctx := h.Mach.NewStateCtx(ss.Start, e)
209209

210210
// very frequent multi-states should be rate-limited
211211
h.Mach.PoolFork(ctx, e, func() {

‎examples/tree_state_source/cmd_state_node.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func exportTelemetry(node *Node, mach am.Api) {
179179
amhelp.MachDebugEnv(mach)
180180

181181
if node.Loki != nil {
182-
amtele.BindLokiLogger(mach, node.Loki)
182+
amtele.MachBindLokiLogger(mach, node.Loki)
183183
}
184184

185185
// prom metrics

‎go.mod‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module github.com/pancsta/asyncmachine-go
22

3+
//go 1.21.13
34
go 1.26.5
45

56
// FORK REPLACES
@@ -27,7 +28,7 @@ go 1.26.5
2728

2829
//replace github.com/pancsta/d2 => ../d2
2930

30-
tool github.com/traefik/yaegi/cmd/yaegi
31+
//tool github.com/traefik/yaegi/cmd/yaegi
3132

3233
require (
3334
charm.land/ssh v0.4.3
@@ -157,6 +158,10 @@ require (
157158
github.com/docker/docker v28.5.1+incompatible // indirect
158159
github.com/docker/go-connections v0.6.0 // indirect
159160
github.com/docker/go-units v0.5.0 // indirect
161+
github.com/dsoprea/go-exif/v3 v3.0.1 // indirect
162+
github.com/dsoprea/go-logging v0.0.0-20200710184922-b02d349568dd // indirect
163+
github.com/dsoprea/go-png-image-structure/v2 v2.0.0-20210512210324-29b889a6093d // indirect
164+
github.com/dsoprea/go-utility/v2 v2.0.0-20221003172846-a3e1774ef349 // indirect
160165
github.com/dunglas/httpsfv v1.1.0 // indirect
161166
github.com/dustin/go-humanize v1.0.1 // indirect
162167
github.com/ebitengine/purego v0.8.4 // indirect
@@ -176,6 +181,7 @@ require (
176181
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
177182
github.com/goccy/go-json v0.10.5 // indirect
178183
github.com/gogo/protobuf v1.3.2 // indirect
184+
github.com/golang/geo v0.0.0-20260713102120-857a528af641 // indirect
179185
github.com/golang/protobuf v1.5.4 // indirect
180186
github.com/golang/snappy v1.0.0 // indirect
181187
github.com/google/flatbuffers v25.2.10+incompatible // indirect

‎go.sum‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,26 @@ github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4
146146
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
147147
github.com/dominikbraun/graph v0.23.0 h1:TdZB4pPqCLFxYhdyMFb1TBdFxp8XLcJfTTBQucVPgCo=
148148
github.com/dominikbraun/graph v0.23.0/go.mod h1:yOjYyogZLY1LSG9E33JWZJiq5k83Qy2C6POAuiViluc=
149+
github.com/dsoprea/go-exif/v2 v2.0.0-20200321225314-640175a69fe4/go.mod h1:Lm2lMM2zx8p4a34ZemkaUV95AnMl4ZvLbCUbwOvLC2E=
150+
github.com/dsoprea/go-exif/v3 v3.0.0-20200717053412-08f1b6708903/go.mod h1:0nsO1ce0mh5czxGeLo4+OCZ/C6Eo6ZlMWsz7rH/Gxv8=
151+
github.com/dsoprea/go-exif/v3 v3.0.0-20210428042052-dca55bf8ca15/go.mod h1:cg5SNYKHMmzxsr9X6ZeLh/nfBRHHp5PngtEPcujONtk=
152+
github.com/dsoprea/go-exif/v3 v3.0.0-20210625224831-a6301f85c82b/go.mod h1:cg5SNYKHMmzxsr9X6ZeLh/nfBRHHp5PngtEPcujONtk=
153+
github.com/dsoprea/go-exif/v3 v3.0.0-20221003160559-cf5cd88aa559/go.mod h1:rW6DMEv25U9zCtE5ukC7ttBRllXj7g7TAHl7tQrT5No=
154+
github.com/dsoprea/go-exif/v3 v3.0.0-20221003171958-de6cb6e380a8/go.mod h1:akyZEJZ/k5bmbC9gA612ZLQkcED8enS9vuTiuAkENr0=
155+
github.com/dsoprea/go-exif/v3 v3.0.1 h1:/IE4iW7gvY7BablV1XY0unqhMv26EYpOquVMwoBo/wc=
156+
github.com/dsoprea/go-exif/v3 v3.0.1/go.mod h1:10HkA1Wz3h398cDP66L+Is9kKDmlqlIJGPv8pk4EWvc=
157+
github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696/go.mod h1:Nm/x2ZUNRW6Fe5C3LxdY1PyZY5wmDv/s5dkPJ/VB3iA=
158+
github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
159+
github.com/dsoprea/go-logging v0.0.0-20200710184922-b02d349568dd h1:l+vLbuxptsC6VQyQsfD7NnEC8BZuFpz45PgY+pH8YTg=
160+
github.com/dsoprea/go-logging v0.0.0-20200710184922-b02d349568dd/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
161+
github.com/dsoprea/go-png-image-structure/v2 v2.0.0-20210512210324-29b889a6093d h1:2zNIgrJTspLxUKoJGl0Ln24+hufPKSjP3cu4++5MeSE=
162+
github.com/dsoprea/go-png-image-structure/v2 v2.0.0-20210512210324-29b889a6093d/go.mod h1:scnx0wQSM7UiCMK66dSdiPZvL2hl6iF5DvpZ7uT59MY=
163+
github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf/go.mod h1:95+K3z2L0mqsVYd6yveIv1lmtT3tcQQ3dVakPySffW8=
164+
github.com/dsoprea/go-utility/v2 v2.0.0-20200717064901-2fccff4aa15e/go.mod h1:uAzdkPTub5Y9yQwXe8W4m2XuP0tK4a9Q/dantD0+uaU=
165+
github.com/dsoprea/go-utility/v2 v2.0.0-20221003142440-7a1927d49d9d/go.mod h1:LVjRU0RNUuMDqkPTxcALio0LWPFPXxxFCvVGVAwEpFc=
166+
github.com/dsoprea/go-utility/v2 v2.0.0-20221003160719-7bc88537c05e/go.mod h1:VZ7cB0pTjm1ADBWhJUOHESu4ZYy9JN+ZPqjfiW09EPU=
167+
github.com/dsoprea/go-utility/v2 v2.0.0-20221003172846-a3e1774ef349 h1:DilThiXje0z+3UQ5YjYiSRRzVdtamFpvBQXKwMglWqw=
168+
github.com/dsoprea/go-utility/v2 v2.0.0-20221003172846-a3e1774ef349/go.mod h1:4GC5sXji84i/p+irqghpPFZBF8tRN/Q7+700G0/DLe8=
149169
github.com/dunglas/httpsfv v1.1.0 h1:Jw76nAyKWKZKFrpMMcL76y35tOpYHqQPzHQiwDvpe54=
150170
github.com/dunglas/httpsfv v1.1.0/go.mod h1:zID2mqw9mFsnt7YC3vYQ9/cjq30q41W+1AnDwH8TiMg=
151171
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
@@ -202,6 +222,11 @@ github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 h1:au07oEsX2xN0kt
202222
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
203223
github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A=
204224
github.com/golang-sql/sqlexp v0.1.0/go.mod h1:J4ad9Vo8ZCWQ2GMrC4UCQy1JpCbwU9m3EOqtpKwwwHI=
225+
github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
226+
github.com/golang/geo v0.0.0-20200319012246-673a6f80352d/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
227+
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
228+
github.com/golang/geo v0.0.0-20260713102120-857a528af641 h1:cpoobkgVGCE6bC5kJkOfwfM6hAtZuvoBjnCLECxG4AU=
229+
github.com/golang/geo v0.0.0-20260713102120-857a528af641/go.mod h1:Mymr9kRGDc64JPr03TSZmuIBODZ3KyswLzm1xL0HFA8=
205230
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
206231
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
207232
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
@@ -829,6 +854,10 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8
829854
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
830855
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
831856
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
857+
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
858+
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
859+
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
860+
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
832861
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
833862
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
834863
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

‎internal/testing/testing.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ func NewDbgWorker(
159159

160160
// am-dbg server (used for testing live connections)
161161
if p.ListenAddr != "" {
162-
d.ServerMux, d.ServerHttp, err = server.New(d.Mach, p.ListenAddr, p)
162+
d.ServerMux, d.ServerHttp, err = server.New(d.Mach, p.ListenAddr,
163+
d.Params.Load)
163164
if err != nil {
164165
return nil, err
165166
}

0 commit comments

Comments
 (0)