Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
ci: gate merging on a single Release Validation summary job (#775)
Elijah ben Izzy56dcfd4735f8
diff --git a/.asf.yaml b/.asf.yamlindex 1c342d43..344bbcf6 100644--- a/.asf.yaml+++ b/.asf.yaml@@ -62,10 +62,13 @@ github:required_status_checks:# strict means "Require branches to be up to date before merging".strict: false- # contexts are the names of checks that must pass+ # The Release Validation workflow ends in a single "summary" job that+ # runs with if: always() and translates upstream SUCCESS or SKIPPED+ # into a definite SUCCESS, FAILURE into FAILURE. That gives us one+ # stable required check name regardless of whether the upstream jobs+ # ran (real code PR) or were path-filtered out (docs/website PR).contexts:- - "Release Validation / build-artifacts"- - "Release Validation / install-and-smoke (3.12)"+ - "Release Validation / summary"required_pull_request_reviews:dismiss_stale_reviews: falserequire_code_owner_reviews: falsediff --git a/.github/workflows/release-validation.yml b/.github/workflows/release-validation.ymlindex 6271cd80..a1872db3 100644--- a/.github/workflows/release-validation.yml+++ b/.github/workflows/release-validation.yml@@ -193,3 +193,33 @@ jobs:path: /tmp/burr-smoke-*retention-days: 7if-no-files-found: ignore++ # Single stable required-check name. Always runs (if: always()) so it produces+ # a definite SUCCESS or FAILURE — never SKIPPED. Branch protection in+ # .asf.yaml requires this context, not the underlying jobs, so path-filtered+ # docs/website PRs (where the upstream jobs are skipped) still go green here.+ summary:+ name: "Release Validation / summary"+ needs: [check-paths, build-artifacts, install-and-smoke]+ if: always()+ runs-on: ubuntu-latest+ timeout-minutes: 2+ steps:+ - name: Verdict+ env:+ CHECK_PATHS: ${{ needs.check-paths.result }}+ BUILD_ARTIFACTS: ${{ needs.build-artifacts.result }}+ INSTALL_AND_SMOKE: ${{ needs.install-and-smoke.result }}+ run: |+ echo "check-paths: $CHECK_PATHS"+ echo "build-artifacts: $BUILD_ARTIFACTS"+ echo "install-and-smoke: $INSTALL_AND_SMOKE"+ # Pass if every needed job is success or skipped; fail if any+ # failed or was cancelled.+ for r in "$CHECK_PATHS" "$BUILD_ARTIFACTS" "$INSTALL_AND_SMOKE"; do+ case "$r" in+ success|skipped) ;;+ *) echo "::error::Release Validation failed (one or more jobs not success/skipped)"; exit 1 ;;+ esac+ done+ echo "Release Validation: all upstream jobs success or skipped."diff --git a/burr/core/graph.py b/burr/core/graph.pyindex b31e1cab..c5c4dfaa 100644--- a/burr/core/graph.py+++ b/burr/core/graph.py@@ -107,9 +107,7 @@ def _render_graphviz(graphviz_obj.render(path_without_suffix, format=fmt, view=view)else:# `.pipe()` doesn't append the format to the filename, so we do it explicitly- pathlib.Path(f"{path_without_suffix}.{fmt}").write_bytes(- graphviz_obj.pipe(format=fmt)- )+ pathlib.Path(f"{path_without_suffix}.{fmt}").write_bytes(graphviz_obj.pipe(format=fmt))@dataclasses.dataclass