Skip to content

Pull requests

62 help pages

Sentinel's pull requests (merge requests on GitLab) appear in two places, refreshed every minute, and everyone in the organisation sees them:

  • Waiting on you, in the Runs section of the site's Patching tab, lists the open ones only, in deploy order. It is hidden while nothing is open.
  • Pull requests from this run, on each job page, lists the pull requests that job opened, with a runtime pull request that deploys after one of them. Below them, Deployment lists this job's deployments with their live status. While the job is queued or running and has no pull request, it says "No pull request yet. It appears here when the job opens one."; once the job has ended with none, it says "This run opened no pull request."

Past runs, below Waiting on you, shows each run's pull request numbers and whether each is open, merged or closed. An open one that cannot deploy yet also shows its status chip, with the reason in one line under it. When an open pull request is ready, its card ends with a Deploy to production button (Merge into (branch) for a maintenance update into a long-lived branch) for the people who can deploy. Otherwise the card usually starts with a block that says why it cannot deploy yet (see Why an update can't deploy yet).

Each card shows:

  • A status pill. For an open pull request it reads Ready to deploy (or Ready to merge into (branch)) when the deploy gate is open, and Deploying (or Merging) while this pull request's own deployment runs. When the card starts with the block that says why it cannot deploy yet, the pill reads Open with the block's status chip beside it, for example Another deployment running while a different pull request's deployment holds the site. Otherwise it shows the pull request's own status, with a sentence from the Git host's own state below it, for example Needs 1 approval from alice or Check phpunit failed.
  • The checks, each with its outcome, whether it is required or optional, its duration and a link. While checks run, the card says waiting for CI since and when it started.
  • Review requirements: approvals given out of approvals required, who was asked to review and who can approve. An unresolved conversation count links to the host.
  • Labels, and buttons that open the pull request (or merge request) on GitHub (or GitLab) and its checks.
  • The comments mirrored from the host, read only. Select Show N comments to expand them; Sentinel's own are marked ours. Reply on the host, not in Sentinel.
  • A freshness line: updated by webhooks from the host, polled every minute, or Polling slowed to every 5 minutes when the host's rate budget is low. After the pull request is merged or closed, Sentinel stops polling it.

Organisation administrators and site managers see Rebase with Sentinel when the branch is behind its base or has conflicts. When that is what holds the deployment, the button is in the block at the top of the card instead of with the links. It queues a short job that updates the branch. Asking again within five minutes reuses the same request. Members see everything but not the button. On a runtime pull request, the rebase rebuilds only the runtime change. A Stack security rebase keeps the security scope and checks every recorded change, including older pull requests. If the changes are missing or out of date, Sentinel skips the rebuild. Merge it on your Git host yourself, or close it and run Patching again. Closing a security fix unmerged declines it only when the recorded changes match the head. A newer eligible image can be offered later.

If Sentinel cannot update or rebase a stack pull request without dropping a recorded change, merge or close the pull request, then run Patching again.

When checks fail. Where Sentinel's CI fixing is turned on (it is being rolled out and is off until then), Sentinel reads why a check failed on its own pull request and acts:

  • A network or runner hiccup: it re-runs the failed checks once. The card says Sentinel re-ran the failed checks once.
  • A failure the update caused: it pushes a fix to the same branch, up to two rounds. The card says Sentinel is fixing the failing checks (round N). It never changes your CI configuration and never weakens or skips a test.
  • A check that also fails on your base branch, a broken pipeline, or no fix after the last round: it stops and comments on the pull request with the reason. The card starts with Needs a person: and the reason. When it stopped because the pipeline itself is broken, or because the checks still fail on the update after the last round, the card can also offer Fix this (see Fix this).

When the checks pass after a fix, the card says Checks pass after N fix rounds by Sentinel. Once Sentinel has stopped, pushes you make to the branch get no more rounds or comments. While Autopilot is paused for the site, Sentinel does not fix checks there. Organisation administrators and site managers can lower the rounds to one or turn them off for a site through the API (PUT /api/v1/sites/{site_uuid}/patching/ci-loop with {"ci_fix_rounds": 0}); other members cannot.

