test: repair two stale assertions that fail the gate on main #5

Open
luke wants to merge 1 commit from fix/stale-check-assertions into main
Owner

Both checks stopped matching the code, neither is a product bug.

  • jobs-check: the background command now captures the pid inside the subshell.
  • session-mode-broadcast: anchoring on the first path mention now finds the feature-module guard, not the handler.
Both checks stopped matching the code, neither is a product bug. - jobs-check: the background command now captures the pid inside the subshell. - session-mode-broadcast: anchoring on the first path mention now finds the feature-module guard, not the handler.
test: repair two stale assertions that fail the gate on main
Some checks failed
deploy / build-dev (pull_request) Has been skipped
deploy / deploy-dev (pull_request) Has been skipped
deploy / test (pull_request) Failing after 20m40s
deploy / build-and-push (pull_request) Has been skipped
deploy / deploy-test (pull_request) Has been skipped
deploy / deploy-production (pull_request) Has been skipped
94d8a32dd2
Neither is a product bug, both are checks that stopped matching the code:

- jobs-check asserted the background command ended '& )'. It now captures the
  pid inside the subshell (& echo $! > ...pid ), which is still backgrounded
  and still returns at once, so the assertion looks for the pid capture.
- session-mode-broadcast anchored on the first mention of each mode path, which
  is now the feature-module guard several lines above the handler, so it found
  a one-line slice with no broadcast in it. It anchors on the POST handler.

jobs-check and session-mode-broadcast pass again.
Some checks failed
deploy / build-dev (pull_request) Has been skipped
deploy / deploy-dev (pull_request) Has been skipped
deploy / test (pull_request) Failing after 20m40s
deploy / build-and-push (pull_request) Has been skipped
deploy / deploy-test (pull_request) Has been skipped
deploy / deploy-production (pull_request) Has been skipped
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/stale-check-assertions:fix/stale-check-assertions
git switch fix/stale-check-assertions

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff fix/stale-check-assertions
git switch fix/stale-check-assertions
git rebase main
git switch main
git merge --ff-only fix/stale-check-assertions
git switch fix/stale-check-assertions
git rebase main
git switch main
git merge --no-ff fix/stale-check-assertions
git switch main
git merge --squash fix/stale-check-assertions
git switch main
git merge --ff-only fix/stale-check-assertions
git switch main
git merge fix/stale-check-assertions
git push origin main
Sign in to join this conversation.
No reviewers
No labels
bug
from-app
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gsylabsgg/pi-chat!5
No description provided.