Skip to content

Commit 3699c5f

Browse files
authored
feat: project flag run execution with durable Temporal workflows (#8355)
* wip: temporal workflows and memoizing * temporal client * get workflow runners running * work on reconciliation workflow * fix up schemas for scan configs * wip: image scanning * limits on how many images we scan per project per timeframe * after mutating a project, reconcile its image scans * decision questions for rules * generic text scanning activities * add flag modules system * add rhai-url, rhai-chrono and document * add route to get project context * oops we cant touch that migration * fetch all projects for team members in flag context * move scan runs to temporal workflow * move more to temporal * type flag_outcome * reconcile workflow also runs rules * pass AI results into rule context * setup for automatically changing project status * rule revisions and deployment * reconciliation now updates project status * simplify migration * move project ID batching to temporal * handle only-reconcile-in-review properly * make sure retained flags work properly * use run state from temporal * get auto approval working wrt mod issues * auto approval workflow * allow blocking auto approval * track auto-approval state * mod queue route * prepare * fix ci * fix FK when deleting existing flag runs * address comments * switch scheduled-queue state of truth to temporal * split migration that touched main into new one * add ContextField options to rules * some cleanup * fix upload ordering * fix ci * please lord let ci pass * disable auto approve/withhold by default
1 parent 0fc4aeb commit 3699c5f

158 files changed

Lines changed: 13048 additions & 2015 deletions

File tree

Some content is hidden

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

‎.github/workflows/labrinth-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
run: nsc cache sccache setup --cache_name default >> "$GITHUB_ENV"
8585

8686
- name: Install build dependencies
87-
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends cmake
87+
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends cmake protobuf-compiler libprotobuf-dev
8888

8989
- name: Build labrinth
9090
run: cargo build --profile release-labrinth --package labrinth

‎.github/workflows/turbo-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Install apt dependencies
9898
run: |
9999
sudo apt-get update
100-
sudo apt-get install -y cmake libcurl4-openssl-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev
100+
sudo apt-get install -y cmake protobuf-compiler libprotobuf-dev libcurl4-openssl-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev
101101
102102
- name: Setup Rust toolchain
103103
uses: actions-rust-lang/setup-rust-toolchain@a188e68d0fd2bd36ad51dccb2b07ba6e75105f30 # v2.0.1

0 commit comments

Comments
 (0)