Check opened issues before tests running #279

Open
opened 2025-12-28 18:15:37 +00:00 by sami · 2 comments
Owner

Originally created by @evgeniiz321 on GitHub (Apr 2, 2024).

If there is an open issue with the test name in it's description, e.g. an issue in the rest gateway because of which some tests (test_put_with_bearer_when_eacl_restrict) fail, we need a way to understand it from the test itself and skip this test.

Describe the solution you'd like

Add a custom hook that will be called during pytest test collection phase. This hook will need to go to github and parse opened issues for projects - neofs-node/neofs-s3-gw/neofs-rest-gw.
There should be a certain field in issues' descriptions to be parsed by this hook.

Originally created by @evgeniiz321 on GitHub (Apr 2, 2024). If there is an open issue with the test name in it's description, e.g. an issue in the rest gateway because of which some tests (test_put_with_bearer_when_eacl_restrict) fail, we need a way to understand it from the test itself and skip this test. ## Describe the solution you'd like Add a custom hook that will be called during pytest test collection phase. This hook will need to go to github and parse opened issues for projects - neofs-node/neofs-s3-gw/neofs-rest-gw. There should be a certain field in issues' descriptions to be parsed by this hook.
Author
Owner

@roman-khimov commented on GitHub (Apr 2, 2024):

Very fragile to me.

@roman-khimov commented on GitHub (Apr 2, 2024): Very fragile to me.
Author
Owner

@evgeniiz321 commented on GitHub (Apr 2, 2024):

The other way is just to manually update tests and add skips for tests with opened issues. This is not very convenient either and leads to almost useless PRs or just to failed tests. It should be done somehow automatically. But I do not see any other way how to link a github issue to a test besides the description field.

@evgeniiz321 commented on GitHub (Apr 2, 2024): The other way is just to manually update tests and add skips for tests with opened issues. This is not very convenient either and leads to almost useless PRs or just to failed tests. It should be done somehow automatically. But I do not see any other way how to link a github issue to a test besides the description field.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-testcases#279
No description provided.