mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 11:08:06 +00:00
Add the setup state to the unavailable list (#1731)
* Add the setup state to the unavailable list * Add the init state to the unavailable list * Fix integration test * Wrong import
This commit is contained in:
@ -32,7 +32,7 @@ import requests
|
||||
from onefuzz.api import Command, Onefuzz
|
||||
from onefuzz.backend import ContainerWrapper, wait
|
||||
from onefuzz.cli import execute_api
|
||||
from onefuzztypes.enums import OS, ContainerType, TaskState, VmState
|
||||
from onefuzztypes.enums import OS, ContainerType, TaskState, VmState, ScalesetState
|
||||
from onefuzztypes.models import Job, Pool, Repro, Scaleset, Task
|
||||
from onefuzztypes.primitives import Container, Directory, File, PoolName, Region
|
||||
from pydantic import BaseModel, Field
|
||||
@ -415,6 +415,8 @@ class TestOnefuzz:
|
||||
task.config.pool is not None
|
||||
and scaleset.pool_name == task.config.pool.pool_name
|
||||
and scaleset.state not in scaleset.state.available()
|
||||
# not available() does not mean failed
|
||||
and scaleset.state not in [ScalesetState.init, ScalesetState.setup]
|
||||
):
|
||||
self.logger.error(
|
||||
"task scaleset failed: %s - %s - %s (%s)",
|
||||
|
Reference in New Issue
Block a user