Runtime pull requests. A runtime update (PHP, Nginx or database versions) has its own pull request and its own card. Stack security cards have a violet Stack security badge. Other runtime cards have a violet Runtime badge, and Drupal cards have a blue Drupal badge.

When the same run also opened a Drupal pull request, the two cards show as numbered steps: 1 Drupal, then 2 Runtime. The runtime card says Linked to #N · deploys after it. If this one fails, #N is not affected. While it is held, it also shows Waiting for #N. The card lists the changes in a table (component, file, from, to) and shows a Deploy consent line. That line names each change and the pull request it deploys after. A run with no Drupal changes gives a runtime pull request that is not linked and deploys on its own. Each stack card follows the Drupal pull request from its own run. An open stack pull request from another run does not add a deploy-order dependency.

If a pull request is merged on the host rather than through Sentinel, the card warns you. Sentinel does not deploy it for you in that case, so confirm the production deployment yourself. A pull request you deploy with the button below is merged by Sentinel and is not reported as merged outside it.

Bell notifications, which also follow your notification rules under the Patching category: CI failed on pull request #N for the site (a warning, also emailed; it clears when the checks pass), Review requested on pull request #N, Pull request #N is ready to deploy (clears when it is no longer ready) and Pull request #N was merged outside Sentinel (a warning, also emailed). Security scan alerts are described under Security scan alerts. If Patching is switched off for your organisation, these messages leave your bell and Messages, and alerts still waiting to be sent by email, Slack or webhook are not sent. The messages come back if Patching is switched on again.

Where an advisory has a Sentinel pull request, the site's Findings tab says Sentinel opened pull request #N (or merged) and that the finding closes when the deployment is observed, not on merge. On the Releases timeline, Linked fixes can say Sentinel pull request #N was merged before this deployment was observed.

Fix this

Sometimes an update stops on something in your own repository: Composer cannot resolve the update, a patch no longer applies, your tests already fail, or your CI pipeline is broken or missing. Fix this asks Sentinel's agent to remove that blocker. The agent changes only the files that kind of blocker allows and opens a fix pull request. You review it and merge it on your Git host. Sentinel never merges a fix pull request, on Copilot or on Autopilot.

Fix this is being rolled out and is off until Sentinel turns it on for your organisation. Until then, none of what this section describes is shown. It is part of the patched-site price. A fix job uses the website's AI connection like any job: with Included AI it counts against your allowance, and with your own key your AI provider charges it.

Where the button appears. Only where Sentinel offers it:

  • A job page. Under Next step on the Job status card, when the job stopped on something Fix this can remove, and on each row of Why it stopped or What this job did that it can remove (see The job page).
  • A pull request card. When Sentinel stopped fixing the pull request's checks because the pipeline itself is broken, or because CI still fails on the update after Sentinel's own CI fix rounds (see When checks fail under Pull requests).
  • The Setup steps. On the site's Patching tab, Configuration, Setup, on the Waiting for first CI run and CI tests not adequate items, when your repository has no pipeline that runs your tests (see Automated tests in CI). Where readiness fixes are on, these two items hand over to a readiness fix with a confirmation (see Readiness for Patching).
  • The pause notice. At the top of the site's Patching tab, under "Deploys are paused: a check is failing on the production branch" (see Checks failing on the production branch). It is offered only where Sentinel may fix pipelines for your organisation.

If you do not see the button, the cause is outside the repository, it needs a person's choice, or that kind of blocker is not offered yet. A pipeline fix is not offered for a Sentinel pull request that goes into a branch other than your production branch: the fix would land on the production branch, so a person needs to fix the pipeline on that branch.

