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

journal: add StderrIsJournalStream function #410

Merged
merged 4 commits into from
Nov 7, 2022

Commits on Nov 5, 2022

  1. journal: add StderrIsJournalStream function

    This function can be used for automatic protocol upgrade described in
    [1].
    
    Both unit tests and runnable example are included. Only the latter
    requires systemd, as unit tests are self-sufficient, and only test
    that JOURNAL_STREAM environment variable is checked properly.
    
    [1] https://systemd.io/JOURNAL_NATIVE_PROTOCOL/#automatic-protocol-upgrading
    WGH- committed Nov 5, 2022
    Configuration menu
    Copy the full SHA
    04e77f7 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2022

  1. journal: add StdoutIsJournalStream function

    See discussion in coreos#410
    WGH- committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    09b205d View commit details
    Browse the repository at this point in the history
  2. ci: bump Ubuntu versions for container workflows

    A test that will be added in a latter commit requires systemd-run --wait,
    which is not available on Ubuntu 16.04.
    
    DEBIAN_FRONTEND=noninteractive prevents hang on "Setting up tzdata"
    that became a problem on Ubuntu 20.04 (though something similar
    could happen on any Debian/Ubuntu version).
    WGH- committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    fe8fac5 View commit details
    Browse the repository at this point in the history
  3. journal: add proper StderrIsJournalStream test

    To ensure that StderrIsJournalStream properly works in real conditions,
    this test re-executes itself with systemd-run, and observes exit code
    and logged entries.
    WGH- committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    4ca6222 View commit details
    Browse the repository at this point in the history