Skip to content

Feature/ashraf/lib cicd - #13894

Merged
Nir-Az merged 19 commits into
realsenseai:developmentfrom
ashrafk93:feature/ashraf/libCICD
Apr 3, 2025
Merged

Feature/ashraf/lib cicd#13894
Nir-Az merged 19 commits into
realsenseai:developmentfrom
ashrafk93:feature/ashraf/libCICD

Conversation

@ashrafk93

Copy link
Copy Markdown
Collaborator

custom fw install

Comment thread unit-tests/run-unit-tests.py Outdated
print( ' --device <> Run only on the specified devices; ignore any test that does not match (implies --live)' )
print( ' --no-reset Do not try to reset any devices, with or without a hub' )
print( ' --hub-reset If a hub is available, reset the hub itself' )
print( ' --custom-fw If custom fw provided flash it if its different that the current fw installed' )

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe --custom-fw-d400?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

image_file = find_image_or_exit(product_name) if not custom_fw_path else custom_fw_path
cmd = [fw_updater_exe, '-r', '-f', image_file]
if custom_fw_path:
# unsiged fw

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsigned

Comment thread unit-tests/test-fw-update.py Outdated
if recovered or 'nightly' not in test.context:
if recovered or 'nightly' not in test.context or custom_fw_path:
# In nightly, we always update; otherwise we try to save time, so do not do anything!
# If custom fw was provided always update for now.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the libci param description you wrote
'If custom fw provided flash it if its different that the current fw installed'
Why not implementing it?

@ashrafk93
ashrafk93 force-pushed the feature/ashraf/libCICD branch 4 times, most recently from acb1aaa to 7a630e2 Compare March 30, 2025 13:09
@ashrafk93
ashrafk93 force-pushed the feature/ashraf/libCICD branch from 7a630e2 to e28eebb Compare March 30, 2025 13:11
no_reset = False
hub_reset = False
skip_disconnected = False
custom_fw_path=''

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d400

Comment thread unit-tests/test-fw-update.py Outdated
filename = os.path.basename(file_path)
match = re.search(r'Image(\d+)_(\d+)_(\d+)_(\d+)', filename)
if match:
return rsutils.version(".".join(match.groups()[:3])) # Skip the last digit

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the last digit is not always 0, right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens when the last digit is not 0?
will the fw version include the last digit ? cause i saw that currently it doesn't and it shows only 5.7.6 not 5.7.6.0

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to skip last digits only if its zero

@ashrafk93
ashrafk93 force-pushed the feature/ashraf/libCICD branch 2 times, most recently from 6c160ad to 8255e40 Compare March 30, 2025 17:25
@ashrafk93
ashrafk93 force-pushed the feature/ashraf/libCICD branch from 8255e40 to 55f0e76 Compare March 30, 2025 17:31
@Nir-Az
Nir-Az merged commit 4fd0e18 into realsenseai:development Apr 3, 2025
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 this pull request may close these issues.

3 participants