Skip to content

contrib: polling-server: example on bundle HTTP headers and HTTP redirects #1674

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hnez
Copy link
Member

@hnez hnez commented Mar 27, 2025

RAUC can be configured to send custom HTTP headers using the send-headers parameter in the [streaming] section and RAUC_HTTP_ keys set by the system-info handler script.

These are intended for telemetry collection about devices in the field and controlled rollouts of devices in the wild by providing different bundles based on information in the header.

This will become more relevant with the upcoming polling feature #1672, which enables the automatic installation of updates using RAUC alone.

This script provides a basic example on how to use these features.

The table of previous polling attempts looks something like this:

rauc-poll

…rects

RAUC can be configured to send custom HTTP headers using the `send-headers`
parameter in the `[streaming]` section and `RAUC_HTTP_` keys set by
the `system-info` handler script.

These are intended for telemetry collection about devices in the field and
controlled rollouts of devices in the wild by providing different bundles
based on information in the header.

This will become more relevant with the upcoming polling feature,
which enables the automatic installation of updates using RAUC alone.

This script provides a basic example on how to use these features.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Copy link

codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.36%. Comparing base (b350fb6) to head (236720e).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1674   +/-   ##
=======================================
  Coverage   84.36%   84.36%           
=======================================
  Files          76       76           
  Lines       22193    22193           
=======================================
  Hits        18723    18723           
  Misses       3470     3470           
Flag Coverage Δ
service=false 80.83% <ø> (ø)
service=true 84.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jluebbe jluebbe added this to the Release v1.15 milestone Apr 1, 2025
@jluebbe jluebbe self-assigned this Apr 1, 2025
@jluebbe jluebbe self-requested a review April 1, 2025 17:35
@jluebbe jluebbe added the enhancement Adds new functionality or enhanced handling to RAUC label Apr 1, 2025
@hnez
Copy link
Member Author

hnez commented Apr 3, 2025

I've used this script in the last few days to test out the polling integration that I've added to the LXA TAC's tacd linux-automation/tacd#90 and it did what I needed.

I think this is ready for review.

@hnez hnez marked this pull request as ready for review April 3, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adds new functionality or enhanced handling to RAUC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants