intel / intel/gprofiler

tests: java java_attach_socket_missing fail on aarch64

Open
#722 2 comments 0 reactions 0 assignees View on GitHub
aarch64 runtime/java tests
Dominant language
Python
Stars
826
Forks
79
PR merge metrics
No merged PRs in 30d

Description

test:
```
FAILED tests/test_java.py::test_java_attach_socket_missing[True] - assert 18 == 1
```
Output:
```
application_pid = 71321, profiler_state =

@pytest.mark.parametrize("in_container", [True]) # only in container is enough
def test_java_attach_socket_missing(
application_pid: int,
profiler_state: ProfilerState,
) -> None:
"""
Tests that we get the proper JattachMissingSocketException when the attach socket is deleted.
"""
with make_java_profiler(
profiler_state,
duration=1,
) as profiler:
snapshot_pid_profile(profiler, application_pid)

# now the attach socket is created, remove it
Path(f"/proc/{application_pid}/root/tmp/.java_pid{get_process_nspid(application_pid)}").unlink()

profile = snapshot_pid_profile(profiler, application_pid)
> assert len(profile.stacks) == 1
E assert 18 == 1
E +18
E -1

tests/test_java.py:594: AssertionError
============================================================================================================================= warnings summary ==============================================================================================================================test_java.py: 71 warnings
/usr/local/lib/python3.10/dist-packages/docker/utils/utils.py:52: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
s1 = StrictVersion(v1)

test_java.py: 71 warnings
/usr/local/lib/python3.10/dist-packages/docker/utils/utils.py:53: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
s2 = StrictVersion(v2)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.