What you see.

  • Fix this, with the line "Sentinel's agent opens a pull request that removes this blocker. You review and merge it." Selecting it starts a fix job.
  • Fixing. The fix job is running. See the fix job opens its job page. The state refreshes by itself.
  • Fix pull request open. Review and merge it opens the fix pull request on your Git host.
  • Fix failed. Either "The fix job ended without a pull request." or "Sentinel found this cannot be fixed in the repository." Try again starts another try while tries remain.
  • Fix merged. Sentinel is checking it. You merged the fix and Sentinel is checking that it worked (see After you merge below). See the check opens the job that checks it, when there is one. When the website is busy, the line says when the check runs, for example "It runs again when the website's current job ends."
  • Fix failed. "The fix merged, but the retry stopped on the same blocker." The fix did not remove the blocker. This counts as a try, so Try again shows while tries remain.
  • Fix merged, not proven. Nothing could prove the fix worked, with the reason in plain words, for example "The retry got past this blocker but stopped on something else." or "The website now uses another repository." This does not count as a try. A person should check the stopped work.
  • When the tries for that blocker are used, it adds "Sentinel already tried to fix this. A person needs to look." and there is no Try again.
  • Accept Sentinel's new GitHub permission to let it fix pipelines. A pipeline fix needs a GitHub permission your installation has not accepted yet. Accept Sentinel's new GitHub permission links to the App's installation page on GitHub (see below).

When the check passes, the fix is done and its line goes. The stopped work carries on.

If Sentinel cannot start a fix, a short reason shows under the button, for example that a fix pull request is already open for the website or that a limit is reached.

Sentinel starts one fix by itself. When an update stops on a blocker Fix this can remove, or a pull request's checks stop on a broken pipeline, Sentinel starts one fix for it by itself, once per blocker. It only opens a pull request; the merge is always yours. The button stays for a second try. A cancelled run starts nothing.

What Sentinel may change. Sentinel's own code, not the AI, decides what may change for each kind of blocker:

  • Composer problems: composer.json and composer.lock only. It never turns off Composer's security checks, never lowers your stability setting, never downgrades a package and never removes a package with an open advisory.
  • Patches: your patch files and their lock.
  • Tests that already fail: your tests and custom code.
  • A check failing on the production branch: your tests and custom code. It never changes workflow files.
  • CI still failing on an update: your tests and custom code. This fix's pull request goes into the update's own branch, not your production branch, and it needs no GitHub permission.
  • A broken pipeline or missing tests: GitHub Actions workflow files only, and only in a workflow whose jobs all have a read-only token, use no secrets or environments and run on a GitHub-hosted runner. It never changes deploy jobs or what your tests check, and every action it adds or changes is pinned to a commit. A workflow with secrets or local actions is left to you. Pipeline fixes are not offered on GitLab yet.

Every fix is limited in size. For a fix of a stopped update, Sentinel runs that update again on the fix branch before it opens a pull request; if the update would still stop, there is no pull request. A fix from a pull request card, the Setup steps or the pause notice has no stopped update to run again: check that your own CI passes on the fix pull request before you merge it.

Pipeline fixes need a GitHub permission. To change workflow files, the Sentinel GitHub App needs the Workflows permission. Until your GitHub installation accepts it, the offer reads "Accept Sentinel's new GitHub permission to let it fix pipelines". The first part is a link to the App's installation page on GitHub, where the owner of the installation accepts it.

After you merge. Sentinel tries again by itself and checks that the fix worked. Until it knows, the fix shows "Fix merged. Sentinel is checking it."

  • A stopped update: Sentinel runs the update again, on the branch the fix merged into. When the run passes, the fix is done. When it stops on the same blocker, the fix failed. If the update now goes into another branch, such as a maintenance branch, Sentinel cannot check the fix, and it shows "Fix merged, not proven."
  • A broken pipeline on a pull request: Sentinel rebases the stopped pull request and reads its checks on the new commit.
  • CI still failing on an update: the merge changes the update's own branch, and Sentinel reads the update pull request's checks again.
  • No CI run seen yet: Sentinel reads the production branch's checks about 5 minutes after the merge, then every hour. The fix is done when the checks of the workflow it added pass there. On GitLab, Sentinel cannot read them, so the fix shows "Fix merged, not proven."
  • Tests not adequate: Sentinel looks at your pipeline again about 5 minutes after the merge.
  • A check failing on the production branch: Sentinel reads the production branch's checks again about 5 minutes after the merge, then every hour. The fix is done when each check that failed passes there. If the pause notice goes first, the fix's state moves to Fix for the production branch checks on the site's Patching tab, and stays there for 30 days after you asked for the fix.

