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

osfv_cli checks device in even if it was previously checked out manually #93

Closed
m-iwanicki opened this issue Jan 14, 2025 · 9 comments · Fixed by #101
Closed

osfv_cli checks device in even if it was previously checked out manually #93

m-iwanicki opened this issue Jan 14, 2025 · 9 comments · Fixed by #101

Comments

@m-iwanicki
Copy link

m-iwanicki commented Jan 14, 2025

Issue

When using osfv_cli pwr * device is checked in even if it was checked out manually

miwanicki@3M02 ➜  ~/projects osfv_cli snipeit list_my
Asset Tag: 00082, Asset ID: 82, Name: NovaCustom NV41PZ [Employee laptop], Serial: ***
Assigned to: Michał Iwanicki
Asset Tag: 00037, Asset ID: 37, Name: OptiPlex7010, Serial:
Assigned to: Michał Iwanicki
IP:
Lab location: R2/5
RTE IP: 192.168.10.54
(...)

miwanicki@3M02 ➜  ~/projects osfv_cli rte --rte_ip  192.168.10.54 pwr on
DUT model retrieved from snipeit: Optiplex 7010
Using rte command is invasive action, checking first if the device is not used...
Asset 37 is already checked out by you
Powering on...
Since the asset 37 has been checkout manually                     by you prior running this script, it will NOT be checked                     in automatically. Please return the device when work is                     finished.
Asset 37 successfully checked in.

miwanicki@3M02 ➜  ~/projects osfv_cli snipeit list_my
Asset Tag: 00082, Asset ID: 82, Name: NovaCustom NV41PZ [Employee laptop], Serial: ***
Assigned to: Michał Iwanicki

It probably shouldn't do that based on

Since the asset 37 has been checkout manually by you prior running this script, it will NOT be checked in automatically

osfv_cli version

miwanicki@3M02 ➜  ~/projects pip freeze | grep osfv
osfv @ git+https://github.com/Dasharo/osfv-scripts.git@2aefa227c20e9f3da29d8be4ad3d3cebc2e804ac#subdirectory=osfv_cli
@macpijan
Copy link
Contributor

Thanks for the report, that is interesting to hear.

Do you think that your case is covered in these tests: https://github.com/Dasharo/osfv-scripts/blob/main/osfv_cli/test/rte.robot ?

@macpijan
Copy link
Contributor

Test Flash Probe - Asset Checked Out Manually :: If we have checke... | PASS | - this one passed for me, but perhaps there is something wrong with this case

@m-iwanicki
Copy link
Author

m-iwanicki commented Jan 14, 2025

Same thing with probe, it still checks asset in. Have you tried doing it manually with OptiPlex?
Maybe there is something weird with my config/installation?
Tried with clean venv with Python 3.13.0 & Python 3.12.7 but still the same.
Currently I have installed osfv_cli via:

$ pip install "git+https://github.com/Dasharo/osfv-scripts.git#egg=osfv&subdirectory=osfv_cli"
$ which osfv_cli
~/.local/bin/osfv_cli

without venv as I prefer to have osfv_cli available everywhere.
Trying to install without venv and by using makefile fails

Install logs

