mirror of
https://github.com/dapr/dapr.git
synced 2026-10-28 16:46:37 +08:00
* ci: speed up e2e Signed-off-by: joshvanl <me@joshvanl.dev> * tests: address review feedback on e2e speedup - Note in dapr_tests.mk that DAPR_E2E_SERIAL_PACKAGES entries must be plain directory names, since they are joined into a grep -E alternation. - Name the quiet window after the single-fire reminder check (singleFireQuietWindow) instead of an inline 5s sleep. Signed-off-by: joshvanl <me@joshvanl.dev> * ci: harden the e2e image cache against stale and silent failures Address three review findings on the cache mechanism: - Cache keys now include shared build inputs. Apps without their own Dockerfile are packaged with the shared tests/apps/Dockerfile, and if they also have no go.mod of their own they compile against the root module; neither input was part of the content hash, so changing them would silently reuse stale cached images. Both are now hashed for exactly the apps they affect: a root go.sum change re-keys hellodapr but not actorjava (own Dockerfile) or resiliencyapp (own go.mod). - The cache-population workflow sets DAPR_CACHE_REQUIRED, which turns a failed cache push into a run failure instead of a silently incomplete cache. All other runs keep the best-effort behavior since they may legitimately lack write access. - The precompiled build tool binary is only used when the caller opts in with USE_BUILD_TOOLS_BIN=true, which CI sets right after compile-build-tools. Locally `go run` remains the default so source edits are always reflected instead of silently running a stale binary. Signed-off-by: joshvanl <me@joshvanl.dev> * tests: make k6 unit test fake tolerant of extra job polls Signed-off-by: joshvanl <me@joshvanl.dev> --------- Signed-off-by: joshvanl <me@joshvanl.dev> Co-authored-by: Cassie Coyle <cassie@diagrid.io>