Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Commits
c78ddab6
Commit
c78ddab6
authored
1 year ago
by
Adam G-H
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3393633
: Build tests can fail randomly if the stage ID begins with a -
parent
95b81e3c
No related branches found
Branches containing commit
Tags
11-69241
Tags containing commit
2 merge requests
!989
Issue #3356804 by phenaproxima: Flag a warning during status check if the...
,
!968
Issue #3393633: Build tests can fail randomly if the stage ID begins with a -
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ConsoleUpdateStage.php
+5
-1
5 additions, 1 deletion
src/ConsoleUpdateStage.php
with
5 additions
and
1 deletion
src/ConsoleUpdateStage.php
+
5
−
1
View file @
c78ddab6
...
@@ -262,7 +262,11 @@ class ConsoleUpdateStage extends UpdateStage {
...
@@ -262,7 +262,11 @@ class ConsoleUpdateStage extends UpdateStage {
* The ID of the current stage.
* The ID of the current stage.
*/
*/
protected
function
triggerPostApply
(
string
$stage_id
):
void
{
protected
function
triggerPostApply
(
string
$stage_id
):
void
{
$arguments
=
"post-apply
$stage_id
"
;
// The stage ID needs to be quoted in order to prevent it from being parsed
// as a command-line option if it begins with -, which is a possibility
// because we use \Drupal\Component\Utility\Crypt::randomBytesBase64() to
// generate the stage ID, and the string it returns might begin with -.
$arguments
=
sprintf
(
'post-apply "%s"'
,
$stage_id
);
if
(
$this
->
isFromWeb
)
{
if
(
$this
->
isFromWeb
)
{
$arguments
.
=
' --is-from-web'
;
$arguments
.
=
' --is-from-web'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment