Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split CI #2210

Merged
merged 32 commits into from
Jan 28, 2025
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4c92c51
split-ci
ychiucco Jan 23, 2025
301db4a
fix ci yaml
ychiucco Jan 23, 2025
362ab61
fix coverage artifacts name
ychiucco Jan 23, 2025
d5a0e75
04_runner in part2
ychiucco Jan 23, 2025
f87d792
use wildcard
ychiucco Jan 23, 2025
d2c5120
balance
ychiucco Jan 23, 2025
d912a38
balance
ychiucco Jan 23, 2025
a07c6db
fix coverage file
ychiucco Jan 23, 2025
5cddd87
explicitly test v1
ychiucco Jan 23, 2025
ca103f6
changelog
ychiucco Jan 23, 2025
aa8378e
Merge branch 'dev-2.11' into 2203-split-v2-ci-into-two-gha-jobs
ychiucco Jan 23, 2025
4730cff
Introduce an API test and remove a background-task test
tcompa Jan 23, 2025
8bfa7de
pytest -vv * --durations 0
ychiucco Jan 27, 2025
77a304a
move task collection/lifecycle tests to 06
ychiucco Jan 27, 2025
71dd736
Remove useless fixture
tcompa Jan 27, 2025
be28355
remove one parametrize
ychiucco Jan 27, 2025
24e81d5
remove one parametrize
ychiucco Jan 27, 2025
7ba50c0
remove one parametrize
ychiucco Jan 27, 2025
11db6c9
Restructure 06 folder
tcompa Jan 28, 2025
d885a63
Restructure 06 folder
tcompa Jan 28, 2025
65d2268
move tests
ychiucco Jan 28, 2025
151857a
merge test_task_collection_from_wheel_file into test_lifecycle
ychiucco Jan 28, 2025
b2252fc
merge test_task_collection_ssh_from_wheel into test_lifecycle
ychiucco Jan 28, 2025
8254988
move api part of the test
ychiucco Jan 28, 2025
773063d
Merge branch 'main' into 2203-split-v2-ci-into-two-gha-jobs
ychiucco Jan 28, 2025
51c9580
scorporate test_template_4
ychiucco Jan 28, 2025
100e619
fixed test_invalid_manifest
ychiucco Jan 28, 2025
477794d
remove client from test_invalid_manifest
ychiucco Jan 28, 2025
1915b11
merge tests
ychiucco Jan 28, 2025
a3b6c79
bring test back
ychiucco Jan 28, 2025
b938182
Merge branch 'main' into 2203-split-v2-ci-into-two-gha-jobs
ychiucco Jan 28, 2025
2ad4117
changelog
ychiucco Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move api part of the test
  • Loading branch information
ychiucco committed Jan 28, 2025
commit 82549884f8e9a4e7876c16ba5d8ddc088715f798
27 changes: 27 additions & 0 deletions tests/v2/03_api/test_api_task.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

from devtools import debug

from fractal_server.app.models import TaskGroupV2
@@ -21,6 +23,31 @@ async def test_non_verified_user(client, MockCurrentUser):
assert res.status_code == 401


async def test_fail_wheel_file_and_version(client, testdata_path):

local_wheel_path = (
testdata_path.parent
/ "v2/fractal_tasks_mock/dist"
/ "fractal_tasks_mock-0.0.1-py3-none-any.whl"
).as_posix()

with open(local_wheel_path, "rb") as f:
files = {
"file": (Path(local_wheel_path).name, f.read(), "application/zip")
}
res = await client.post(
f"{PREFIX}/collect/pip/",
data=dict(
package_version="1.2.3",
python_version="3.12",
),
files=files,
)
assert res.status_code == 422
error_msg = "Cannot set `package_version` when `file` is provided"
assert error_msg in str(res.json()["detail"])


async def test_task_get_list(
db, client, task_factory_v2, MockCurrentUser, user_group_factory
):
Loading