miwanicki@3M02 ➜  ~/projects/osfv-scripts/osfv_cli git:(main) pip install poetry
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: poetry in /home/miwanicki/.local/lib/python3.13/site-packages (2.0.0)
Requirement already satisfied: build<2.0.0,>=1.2.1 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (1.2.2.post1)
Requirement already satisfied: cachecontrol<0.15.0,>=0.14.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from cachecontrol[filecache]<0.15.0,>=0.14.0->poetry) (0.14.1)
Requirement already satisfied: cleo<3.0.0,>=2.1.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (2.1.0)
Requirement already satisfied: dulwich<0.23.0,>=0.22.6 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (0.22.7)
Requirement already satisfied: fastjsonschema<3.0.0,>=2.18.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (2.20.0)
Requirement already satisfied: installer<0.8.0,>=0.7.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (0.7.0)
Requirement already satisfied: keyring<26.0.0,>=25.1.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (25.6.0)
Requirement already satisfied: packaging>=24.0 in /usr/lib/python3.13/site-packages (from poetry) (24.1)
Requirement already satisfied: pkginfo<2.0,>=1.12 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (1.12.0)
Requirement already satisfied: platformdirs<5,>=3.0.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (4.2.1)
Requirement already satisfied: poetry-core==2.0.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (2.0.0)
Requirement already satisfied: pyproject-hooks<2.0.0,>=1.0.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (1.2.0)
Requirement already satisfied: requests<3.0,>=2.26 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (2.32.3)
Requirement already satisfied: requests-toolbelt<2.0.0,>=1.0.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (1.0.0)
Requirement already satisfied: shellingham<2.0,>=1.5 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (1.5.4)
Requirement already satisfied: tomlkit<1.0.0,>=0.11.4 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (0.13.2)
Requirement already satisfied: trove-classifiers>=2022.5.19 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (2024.10.21.16)
Requirement already satisfied: virtualenv<21.0.0,>=20.26.6 in /home/miwanicki/.local/lib/python3.13/site-packages (from poetry) (20.28.1)
Requirement already satisfied: msgpack<2.0.0,>=0.5.2 in /usr/lib64/python3.13/site-packages (from cachecontrol<0.15.0,>=0.14.0->cachecontrol[filecache]<0.15.0,>=0.14.0->poetry) (1.0.6)
Requirement already satisfied: filelock>=3.8.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from cachecontrol[filecache]<0.15.0,>=0.14.0->poetry) (3.13.4)
Requirement already satisfied: crashtest<0.5.0,>=0.4.1 in /home/miwanicki/.local/lib/python3.13/site-packages (from cleo<3.0.0,>=2.1.0->poetry) (0.4.1)
Requirement already satisfied: rapidfuzz<4.0.0,>=3.0.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from cleo<3.0.0,>=2.1.0->poetry) (3.10.1)
Requirement already satisfied: urllib3>=1.25 in /home/miwanicki/.local/lib/python3.13/site-packages (from dulwich<0.23.0,>=0.22.6->poetry) (2.3.0)
Requirement already satisfied: SecretStorage>=3.2 in /home/miwanicki/.local/lib/python3.13/site-packages (from keyring<26.0.0,>=25.1.0->poetry) (3.3.3)
Requirement already satisfied: jeepney>=0.4.2 in /home/miwanicki/.local/lib/python3.13/site-packages (from keyring<26.0.0,>=25.1.0->poetry) (0.8.0)
Requirement already satisfied: jaraco.classes in /home/miwanicki/.local/lib/python3.13/site-packages (from keyring<26.0.0,>=25.1.0->poetry) (3.4.0)
Requirement already satisfied: jaraco.functools in /home/miwanicki/.local/lib/python3.13/site-packages (from keyring<26.0.0,>=25.1.0->poetry) (4.1.0)
Requirement already satisfied: jaraco.context in /home/miwanicki/.local/lib/python3.13/site-packages (from keyring<26.0.0,>=25.1.0->poetry) (6.0.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/miwanicki/.local/lib/python3.13/site-packages (from requests<3.0,>=2.26->poetry) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in /home/miwanicki/.local/lib/python3.13/site-packages (from requests<3.0,>=2.26->poetry) (3.10)
Requirement already satisfied: certifi>=2017.4.17 in /home/miwanicki/.local/lib/python3.13/site-packages (from requests<3.0,>=2.26->poetry) (2024.12.14)
Requirement already satisfied: distlib<1,>=0.3.7 in /usr/lib/python3.13/site-packages (from virtualenv<21.0.0,>=20.26.6->poetry) (0.3.8)
Requirement already satisfied: cryptography>=2.0 in /home/miwanicki/.local/lib/python3.13/site-packages (from SecretStorage>=3.2->keyring<26.0.0,>=25.1.0->poetry) (44.0.0)
Requirement already satisfied: more-itertools in /home/miwanicki/.local/lib/python3.13/site-packages (from jaraco.classes->keyring<26.0.0,>=25.1.0->poetry) (10.5.0)
Requirement already satisfied: cffi>=1.12 in /home/miwanicki/.local/lib/python3.13/site-packages (from cryptography>=2.0->SecretStorage>=3.2->keyring<26.0.0,>=25.1.0->poetry) (1.17.1)
Requirement already satisfied: pycparser in /home/miwanicki/.local/lib/python3.13/site-packages (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring<26.0.0,>=25.1.0->poetry) (2.22)
miwanicki@3M02 ➜  ~/projects/osfv-scripts/osfv_cli git:(main) make install
poetry build
The "poetry.dev-dependencies" section is deprecated and will be removed in a future version. Use "poetry.group.dev.dependencies" instead.
Building osfv (0.5.9)
  - Building sdist
  - Built osfv-0.5.9.tar.gz
  - Building wheel
  - Built osfv-0.5.9-py3-none-any.whl
pip install --force-reinstall dist/osfv-0.5.9-py3-none-any.whl
Defaulting to user installation because normal site-packages is not writeable
Processing ./dist/osfv-0.5.9-py3-none-any.whl
Collecting PyYAML<7.0,>=6.0 (from osfv==0.5.9)
  Using cached PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting importlib-resources<7.0.0,>=6.1.1 (from osfv==0.5.9)
  Using cached importlib_resources-6.5.2-py3-none-any.whl.metadata (3.9 kB)
Collecting paramiko<4.0.0,>=3.2.0 (from osfv==0.5.9)
  Using cached paramiko-3.5.0-py3-none-any.whl.metadata (4.4 kB)
Collecting pexpect<5.0.0,>=4.8.0 (from osfv==0.5.9)
  Using cached pexpect-4.9.0-py2.py3-none-any.whl.metadata (2.5 kB)
Collecting requests<3.0.0,>=2.31.0 (from osfv==0.5.9)
  Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting unidecode<2.0.0,>=1.3.6 (from osfv==0.5.9)
  Using cached Unidecode-1.3.8-py3-none-any.whl.metadata (13 kB)
Collecting voluptuous<0.15.0,>=0.14.2 (from osfv==0.5.9)
  Using cached voluptuous-0.14.2-py3-none-any.whl.metadata (20 kB)
Collecting bcrypt>=3.2 (from paramiko<4.0.0,>=3.2.0->osfv==0.5.9)
  Using cached bcrypt-4.2.1-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (9.8 kB)
Collecting cryptography>=3.3 (from paramiko<4.0.0,>=3.2.0->osfv==0.5.9)
  Using cached cryptography-44.0.0-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.7 kB)
