History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-4175
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Robin Shen
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Option "cancel immediately" not working for pre-build script

Created: 11/Apr/25 12:36 PM   Updated: Today 01:22 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 15.0.10

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
From customer:

I tried to cancel build when running sleep() command and it can be cancelled immediately.
But when I run sleep() command in "Pre-Build Script" the request can not be cancelled.
If build server was hang when a new request has just created, we can not cancel the request to free the queue.
So I think this task is only affect to running build but not for request in queue.

 All   Comments   Work Log   Change History      Sort Order:
Nguyen Danh Hung [08/May/25 02:36 AM]
Hello Mr. Robin Shen,
I applied change of this task, here are my steps to test the change:
 - Pre-queue script:
    sleep(5000)
 - Pre-build script:
    sleep(20000)
 - Cancel Immediately:
    Yes
But when I trigger build:
    - After 5 seconds, request appear in request queue:
        status: CHECKING_BUILD_CONDITION -> RUNNING_BUILD (1)
    - After 20 seconds, build was triggered
        status: RUNNING_BUILD, duration 20s
    - If I cancel request in step (1), the build will be triggered immediately
I think the request should be canceled and not created into a build.
Please help me check if my test is correct.