mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 08:01:38 +00:00
chore: remove obsolete debouncing tests
The test file used old JobPayload/FlowValue field names that were refactored into DebouncingSettings/ConcurrencySettings structs. Remove the test file, fixture, feature flag, and cfg gate in monitor.rs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -120,7 +120,6 @@ zip = ["windmill-api/zip"]
|
||||
static_frontend = ["windmill-api/static_frontend"]
|
||||
scoped_cache = ["windmill-common/scoped_cache"]
|
||||
no_auth = ["windmill-api/no_auth"]
|
||||
test_job_debouncing = []
|
||||
private_registry_test = []
|
||||
# Languages
|
||||
python = ["windmill-worker/python", "windmill-api/python"]
|
||||
|
||||
@@ -1884,7 +1884,6 @@ pub async fn monitor_db(
|
||||
};
|
||||
|
||||
let update_min_worker_version_f = async {
|
||||
#[cfg(not(feature = "test_job_debouncing"))]
|
||||
windmill_common::min_version::update_min_version(
|
||||
conn,
|
||||
_worker_mode,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
-171
@@ -1,171 +0,0 @@
|
||||
-- SCRIPTS --
|
||||
INSERT INTO public.script(workspace_id, created_by, content, schema, summary, description, path, hash, language, lock) VALUES (
|
||||
'test-workspace',
|
||||
'test-user',
|
||||
'def main(x: str = "hey", b: int = 1):
|
||||
pass
|
||||
',
|
||||
'{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"required":[],"type":"object"}',
|
||||
'',
|
||||
'',
|
||||
'f/scripts/script_1', 533400, 'python3', '');
|
||||
-- Padded Hex: 0000000000082398
|
||||
|
||||
INSERT INTO public.script(workspace_id, created_by, content, schema, summary, description, path, hash, language, lock) VALUES (
|
||||
'test-workspace',
|
||||
'test-user',
|
||||
'def main():
|
||||
pass
|
||||
',
|
||||
'{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"required":[],"type":"object"}',
|
||||
'',
|
||||
'',
|
||||
'f/scripts/script_2', 533403, 'python3', '');
|
||||
-- Padded Hex: 000000000008239B
|
||||
|
||||
INSERT INTO public.script(workspace_id, created_by, content, schema, summary, description, path, hash, language, lock) VALUES (
|
||||
'test-workspace',
|
||||
'test-user',
|
||||
'
|
||||
def main():
|
||||
pass
|
||||
',
|
||||
'{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"required":[],"type":"object"}',
|
||||
'',
|
||||
'',
|
||||
'f/scripts/script_3', 533404, 'python3', '');
|
||||
|
||||
|
||||
-- Padded Hex: 000000000008239C
|
||||
INSERT INTO public.flow(workspace_id, summary, description, path, versions, schema, value, edited_by) VALUES (
|
||||
'test-workspace',
|
||||
'',
|
||||
'',
|
||||
'f/flows/flow',
|
||||
'{1443253234253454}',
|
||||
'{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"properties": {},
|
||||
"required": [],
|
||||
"type": "object"
|
||||
}',
|
||||
$tag$
|
||||
{
|
||||
"modules": [
|
||||
{
|
||||
"id": "a",
|
||||
"value": {
|
||||
"type": "rawscript",
|
||||
"assets": [],
|
||||
"content": "def main(x: str, y: str):\n return x",
|
||||
"language": "python3",
|
||||
"debounce_delay_s": 2,
|
||||
"input_transforms": {
|
||||
"x": {
|
||||
"type": "static",
|
||||
"value": ""
|
||||
},
|
||||
"y": {
|
||||
"type": "static",
|
||||
"value": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"continue_on_error": false
|
||||
}
|
||||
],
|
||||
"debounce_delay_s": 2
|
||||
}$tag$,
|
||||
'system'
|
||||
);
|
||||
|
||||
INSERT INTO public.flow_version(id, workspace_id, path, schema, value, created_by)
|
||||
SELECT versions[1], workspace_id, path, schema, value, edited_by FROM flow WHERE path = 'f/flows/flow';
|
||||
|
||||
-- No top level debouncing
|
||||
INSERT INTO public.flow(workspace_id, summary, description, path, versions, schema, value, edited_by) VALUES (
|
||||
'test-workspace',
|
||||
'',
|
||||
'',
|
||||
'f/flows/flow_full',
|
||||
'{123}',
|
||||
'{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"properties": {},
|
||||
"required": [],
|
||||
"type": "object"
|
||||
}',
|
||||
$tag$
|
||||
{
|
||||
"modules": [
|
||||
{
|
||||
"id": "a",
|
||||
"value": {
|
||||
"lock": "# py: 3.11\n",
|
||||
"type": "rawscript",
|
||||
"assets": [],
|
||||
"content": "import time\n\ndef main(x: str, y: str):\n time.sleep(30)\n\n return x",
|
||||
"language": "python3",
|
||||
"concurrent_limit": 1,
|
||||
"input_transforms": {
|
||||
"x": {
|
||||
"type": "static",
|
||||
"value": ""
|
||||
},
|
||||
"y": {
|
||||
"type": "static",
|
||||
"value": ""
|
||||
}
|
||||
},
|
||||
"concurrency_time_window_s": 5
|
||||
},
|
||||
"continue_on_error": false
|
||||
},
|
||||
{
|
||||
"id": "b",
|
||||
"value": {
|
||||
"type": "whileloopflow",
|
||||
"modules": [
|
||||
{
|
||||
"id": "c",
|
||||
"value": {
|
||||
"lock": "# py: 3.11\n",
|
||||
"type": "rawscript",
|
||||
"assets": [],
|
||||
"content": "# import wmill\n\n\ndef main(x: str):\n return x",
|
||||
"language": "python3",
|
||||
"input_transforms": {
|
||||
"x": {
|
||||
"type": "static",
|
||||
"value": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "d",
|
||||
"value": {
|
||||
"type": "rawscript",
|
||||
"assets": [],
|
||||
"content": "# import wmill\n\n\ndef main(x: str):\n return x",
|
||||
"language": "python3",
|
||||
"input_transforms": {
|
||||
"x": {
|
||||
"type": "static",
|
||||
"value": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"skip_failures": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}$tag$,
|
||||
'system'
|
||||
);
|
||||
|
||||
|
||||
INSERT INTO public.flow_version(id, workspace_id, path, schema, value, created_by)
|
||||
SELECT versions[1], workspace_id, path, schema, value, edited_by FROM flow WHERE path = 'f/flows/flow_full';
|
||||
Reference in New Issue
Block a user