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

Move build state away from api - integration tests #454

Closed
wants to merge 78 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
f2440cd
feat(template-manager): build logs stored wwith corresponding buildID…
sitole Mar 5, 2025
2599724
chore(template-manager): separate system and build stauts loggers
sitole Mar 5, 2025
b3869c4
feat(template-manager): separate build trigger and status scheck apis
sitole Mar 5, 2025
0e51d09
chore(template-manager): builds logs wirter uses only logger, streami…
sitole Mar 5, 2025
1eba6ac
feat(template-manager): template creation runs background
sitole Mar 5, 2025
99e612b
feat(template-manager): template status endpoint will pulling of buil…
sitole Mar 5, 2025
ceedeec
chore(api): build cache removed from api store
sitole Mar 6, 2025
0db8efa
chore(api): template builds logs are using db instead of locally cach…
sitole Mar 6, 2025
3b81051
reguster template manager for api store, run background process for b…
sitole Mar 10, 2025
1b3721c
fixed build status logs mapping
sitole Mar 10, 2025
f88ef58
fixed issues in template manager cache
sitole Mar 10, 2025
5b073ca
api template build refactor
sitole Mar 10, 2025
5658866
adjusted build cache ttl
sitole Mar 10, 2025
7124b93
sorted imports
sitole Mar 10, 2025
2b3dfd6
added telemetry record for template creation
sitole Mar 10, 2025
690798d
cleanup template start build endpoint
sitole Mar 10, 2025
4c70a2b
removed unused cache calls
sitole Mar 10, 2025
c5a6f9c
enabled background sync for tempalte builds
sitole Mar 10, 2025
ee8527e
lowered limit for template manager cache
sitole Mar 10, 2025
5a8c141
mark build failed when error during build in template-manager
sitole Mar 10, 2025
5270e41
fail builds in waiting phase after it takes too long
sitole Mar 10, 2025
492fb9d
background sync of template builds adjusted to one per minute
sitole Mar 10, 2025
27e8f50
build status sync that support ctx
sitole Mar 10, 2025
b3e6c6e
changed order of params in protobuf spec
sitole Mar 11, 2025
48ab346
fixed missed limits
sitole Mar 11, 2025
d28585d
do not create separate ctx with telemetry context
sitole Mar 11, 2025
38e6437
use state-machine enumerations instead of bools
sitole Mar 11, 2025
95155b8
dockerbuild and docker push can take up to 20 minutes now
sitole Mar 11, 2025
d2016e7
custom error type for not found template build
sitole Mar 11, 2025
582a5b8
use struct def instad of inlined one
sitole Mar 11, 2025
9dc8e44
proper catch error during template build fetch
sitole Mar 11, 2025
0b1b66a
typo in defer cleanup function in template build
sitole Mar 11, 2025
d7b0e15
tracking span created in background sync routine
sitole Mar 11, 2025
57b9d73
after-rebase fix, removed build cache from apistore struct
sitole Mar 11, 2025
bbddca3
check if build is waiting state when build trigger
sitole Mar 12, 2025
e5aca3f
make concurrent builds check more readable
sitole Mar 12, 2025
7a728f0
increased timeout for template build status
sitole Mar 12, 2025
9d6acf1
removed not needed and for db query
sitole Mar 12, 2025
82446c8
lock mutex during buidl cache removal
sitole Mar 12, 2025
037ff30
fixed printing different error than received via grpc
sitole Mar 12, 2025
28b8719
ctx fix, removed todo
sitole Mar 12, 2025
05b623f
refactor background job for builds sync to use ticker and timeout con…
sitole Mar 12, 2025
d37eb35
create background build span for tracing
sitole Mar 12, 2025
4e9eb13
take ctx from parent and extend it for tracing
sitole Mar 12, 2025
531e970
return typed error for `GetEnv` method in db catalog
sitole Mar 12, 2025
e0083d3
template-manager: exist instantly when error during build
sitole Mar 12, 2025
8269fe0
use cache for template builds to make less queries to db
sitole Mar 12, 2025
8856848
fixed using grpc request ctx for background job, using just trace span
sitole Mar 12, 2025
7c90349
merge issue
sitole Mar 14, 2025
7da3d44
removed temp logging
sitole Mar 14, 2025
d024439
speed up interval for checking template status
sitole Mar 14, 2025
29f4c8a
log template cache hit
sitole Mar 14, 2025
747fcf8
take build status from cache instead of db query
sitole Mar 14, 2025
b73d62c
go deps sync
sitole Mar 14, 2025
37c39be
fixed missing cache status update
sitole Mar 14, 2025
5f8cc32
return proper state when build is still in waiting phase
sitole Mar 14, 2025
25e3b13
missing build cache status set
sitole Mar 14, 2025
2afda5b
template build logs early return
sitole Mar 14, 2025
fb587a8
Add template manager integration tests
jakubno Mar 14, 2025
5c6a09e
Add build test
jakubno Mar 14, 2025
73e3cec
Small improvements
jakubno Mar 14, 2025
113df55
Run test
jakubno Mar 14, 2025
703227e
Run build test only in pipeline
jakubno Mar 14, 2025
ea6b1f0
Clean up
jakubno Mar 14, 2025
82d2b0b
Add template manager address
jakubno Mar 14, 2025
c7b2d83
Start template manager
jakubno Mar 14, 2025
a4f7a90
Pass variable
jakubno Mar 14, 2025
818f863
Update spec
jakubno Mar 14, 2025
e4c6353
temp fix
jakubno Mar 14, 2025
0e7e851
Test
jakubno Mar 14, 2025
b7f338e
Fix
jakubno Mar 14, 2025
a09f270
Test
jakubno Mar 14, 2025
6a1607c
Test
jakubno Mar 14, 2025
62f4fda
Test
jakubno Mar 14, 2025
995233e
Add logs
jakubno Mar 14, 2025
52441ff
Use secret
jakubno Mar 14, 2025
18263b0
Pass secret
jakubno Mar 15, 2025
65472f5
Pass secret
jakubno Mar 15, 2025
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
Prev Previous commit
Next Next commit
Test
jakubno committed Mar 14, 2025
commit 0e7e851df3fe45f928df2b748f054c6b5d002800
2 changes: 1 addition & 1 deletion .github/actions/start-services/action.yml
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ runs:
env:
ENVD_TIMEOUT: "60s"
SUPABASE_JWT_SECRETS: "supabasejwtsecretsupabasejwtsecret"
TEMPLATE_MANAGER_ADDRESS: "localhost:5009"
TEMPLATE_MANAGER_ADDRESS: "http://127.0.0.1:5009"
run: |
echo "ENVD_TIMEOUT=${ENVD_TIMEOUT}" >> .env.test
echo "SUPABASE_JWT_SECRETS=${SUPABASE_JWT_SECRETS}" >> .env.test