Skip to content

Commit d64ac81

Browse files
committed
Merge branch 'next'
2 parents 7293d10 + 1d9ca19 commit d64ac81

Some content is hidden

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

68 files changed

+3772
-2063
lines changed

.env.example

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1-
# TOBEY_DEBUG=false
2-
# TOBEY_SKIP_CACHE=false
1+
# Controls debug mode, uncomment to enable debug mode, by default it is disabled.
2+
# TOBEY_DEBUG=true
33

4-
TOBEY_PROGRESS_DSN=http://progress:8080
5-
TOBEY_RABBITMQ_DSN=amqp://guest:guest@rabbitmq:5672/
6-
TOBEY_REDIS_DSN=redis:6379/0
4+
# Controls caching access, uncomment to disabled caching. By default caching is enabled.
5+
# TOBEY_SKIP_CACHE=true
76

8-
# TOBEY_REQS_PER_S=2
7+
# Controls the number of workers per instance, by default 5.
8+
# TOBEY_WORKERS=5
99

10-
# A space separated list of telemetry to send. Available telemetry: metrics,
11-
# traces. To disable telemetry provide an empty value. When enabling telemetry
12-
# appropriate OTLP endpoints must provided as well.
13-
TOBEY_TELEMETRY="traces"
14-
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://jaeger:4318/v1/traces
10+
# DSN specifying where crawl results should be stored, by default no results are stored. Here we store results
11+
# in the "results" directory, relative to the current working directory.
12+
TOBEY_RESULTS_DSN=disk://results
13+
# TOBEY_RESULTS_DSN=webhook://host/path
14+
15+
# DSN for progress reporting. By default, a console progress reporter is used. Uncomment to report progress to the
16+
# Factorial service or disable progress reporting.
17+
# TOBEY_PROGRESS_DSN=factorial://localhost:8080
18+
# TOBEY_PROGRESS_DSN=
19+
20+
# If you have multiple instances of Tobey, you can use a Redis instance to coordinate the work queue. By default
21+
# no coordination is done, uncomment to enable coordination.
22+
# TOBEY_REDIS_DSN=redis://localhost:6379
23+
24+
# A space separated list of telemetry to send. Available telemetry: metrics, traces, pulse. By default no telemetry
25+
# is send. Uncomment to enable metrics and traces.
26+
# TOBEY_TELEMETRY=metrics traces
27+
28+
# In order to send telemetry you need to provide the OTLP endpoints, as well.
29+
# OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=
30+
# OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=

.env.example.factorial

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Controls debug mode, uncomment to enable debug mode, by default it is disabled.
2+
# TOBEY_DEBUG=true
3+
4+
# Controls caching access, uncomment to disabled caching. By default caching is enabled.
5+
# TOBEY_SKIP_CACHE=true
6+
7+
# DSN specifying where crawl results should be stored, by default no results are stored. Here we store results
8+
# in the "results" directory, relative to the current working directory.
9+
# TOBEY_RESULTS_DSN=disk://results
10+
TOBEY_RESULTS_DSN=webhook://?enable_dynamic_config
11+
12+
# DSN for progress reporting. By default no progress is reported, uncomment to report progress to the
13+
# Factorial service.
14+
TOBEY_PROGRESS_DSN=factorial://localhost:8080
15+
16+
# If you have multiple instances of Tobey, you can use a Redis instance to coordinate the work queue. By default
17+
# no coordination is done, uncomment to enable coordination.
18+
TOBEY_REDIS_DSN=redis:6379/0
19+
20+
# A space separated list of telemetry to send. Available telemetry: metrics, traces, pulse. By default no telemetry
21+
# is send. Uncomment to enable metrics and traces.
22+
TOBEY_TELEMETRY="traces"
23+
24+
# In order to send telemetry you need to provide the OTLP endpoints, as well.
25+
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://jaeger:4318/v1/traces
26+
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=

.fabfile.yaml

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

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v4
16+
with:
17+
go-version: '1.21'
18+
19+
- name: Run Tests
20+
run: go test -v ./...
21+
22+
release:
23+
needs: test
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Set up Go
30+
uses: actions/setup-go@v4
31+
with:
32+
go-version: '1.21'
33+
34+
- name: Build for Linux
35+
run: |
36+
GOOS=linux GOARCH=amd64 go build -o tobey-linux-amd64
37+
GOOS=linux GOARCH=arm64 go build -o tobey-linux-arm64
38+
39+
- name: Build for macOS
40+
run: |
41+
GOOS=darwin GOARCH=amd64 go build -o tobey-darwin-amd64
42+
GOOS=darwin GOARCH=arm64 go build -o tobey-darwin-arm64
43+
44+
- name: Create Release
45+
uses: softprops/action-gh-release@v1
46+
with:
47+
files: |
48+
tobey-linux-amd64
49+
tobey-linux-arm64
50+
tobey-darwin-amd64
51+
tobey-darwin-arm64
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main, next ]
6+
pull_request:
7+
branches: [ main, next ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.21'
20+
21+
- name: Run Tests
22+
run: go test -v ./...

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
cache
22
tobey
3+
.env

.hosting/scaffold/index.yml

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

.hosting/scaffold/template/app/app-deployment.yml

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

.hosting/scaffold/template/app/app-service.yml

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

.hosting/scaffold/template/secrets/app-secrets.yml

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

0 commit comments

Comments
 (0)