From 4c137f3e506f45cff30c675306a474acd8a7fbf3 Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Mon, 25 May 2026 17:46:22 -0500 Subject: [PATCH] Add comments to fix syntax highlighting --- tests/integration.rc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/integration.rc b/tests/integration.rc index 3c6bf7e..e2cfb14 100755 --- a/tests/integration.rc +++ b/tests/integration.rc @@ -159,9 +159,9 @@ fn test_branch_tag_and_protected_refs { queue_count=`{find $remote^/sip/queue -type f -name '*.event' | awk 'END { print NR }'} assert_eq $queue_count 4 'branch update and tag pushes should queue four events' - for(event in $remote^/sip/queue/*.event) + for(event in $remote^/sip/queue/*.event) #*/ assert_event_schema $event - if(! awk -F ' ' '$5 == "alice_smith" { found = 1 } END { exit found ? 0 : 1 }' $remote^/sip/queue/*.event) + if(! awk -F ' ' '$5 == "alice_smith" { found = 1 } END { exit found ? 0 : 1 }' $remote^/sip/queue/*.event) #*/ fail queue event sanitizes actor values $root^/bin/sip-worker.rc $remote >/dev/null || fail worker failed @@ -188,18 +188,18 @@ fn test_branch_tag_and_protected_refs { fail push to refs/ci/manual should be rejected if(SIP_PRIVILEGED_REF_WRITE=1 git -C $src push origin HEAD:refs/ci/manual-env >/dev/null >[2]/dev/null) - fail client env must not authorize refs/ci/* writes + fail client env must not authorize refs/ci/* writes #*/ if(SIP_PRIVILEGED_REF_WRITE=1 git -C $src push origin HEAD:refs/workflows/client-env >/dev/null >[2]/dev/null) - fail client env must not authorize refs/workflows/* writes + fail client env must not authorize refs/workflows/* writes #*/ if(git -C $src push origin HEAD:refs/replace/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa >/dev/null >[2]/dev/null) - fail push to refs/replace/* should be rejected + fail push to refs/replace/* should be rejected #*/ if(! git -C $src push origin HEAD:refs/sip/orchestrator >/dev/null >[2]/dev/null) fail push to refs/sip/orchestrator should be accepted if(git -C $src push origin HEAD:refs/sip/other >/dev/null >[2]/dev/null) - fail push to unknown refs/sip/* should be rejected + fail push to unknown refs/sip/* should be rejected #*/ } fn test_no_workflow_repository { @@ -276,7 +276,7 @@ fn assert_unsafe_workflow_ref_is_untrusted { git -C $remote fetch $src refs/tags/v1:refs/tags/v1 >/dev/null >[2]/dev/null || fail could not install unsafe override tag git -C $remote update-ref refs/ci/runs/manual $commit || fail could not install unsafe ci ref - rm -f $remote^/sip/queue/*.event + rm -f $remote^/sip/queue/*.event #*/ printf '1\t0000000000000000000000000000000000000000\t%s\trefs/heads/main\tactor\t1\tcreate\n' $commit >$remote^/sip/queue/$name^.event SIP_WORKFLOW_REF=$override $root^/bin/sip-worker.rc $remote >/dev/null >[2]/dev/null || fail worker failed for unsafe workflow ref $override @@ -391,7 +391,7 @@ fn test_stale_events_do_not_overwrite_status { git -C $src push origin main >/dev/null >[2]/dev/null || fail could not push second revision second=`{git -C $src rev-parse HEAD} - rm -f $remote^/sip/queue/*.event + rm -f $remote^/sip/queue/*.event #*/ mkdir -p $remote^/sip/queue printf '1\t%s\t%s\trefs/heads/main\tactor\t2\tupdate\n' $first $second >$remote^/sip/queue/a-newer.event printf '1\t0000000000000000000000000000000000000000\t%s\trefs/heads/main\tactor\t1\tcreate\n' $first >$remote^/sip/queue/z-older.event -- 2.51.2