Collecting pynacl>=1.5 (from paramiko<4.0.0,>=3.2.0->osfv==0.5.9)
  Using cached PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl.metadata (8.6 kB)
Collecting ptyprocess>=0.5 (from pexpect<5.0.0,>=4.8.0->osfv==0.5.9)
  Using cached ptyprocess-0.7.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting charset-normalizer<4,>=2 (from requests<3.0.0,>=2.31.0->osfv==0.5.9)
  Using cached charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (35 kB)
Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.31.0->osfv==0.5.9)
  Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests<3.0.0,>=2.31.0->osfv==0.5.9)
  Using cached urllib3-2.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.31.0->osfv==0.5.9)
  Using cached certifi-2024.12.14-py3-none-any.whl.metadata (2.3 kB)
Collecting cffi>=1.12 (from cryptography>=3.3->paramiko<4.0.0,>=3.2.0->osfv==0.5.9)
  Using cached cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.12->cryptography>=3.3->paramiko<4.0.0,>=3.2.0->osfv==0.5.9)
  Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Using cached importlib_resources-6.5.2-py3-none-any.whl (37 kB)
Using cached paramiko-3.5.0-py3-none-any.whl (227 kB)
Using cached pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
Using cached PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (759 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached Unidecode-1.3.8-py3-none-any.whl (235 kB)
Using cached voluptuous-0.14.2-py3-none-any.whl (31 kB)
Using cached bcrypt-4.2.1-cp39-abi3-manylinux_2_28_x86_64.whl (278 kB)
Using cached certifi-2024.12.14-py3-none-any.whl (164 kB)
Using cached charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (144 kB)
Using cached cryptography-44.0.0-cp39-abi3-manylinux_2_28_x86_64.whl (4.2 MB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Using cached PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (856 kB)
Using cached urllib3-2.3.0-py3-none-any.whl (128 kB)
Using cached cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: ptyprocess, voluptuous, urllib3, unidecode, PyYAML, pycparser, pexpect, importlib-resources, idna, charset-normalizer, certifi, bcrypt, requests, cffi, pynacl, cryptography, paramiko, osfv
  Attempting uninstall: ptyprocess
    Found existing installation: ptyprocess 0.7.0
    Uninstalling ptyprocess-0.7.0:
      Successfully uninstalled ptyprocess-0.7.0
  Attempting uninstall: voluptuous
    Found existing installation: voluptuous 0.14.2
    Uninstalling voluptuous-0.14.2:
      Successfully uninstalled voluptuous-0.14.2
  Attempting uninstall: urllib3
    Found existing installation: urllib3 2.3.0
    Uninstalling urllib3-2.3.0:
      Successfully uninstalled urllib3-2.3.0
  Attempting uninstall: unidecode
    Found existing installation: Unidecode 1.3.8
    Uninstalling Unidecode-1.3.8:
      Successfully uninstalled Unidecode-1.3.8
  Attempting uninstall: PyYAML
    Found existing installation: PyYAML 6.0.2
    Uninstalling PyYAML-6.0.2:
      Successfully uninstalled PyYAML-6.0.2
  Attempting uninstall: pycparser
    Found existing installation: pycparser 2.22
    Uninstalling pycparser-2.22:
      Successfully uninstalled pycparser-2.22
  Attempting uninstall: pexpect
    Found existing installation: pexpect 4.9.0
    Uninstalling pexpect-4.9.0:
      Successfully uninstalled pexpect-4.9.0
  Attempting uninstall: importlib-resources
    Found existing installation: importlib_resources 6.5.2
    Uninstalling importlib_resources-6.5.2:
      Successfully uninstalled importlib_resources-6.5.2
  Attempting uninstall: idna
    Found existing installation: idna 3.10
    Uninstalling idna-3.10:
      Successfully uninstalled idna-3.10
  Attempting uninstall: charset-normalizer
    Found existing installation: charset-normalizer 3.4.1
    Uninstalling charset-normalizer-3.4.1:
      Successfully uninstalled charset-normalizer-3.4.1
  Attempting uninstall: certifi
    Found existing installation: certifi 2024.12.14
    Uninstalling certifi-2024.12.14:
      Successfully uninstalled certifi-2024.12.14
  Attempting uninstall: bcrypt
    Found existing installation: bcrypt 4.2.1
    Uninstalling bcrypt-4.2.1:
      Successfully uninstalled bcrypt-4.2.1
  Attempting uninstall: requests
    Found existing installation: requests 2.32.3
    Uninstalling requests-2.32.3:
      Successfully uninstalled requests-2.32.3
  Attempting uninstall: cffi
    Found existing installation: cffi 1.17.1
    Uninstalling cffi-1.17.1:
      Successfully uninstalled cffi-1.17.1
  Attempting uninstall: pynacl
    Found existing installation: PyNaCl 1.5.0
    Uninstalling PyNaCl-1.5.0:
      Successfully uninstalled PyNaCl-1.5.0
  Attempting uninstall: cryptography
    Found existing installation: cryptography 44.0.0
    Uninstalling cryptography-44.0.0:
      Successfully uninstalled cryptography-44.0.0
  Attempting uninstall: paramiko
    Found existing installation: paramiko 3.5.0
    Uninstalling paramiko-3.5.0:
      Successfully uninstalled paramiko-3.5.0
  Attempting uninstall: osfv
    Found existing installation: osfv 0.5.9
    Uninstalling osfv-0.5.9:
      Successfully uninstalled osfv-0.5.9
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyopenssl 24.2.1 requires cryptography<44,>=41.0.5, but you have cryptography 44.0.0 which is incompatible.
Successfully installed PyYAML-6.0.2 bcrypt-4.2.1 certifi-2024.12.14 cffi-1.17.1 charset-normalizer-3.4.1 cryptography-44.0.0 idna-3.10 importlib-resources-6.5.2 osfv-0.5.9 paramiko-3.5.0 pexpect-4.9.0 ptyprocess-0.7.0 pycparser-2.22 pynacl-1.5.0 requests-2.32.3 unidecode-1.3.8 urllib3-2.3.0 voluptuous-0.14.2
test -f /home/miwanicki/.osfv/snipeit.yml || install -D -m 644 snipeit.yml /home/miwanicki/.osfv/snipeit.yml
test -f /home/miwanicki/.osfv/zabbix.yml || install -D -m 644 zabbix.yml /home/miwanicki/.osfv/zabbix.yml

@DaniilKl
Copy link

DaniilKl commented Jan 30, 2025

Confirm the issue on osfv_cli version 0.5.9:

λ rte 192.168.10.107 pwr off
DUT model retrieved from snipeit: MSI PRO Z690-A DDR4
Using rte command is invasive action, checking first if the device is not used...
Asset 60 successfully checked out.
Powering off...
Since the asset 60 has been checkout                     automatically by this script, it is automatically checked                     in as well.
Asset 60 successfully checked in.

After this I had the asset checked in.

@macpijan
Copy link
Contributor

macpijan commented Jan 30, 2025

Can it be confirmed via running automated test?
Is there anything in the current scenario that needs to be improved to reflect your use-case?
I would prefer that we use automated tests to reproduce/fix problems here.

Let me know if you need any support here.

@m-iwanicki
Copy link
Author

@macpijan have you tested on current main, fresh install? We should probably add CI.
Automated test fails even before that I think due to spaces/tabs in returned text.

robot -L TRACE -t "Test Flash Probe - Asset Checked Out Manually" rte.robot
==============================================================================
Rte :: The goal of this suite is to evaluate the most important features of...
==============================================================================
Test Flash Probe - Asset Checked Out Manually :: If we have checke... | FAIL |
'DUT model retrieved from snipeit: APU2
Using rte command is invasive action, checking first if the device is not used...
Asset 31 is already checked out by you
Probing flash...
Executing command: flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=16000 -c W25Q64JV-.Q
flashrom v1.3.0 on Linux 5.4.69 (armv7l)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found Winbond flash chip "W25Q64JV-.Q" (8192 kB, SPI) on linux_spi.
===
This flash part has status UNTESTED for operations: WP
The test status of this chip may have been updated in the latest development
version of flashrom. If you are running the latest development version,
please email a report to [email protected] if any of the above operations
work correctly for you with this flash chip. Please include the flashrom log
file for all operations you tested (see the man page for details), and mention
which mainboard or programmer you tested in the subject line.
Thanks for your help!
No operations were specified.
Since the asset 31 has been checkout manually                     by you prior running this script, it will NOT be checked                     in automatically. Please return the device when work is                     finished.
Asset 31 successfully checked in.' does not match '*Since the asset 31 has been checkout manually by you prior running this script, it will NOT be checked in automatically.*'
Since the asset 31 has been checkout manually                     by you prior running this script, it will NOT be checked                     in automatically. Please return the device when work is                     finished

Isn't equal to expected

*Since the asset 31 has been checkout manually by you prior running this script, it will NOT be checked in automatically.*

After modifying test a little (trimming multiple whitespace):

diff --git a/osfv_cli/test/rte.robot b/osfv_cli/test/rte.robot
index f6524a5bf9ae..c591d8793b77 100644
--- a/osfv_cli/test/rte.robot
+++ b/osfv_cli/test/rte.robot
@@ -44,11 +44,13 @@ Test Flash Probe - Asset Checked Out Manually
     ...    not checked in after the script finishes execution.
     Check Out    ${RTE_IP_APU2}
     ${probe_result}=    Run Flash Probe    ${RTE_IP_APU2}
+    ${stdout}=    Set Variable    ${probe_result.stdout}
+    ${trimmed_probe_result}=    Evaluate    re.sub(r"\\s\\s+", " ", $stdout)
     Should Match
-    ...    ${probe_result.stdout}
+    ...    ${trimmed_probe_result}
     ...    *Since the asset ${ASSET_ID_APU2} has been checkout manually by you prior running this script, it will NOT be checked in automatically.*
     Should Match
-    ...    ${probe_result.stdout}
+    ...    ${trimmed_probe_result}
     ...    *Please return the device when work is finished.*
     ${list_result}=    Run Process    osfv_cli    snipeit    list_my
     Should Match    ${list_result.stdout}    *Asset ID: ${ASSET_ID_APU2}*

Test fails when making sure that asset is still checked out

 robot -L TRACE -t "Test Flash Probe - Asset Checked Out Manually" rte.robot
==============================================================================
Rte :: The goal of this suite is to evaluate the most important features of...
==============================================================================
Test Flash Probe - Asset Checked Out Manually :: If we have checke... | FAIL |
'Asset Tag: 00082, Asset ID: 82, Name: NovaCustom NV41PZ [Employee laptop], Serial: NKNV41PZ000000002G00078
Assigned to: Michał Iwanicki
' does not match '*Asset ID: 31*'
------------------------------------------------------------------------------
Rte :: The goal of this suite is to evaluate the most important fe... | FAIL |
1 test, 0 passed, 1 failed
==============================================================================
Python packages installed

$ pip freeze
bcrypt==4.2.1
build==1.2.2.post1
CacheControl==0.14.2
certifi==2024.12.14
cffi==1.17.1
charset-normalizer==3.4.1
cleo==2.1.0
crashtest==0.4.1
cryptography==44.0.0
distlib==0.3.9
dulwich==0.22.7
fastjsonschema==2.21.1
filelock==3.17.0
idna==3.10
importlib_resources==6.5.2
installer==0.7.0
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jeepney==0.8.0
keyring==25.6.0
more-itertools==10.6.0
msgpack==1.1.0
osfv @ file:///home/miwanicki/projects/osfv-scripts/osfv_cli/dist/osfv-0.5.9-py3-none-any.whl#sha256=8d3465c13ac9bf7a808934462a6d0668034051eaf217f969a6ff55777d653470
packaging==24.2
paramiko==3.5.0
pexpect==4.9.0
pkginfo==1.12.0
platformdirs==4.3.6
poetry==2.0.1
poetry-core==2.0.1
ptyprocess==0.7.0
pycparser==2.22
PyNaCl==1.5.0
pyproject_hooks==1.2.0
PyYAML==6.0.2
RapidFuzz==3.11.0
requests==2.32.3
requests-toolbelt==1.0.0
robotframework==7.2
SecretStorage==3.3.3
shellingham==1.5.4
tomlkit==0.13.2
trove-classifiers==2025.1.15.22
Unidecode==1.3.8
urllib3==2.3.0
virtualenv==20.29.1
voluptuous==0.14.2

@m-iwanicki
Copy link
Author

And also in tests we have:

Check In Test Devices
    Check In    ${RTE_IP_APU2}
    Check In    ${RTE_IP_V1410}
    Check In    ${RTE_IP_VP4630}
    Check In    ${RTE_IP_Z690}
    Check In    ${RTE_IP_FW4C}

Are those always safe to Check In? (osfv_cli check_in works even if platform is checked out by someone else)

@macpijan
Copy link
Contributor

Are those always safe to Check In? (osfv_cli check_in works even if platform is checked out by someone else)

No, nothing is, that is one of the reasons why it's not in the CI, unless we figure it out. Moving it to: #100

@macpijan
Copy link
Contributor

macpijan commented Jan 30, 2025

have you tested on current main, fresh install?

I thought I have, but there's been no new commit since then. So apparently I have not. Thanks for bringing this up. I can reproduce this problem now.

m-iwanicki added a commit to Dasharo/open-source-firmware-validation that referenced this issue Feb 11, 2025
Resolves requests exception error and Dasharo/osfv-scripts#93

Signed-off-by: Michał Iwanicki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants