Skip to content

fix(docs-infra): do not detect a running job as failed#45948

Closed
gkalpak wants to merge 1 commit intoangular:mainfrom
gkalpak:fix-aio-preview-server-job-status
Closed

fix(docs-infra): do not detect a running job as failed#45948
gkalpak wants to merge 1 commit intoangular:mainfrom
gkalpak:fix-aio-preview-server-job-status

Conversation

@gkalpak
Copy link
Member

@gkalpak gkalpak commented May 10, 2022

Previously, the preview server would incorrectly identify a running aio_preview CI job as failed and therefore skip creating a preview. This happened because it only checked whether the job's status is success, failing to account for the fact that the job would have a running status.
(This bug was accidentally introduced in #45934.)

This commit avoids the problem by getting rid of the job status check altogether. This check does not offer any benefit, since the CI job will always be in a running state (i.e. neither successfully completed nor failed).

@gkalpak gkalpak added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer comp: docs-infra target: patch This PR is targeted for the next patch release labels May 10, 2022
@ngbot ngbot bot modified the milestone: Backlog May 10, 2022
Previously, the preview server would incorrectly identify a running
`aio_preview` CI job as failed and therefore skip creating a preview.
This happened because it only checked whether the job's status is
`success`, failing to account for the fact that the job would have a
`running` status.
(This bug was accidentally introduced in angular#45934.)

This commit avoids the problem by getting rid of the job status check
altogether. This check does not offer any benefit, since the CI job will
always be in a `running` state (i.e. neither successfully completed nor
failed).
@mary-poppins
Copy link

You can preview 936bab2 at https://pr45948-936bab2.ngbuilds.io/.

@gkalpak gkalpak requested a review from josephperrott May 11, 2022 00:00
@dylhunn dylhunn self-requested a review May 11, 2022 16:24
@gkalpak gkalpak removed the request for review from josephperrott May 12, 2022 10:35
@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 12, 2022
@jessicajaniuk
Copy link
Contributor

This PR was merged into the repository by commit aea7b98.

jessicajaniuk pushed a commit that referenced this pull request May 12, 2022
Previously, the preview server would incorrectly identify a running
`aio_preview` CI job as failed and therefore skip creating a preview.
This happened because it only checked whether the job's status is
`success`, failing to account for the fact that the job would have a
`running` status.
(This bug was accidentally introduced in #45934.)

This commit avoids the problem by getting rid of the job status check
altogether. This check does not offer any benefit, since the CI job will
always be in a `running` state (i.e. neither successfully completed nor
failed).

PR Close #45948
jessicajaniuk pushed a commit that referenced this pull request May 12, 2022
Previously, the preview server would incorrectly identify a running
`aio_preview` CI job as failed and therefore skip creating a preview.
This happened because it only checked whether the job's status is
`success`, failing to account for the fact that the job would have a
`running` status.
(This bug was accidentally introduced in #45934.)

This commit avoids the problem by getting rid of the job status check
altogether. This check does not offer any benefit, since the CI job will
always be in a `running` state (i.e. neither successfully completed nor
failed).

PR Close #45948
@gkalpak gkalpak deleted the fix-aio-preview-server-job-status branch May 12, 2022 16:04
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants