-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: add a new "Cancelled" final state
This commit introduces a new build final state: "Cancelled". This state is shown in the build listing page and also in the build details page. The build will end up on this state when: - The user cancels the build by clicking on the button - The build is cancelled due to inactivity - The build is cancelled because it was duplicated Ther are a lot of changes required for this: - HTML template logic for build details and listing pages - API changes to add a new value - Knockout.js logic for build details page - `Build` model changes to support a new state - Update different places of core logic to change checking for `finished` state to `BUILD_FINAL_STATES` instead - Documentation changes to mention the new state - Celery build handler `after_return` to decide if it's `finished` or `cancelled` the ending state - Logic to decide if the build should be killed due to inactivity Reference #9100
- Loading branch information
Showing
23 changed files
with
161 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Generated by Django 3.2.13 on 2022-05-04 11:03 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("builds", "0042_version_state"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="build", | ||
name="state", | ||
field=models.CharField( | ||
choices=[ | ||
("triggered", "Triggered"), | ||
("cloning", "Cloning"), | ||
("installing", "Installing"), | ||
("building", "Building"), | ||
("uploading", "Uploading"), | ||
("finished", "Finished"), | ||
("cancelled", "Cancelled"), | ||
], | ||
db_index=True, | ||
default="finished", | ||
max_length=55, | ||
verbose_name="State", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.