If another Patching job is running when you merge, Sentinel keeps the retry and runs it when the website's current job ends. You do not need to run the update again yourself. If you close the fix pull request without merging it, the fix shows as closed. If the checks fail on a fix pull request, you get the usual CI failed on pull request #N alert; Sentinel does not fix checks on its own fix pull requests.

Limits.

  • Two tries for the same blocker in 30 days.
  • Five fixes per website each month.
  • One fix pull request open per website at a time.

Your platform administrator may set other limits.

Turn it off for a website. On the site's Patching tab, open Configuration, then Deployment. Under Fix this, clear Let Sentinel open fix pull requests. This removes the buttons and stops the fixes Sentinel starts by itself for that website. If the setting cannot be saved, the card says "The setting was not saved. Try again."

Who can use it. People who can run Patching updates on the website, organisation administrators and site managers, can start a fix, select Try again and change the switch. Viewers see the states, links and the switch, but cannot start a fix or change the switch.

Agent access

By default the Patching agent never changes a website's GitHub workflow files or settings files. Agent access lets an organisation administrator choose, for each website, whether it may. It applies to security and maintenance updates that Sentinel runs with its newer agent, where every change is reviewed before the pull request opens; other jobs keep today's rules. Agent access is being rolled out and is off until Sentinel turns it on for your organisation. Until then, none of what this section describes is shown.

There are two switches, both off until you turn them on:

  • Pipeline and deploy files. Security and maintenance updates may already change CI, build and deploy files such as .gitlab-ci.yml, Dockerfile and docker-compose after Sentinel's reviewer approves the exact change. With this switch on they may also change GitHub workflow files in .github/workflows, which also need the Sentinel GitHub App's Workflows permission. The section says whether the App has it.
  • Settings files. settings.php, other settings.* files and .env files. The agent works on a copy with every value hidden and never sees your secrets. Sentinel checks the copy first: a file that still holds one of your values, however short, or in which the secret scanner finds something that looks like a secret stays fully hidden. Sentinel's reviewer sees each settings change with the values hidden too, and only the version it approved is delivered. The agent's edits are written back with your real values. A change that moves a hidden value into a new or changed line of any file is refused.

Git's own files and role permissions (user.role.*) stay protected either way.

Where to set it. In the enrolment wizard, the Repository step has a What the agent may change block that starts from the site's current choice; an enrolment profile keeps the choice. After enrolment, open the site's Patching tab, Configuration, Agent access. The section shows both switches, the Workflows permission on GitHub, and "Last changed on (date) by (name)". A change applies from the next job.

When a job needs a protected file. The job page shows The agent needed a pipeline file, The agent needed a settings file or The agent needed a protected file with the file names, never a value. The pull request lists the same items under Protected files. If you may change Agent access, the item has an Open Agent access link. Everyone else reads "Ask an organisation administrator to change Agent access for this site."

Who can do what. Anyone who can see the site's Patching tab sees the switches. Changing them needs permission to configure Patching (Organisation admin by default) and a fresh two-factor code whatever your security level. To turn a switch on, your account must have two-factor sign-in set up; turning both off does not need it. The same applies when an enrolment or an enrolment profile turns a switch on. Everyone else sees them read only with "Only an organisation administrator can change this." Each change is recorded in the activity log. Fix this, Prepare the repository, deep scan fixes and CI fixes keep their own rules whatever Agent access allows.