GUI acceptance tests using environment deployed from packages.

Build: #2915 failed

Job: POSIX failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

user sees directory permission changes made by space owner[1oz 1op deployed]: Test case result

The below summarizes the result of the test " user sees directory permission changes made by space owner[1oz 1op deployed]" in build 2,915 of Onedata Products - gui acceptance pkg - POSIX.
Description
user sees directory permission changes made by space owner[1oz 1op deployed]
Test class
gui.scenarios.test_oneprovider_posix
Method
test_user_sees_directory_permission_changes_made_by_space_owner[1oz_1op_deployed]
Duration
1 min
Status
Failed (New Failure)

Error Log

selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
  (Session info: chrome=129.0.6668.70)
Stacktrace:
#0 0x55d003e3c13a <unknown>
#1 0x55d003b2243d <unknown>
#2 0x55d003b0a3d2 <unknown>
#3 0x55d003b08493 <unknown>
#4 0x55d003b08c4f <unknown>
#5 0x55d003b18667 <unknown>
#6 0x55d003b2ed95 <unknown>
#7 0x55d003bb5b34 <unknown>
#8 0x55d003b968c3 <unknown>
#9 0x55d003b646b3 <unknown>
#10 0x55d003b6568e <unknown>
#11 0x55d003e06b3b <unknown>
#12 0x55d003e0aac1 <unknown>
#13 0x55d003df3335 <unknown>
#14 0x55d003e0b642 <unknown>
#15 0x55d003dd849f <unknown>
#16 0x55d003e2b038 <unknown>
#17 0x55d003e2b203 <unknown>
#18 0x55d003e3af8c <unknown>
#19 0x7f3ecc1bfa94 <unknown>
#20 0x7f3ecc24ca34 __clone
fixturefunc = <function check_permission at 0x7f774ca26d40>
request = <FixtureRequest for <Function test_user_sees_directory_permission_changes_made_by_space_owner[1oz_1op_deployed]>>
kwargs = {'browser_id': 'browser_user1', 'modals': <class 'tests.gui.utils.common.modals.Modals'>, 'perm': '664', 'selenium': {..., 'space_owner_browser': <selenium.webdriver.chrome.webdriver.WebDriver (session="88d3b6000fb5d880b2d8538e1a4691e0")>}}

    def call_fixture_func(
        fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
    ) -> FixtureValue:
        if is_generator(fixturefunc):
            fixturefunc = cast(
                Callable[..., Generator[FixtureValue, None, None]], fixturefunc
            )
            generator = fixturefunc(**kwargs)
            try:
                fixture_result = next(generator)
            except StopIteration:
                raise ValueError(f"{request.fixturename} did not yield a value") from None
            finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
            request.addfinalizer(finalizer)
        else:
            fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
>           fixture_result = fixturefunc(**kwargs)

/usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
tests/gui/steps/oneprovider/permissions.py:45: in check_permission
    ).details_modal.edit_permissions.posix.value
tests/gui/utils/core/web_elements.py:59: in __get__
    elem = super(WebItem, self).__get__(instance, owner)
tests/gui/utils/core/web_elements.py:29: in __get__
    return find_web_elem(instance.web_elem, self.css_sel,
tests/gui/utils/generic.py:135: in find_web_elem
    item = web_elem_root.find_element(By.CSS_SELECTOR, css_sel)
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:748: in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:354: in execute
    self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7f774c404c80>
response = {'status': 500, 'value': '{"value":{"error":"unknown error","message":"unknown error: session deleted because of page ...unknown>\\n#18 0x55d003e3af8c \\u003Cunknown>\\n#19 0x7f3ecc1bfa94 \\u003Cunknown>\\n#20 0x7f3ecc24ca34 __clone\\n"}}'}

    def check_response(self, response: Dict[str, Any]) -> None:
        """Checks that a JSON response from the WebDriver does not have an
        error.
    
        :Args:
         - response - The JSON response from the WebDriver server as a dictionary
           object.
    
        :Raises: If the response contains an error message.
        """
        status = response.get("status", None)
        if not status or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen: str = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get("value", None)
            if value_json and isinstance(value_json, str):
                import json
    
                try:
                    value = json.loads(value_json)
                    if len(value) == 1:
                        value = value["value"]
                    status = value.get("error", None)
                    if not status:
                        status = value.get("status", ErrorCode.UNKNOWN_ERROR)
                        message = value.get("value") or value.get("message")
                        if not isinstance(message, str):
                            value = message
                            message = message.get("message")
                    else:
                        message = value.get("message", None)
                except ValueError:
                    pass
    
        exception_class: Type[WebDriverException]
        e = ErrorCode()
        error_codes = [item for item in dir(e) if not item.startswith("__")]
        for error_code in error_codes:
            error_info = getattr(ErrorCode, error_code)
            if isinstance(error_info, list) and status in error_info:
                exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
                break
        else:
            exception_class = WebDriverException
    
        if not value:
            value = response["value"]
        if isinstance(value, str):
            raise exception_class(value)
        if message == "" and "message" in value:
            message = value["message"]
    
        screen = None  # type: ignore[assignment]
        if "screen" in value:
            screen = value["screen"]
    
        stacktrace = None
        st_value = value.get("stackTrace") or value.get("stacktrace")
        if st_value:
            if isinstance(st_value, str):
                stacktrace = st_value.split("\n")
            else:
                stacktrace = []
                try:
                    for frame in st_value:
                        line = frame.get("lineNumber", "")
                        file = frame.get("fileName", "<anonymous>")
                        if line:
                            file = f"{file}:{line}"
                        meth = frame.get("methodName", "<anonymous>")
                        if "className" in frame:
                            meth = f"{frame['className']}.{meth}"
                        msg = "    at %s (%s)"
                        msg = msg % (meth, file)
                        stacktrace.append(msg)
                except TypeError:
                    pass
        if exception_class == UnexpectedAlertPresentException:
            alert_text = None
            if "data" in value:
                alert_text = value["data"].get("text")
            elif "alert" in value:
                alert_text = value["alert"].get("text")
            raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash
E       from unknown error: cannot determine loading status
E       from tab crashed
E         (Session info: chrome=129.0.6668.70)
E       Stacktrace:
E       #0 0x55d003e3c13a <unknown>
E       #1 0x55d003b2243d <unknown>
E       #2 0x55d003b0a3d2 <unknown>
E       #3 0x55d003b08493 <unknown>
E       #4 0x55d003b08c4f <unknown>
E       #5 0x55d003b18667 <unknown>
E       #6 0x55d003b2ed95 <unknown>
E       #7 0x55d003bb5b34 <unknown>
E       #8 0x55d003b968c3 <unknown>
E       #9 0x55d003b646b3 <unknown>
E       #10 0x55d003b6568e <unknown>
E       #11 0x55d003e06b3b <unknown>
E       #12 0x55d003e0aac1 <unknown>
E       #13 0x55d003df3335 <unknown>
E       #14 0x55d003e0b642 <unknown>
E       #15 0x55d003dd849f <unknown>
E       #16 0x55d003e2b038 <unknown>
E       #17 0x55d003e2b203 <unknown>
E       #18 0x55d003e3af8c <unknown>
E       #19 0x7f3ecc1bfa94 <unknown>
E       #20 0x7f3ecc24ca34 __clone

/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/errorhandler.py:229: WebDriverException