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

Merge dev to master #435

Merged
merged 129 commits into from
May 2, 2024
Merged

Merge dev to master #435

merged 129 commits into from
May 2, 2024

Commits on Nov 16, 2021

  1. Add socket proxy to snap

    Socket proxy is part of the container signing feature.  It will proxy
    the docker unix socket and eventually filter messages.
    Mo Chen authored and johnmichaelwelsh committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    0a658c0 View commit details
    Browse the repository at this point in the history
  2. Rename socket-proxy to bouncer

    Mo Chen authored and johnmichaelwelsh committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    c18f209 View commit details
    Browse the repository at this point in the history
  3. Update bouncer to 1.0.3

    Mo Chen authored and johnmichaelwelsh committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    7a464f3 View commit details
    Browse the repository at this point in the history
  4. Try removing git describe to see if it fixes CI

    Mo Chen authored and johnmichaelwelsh committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    c69cb48 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. fix bouncer version file (#403)

    fix bouncer version file
    
    the snapcraft cmake plugin doesn't copy the .git directory from
    the download folder into the build directory, so git commands
    may not work in the build phase.
    
    the command does seem to work in some environments because git
    "falls up" the directory structure looking for a containing
    .git folder, usually finding the .git folder of snap-pelion-edge,
    which obviously contains the wrong version for the part.
    costanic authored Nov 17, 2021
    Configuration menu
    Copy the full SHA
    b35b722 View commit details
    Browse the repository at this point in the history
  2. Fix socket paths to match newly moved paths

    Docker sock was moved to /run/snap.snap-pelion-edge/var/run/.  We need
    to update this script to use the same.
    Mo Chen authored and moonchen committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    f202c50 View commit details
    Browse the repository at this point in the history
  3. Hook up kubelet sock path for bouncer

    Use bouncer proxy socket path instead of docker socket when image
    signing is enabled.
    Mo Chen authored and moonchen committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    e9c1c30 View commit details
    Browse the repository at this point in the history
  4. Fix logic for signing-mode socket selection

    Signed-off-by: Cristian Prundeanu <[email protected]>
    CristianPrundeanu authored and Nicolas Costa committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    3669e67 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. bouncer: convert to a daemon; add network-bind plug

    bouncer needs to run as a service so that it can handle the
    docker-proxy.socket.  it also needs the network-bind plug so
    that it can open a listening socket.
    costanic authored and Nicolas Costa committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    5361f26 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. lock yq to version 3.4.1

    This fixes fix yq failure to read the maestro yaml
    config file on startup.
    
    This commit fixes these log errors:
    maestro[]: Error: unknown command "r" for "yq"
    maestro[]: Run 'yq --help' for usage.
    maestro[]: Error: unknown command "r" for "yq"
    maestro[]: Run 'yq --help' for usage.
    
    The yq version was not version-locked and yq version 4.0
    is a major breaking change from previous versions:
    https://github.com/mikefarah/yq/releases/tag/4.0.0-alpha1
    costanic authored and Nicolas Costa committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    2910196 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2021

  1. Update bouncer to v1.1.0

    Add multiple connections support.
    Mo Chen authored and moonchen committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    577b3c6 View commit details
    Browse the repository at this point in the history
  2. use devicedb tag instead of SHA

    The version is the same, we just reference the tag name instead
    of the SHA.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    066ca9b View commit details
    Browse the repository at this point in the history
  3. upgrade kubelet to v1.0.0 for Pelion Edge 2.4

    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    ffea43d View commit details
    Browse the repository at this point in the history
  4. upgrade golang to 1.15.13

    The meta build is at 1.15.8, but 1.15.13 has a few extra bug
    fixes and security fixes.
    
    https://golang.org/doc/devel/release#go1.15.minor
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    5e9c945 View commit details
    Browse the repository at this point in the history
  5. upgrade edge-core to 0.18.0

    The patches had to be refreshed as well.  The main changes are
    that 1) the mbed-cloud-client library was turned into a git
    submodule which required some adjustment, and 2) the network
    proxy functionality in mbed-cloud-client had to be totally
    rewritten.
    
    The mbed-cloud-client network proxy patch is based on this PR:
    https://github.com/PelionIoT/mbed-cloud-client-internal/pull/3262/
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    ee6d54d View commit details
    Browse the repository at this point in the history
  6. bump snap version to 2.4.0

    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    e564e48 View commit details
    Browse the repository at this point in the history
  7. set permissions of userdata/mbed to 700

    According to the Pelion Edge 2.4 changelog, the userdata/mbed folder
    should have permissions restricted to 700 and owner=root.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    71d54f0 View commit details
    Browse the repository at this point in the history
  8. fix devicedb version issue

    the tagged version of devicedb 1.10.0 didn't print the correct
    version on the command line.  this is a bug in devicedb where
    the old version was hardcoded and wasn't bumped to 1.10.0
    during the release.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    f8281a9 View commit details
    Browse the repository at this point in the history
  9. install multiple edge-core variants

    edge-core is now compiled in 3 modes:
        * factory mode
        * developer mode
        * byoc mode
    
    https://github.com/PelionIoT/mbed-edge#configuring-edge-build
    
    TODO:
        * add code to the launch script to check which mode to start
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    4148cf3 View commit details
    Browse the repository at this point in the history
  10. edge-core: add provision-mode snap configuration

    Now that we have multiple versions of edge-core installed in the
    snap, we need to provide the user with a config option to choose
    which one to start.
    
    The new snap configuration variable is "edge-core.provision-mode"
    and valid values are "factory", "developer", "byoc", and "auto".
    The default is "auto".
    
    For factory mode, the expectation is that the mcc_config folder
    exists.
    
    For developer mode, the expectation is that the developer mode
    binary was built with developer credentials and installed into
    the snap.
    
    For byoc mode, the expectation is that the user has provided
    a CBOR file at /var/snap/pelion-edge/common/device.cbor.  See
    https://github.com/PelionIoT/mbed-edge/tree/master/edge-tool#readme
    for instructions on how to create a CBOR.
    
    The provision-mode is only useful if the device hasn't already
    been provisioned, i.e., if the mcc_config folder doesn't
    exist, because if the device is provisioned we just boot in
    factory mode regardless of the snap config option.
    
    To switch modes if the device is already provisioned:
        1. stop the pelion-edge snap services
        2. backup the existing mcc_config folder if desired
        3. delete the existing mcc_config folder
        4. set the snap config option edge-core.provision-mode
        5. provision credentials as in the expectations above
        6. start the pelion-edge snap services
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    0c94aa7 View commit details
    Browse the repository at this point in the history
  11. only build edge-core byoc and dev if grade=devel

    the 'grade' flag in snapcraft.yaml is used to indicate whether
    a snap is ready for release, so we can use that flag to indicate
    when to include the byoc and developer variants of edge-core under
    that assertion that we shouldn't include developer tools in
    production builds.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    67214e4 View commit details
    Browse the repository at this point in the history
  12. upgrade snapcraft docker image

    This fixes a build breakage issue with the python snapcraft plugin
    used for building python projects. The python package manager pip
    dropped support for python2 and for python3.5 in pip version 21 and
    the plugin was patched to pin the version of pip.
    
    canonical/snapcraft#3428
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    319ed97 View commit details
    Browse the repository at this point in the history
  13. add edge-tool

    edge-tool can convert Pelion Cloud developer credentials
    (mbed_cloud_dev_credentials.c and update_default_resources.c)
    into a CBOR file that is used for registration by edge-core
    in BYOC mode.
    
    https://github.com/PelionIoT/mbed-edge/tree/master/edge-tool
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    6587b97 View commit details
    Browse the repository at this point in the history
  14. add personal-files to read edge-tool config json

    edge-tool.py v0.16.1 requires a json config file and unfortunately
    it must be named .mbed_cloud_config.json which means it's a hidden
    file and the home plugin doesn't allow access to the user's hidden
    files.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    e692843 View commit details
    Browse the repository at this point in the history
  15. improve the test for whether edge-core is provisioned

    when starting edge-core in factory mode, if the device is not
    provisioned at the factory, then edge-core will still create the
    mcc_config/WORKING/ folder, but its contents will be empty. this
    is fixable by performing the factory provisioning step with FCCE,
    but for a grade:devel snap, this breaks auto mode.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    a9d8854 View commit details
    Browse the repository at this point in the history
  16. modify edge-core launch provisioning mode detection

    The edge-core launch code should be driven first by the user
    setting, and only then fallback to auto detection.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    a32064b View commit details
    Browse the repository at this point in the history
  17. edge-tool: pin python crypto dependency to fix build

    Snapcraft supports Python 3.5 in the `core` base snap.  The
    mbed-edge edge-tool recently updated one of its python dependencies,
    cryptography, to version 3.3.2 which doesn't support Python 3.5 and
    only supports Python 3.6+
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    9797cb2 View commit details
    Browse the repository at this point in the history
  18. edge-tool: install missing edge_tool.py

    the python package setup.py for edge-tool didn't install the
    edge_tool.py main script which meant that edge-tool wasn't
    runnable in the snap.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    a82d1d8 View commit details
    Browse the repository at this point in the history
  19. edge-tool: move edge_tool.py to wigwag folder

    install the edge_tool.py utility under the wigwag folder so that
    it is bundled in a similar directory structure as seen in the
    meta-mbed-edge yocto recipe.
    costanic authored and Nicolas Costa committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    47328b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

  1. Revert "upgrade kubelet to v1.0.0 for Pelion Edge 2.4"

    This reverts commit ffea43d.
    
    Downgrade kubelet back to the version before network policies
    until we add missing dependency CoreDNS which replaces CNI plugins.
    costanic authored and Nicolas Costa committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    485a271 View commit details
    Browse the repository at this point in the history
  2. dockerd: revert path to persistent data-root directory

    The path to docker runtime files (such as docker.sock) was modified
    in a previous commit to move it out of non-volatile storage to
    tmpfs to fix a sudden powerloss issue, but a bug was created by
    moving the persistent data dir also.  This commit moves the
    data-root back to persistent storage.
    costanic authored and Nicolas Costa committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    be44d16 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Configuration menu
    Copy the full SHA
    4086604 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e9644e View commit details
    Browse the repository at this point in the history
  3. Removed unused feature: mdns

    mray190 committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    596995a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e51908a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    952a758 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. Added new package pe-terminal to replace relay-term

    Added v1.0.0 tag of pe-terminal package.
    
    As we’re shying away for nodejs we’ve built this golang based
    terminal-client for Pelion Edge which will ultimately replace
    the old nodejs based relay-term but the current intention is to
    disable the old one instead of removing it completely so that
    we can bring it back up incase we encounter some issue with the
    new one.
    adwardstark authored and Nicolas Costa committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    1f9c045 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. Configuration menu
    Copy the full SHA
    34c9abb View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. check if SNAP_DATA is writable before starting edge-core

    This very rare condition may occur during a snap-refresh if the
    pelion-edge snap is also being updated.  In this case, edge-core
    won't be able to write to SNAP_DATA which causes any future
    firmware update to fail.
    costanic authored and Nicolas Costa committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    e551883 View commit details
    Browse the repository at this point in the history
  2. Use curl pre-built instead of compiling from source

    This fixes a build sequencing issue encountered when building
    edge-core *after* curl.  Apparently the custom version of libcurl
    isn't compiled with OPENSSL support and the build system uses
    the built-in version instead if curl hasn't been staged yet.
    
    In the normal case when building from a clean environment,
    edge-core seems to be built before curl and so this issue doesn't
    occur.
    
    cmake /build/parts/edge-core/src -DCMAKE_INSTALL_PREFIX=
    -DCMAKE_BUILD_TYPE=Release -DTRACE_LEVEL=WARN -DFIRMWARE_UPDATE=ON
    -DDEVELOPER_MODE=OFF -DFACTORY_MODE=ON -DFOTA_ENABLE=OFF
    -DMBED_CLOUD_CLIENT_CURL_DYNAMIC_LINK=OFF -DBYOC_MODE=OFF
    -DTARGET_CONFIG_ROOT=/build/parts/edge-core/src/config
    -DMBED_CLOUD_DEV_UPDATE_ID=ON -DNETWORK_PROXY_SUPPORT=ON
    -DPARSEC_TPM_SE_SUPPORT=OFF
    cmake: /build/stage/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found
    (required by cmake)
    Failed to run 'cmake /build/parts/edge-core/src -DCMAKE_INSTALL_PREFIX=
    -DCMAKE_BUILD_TYPE=Release -DTRACE_LEVEL=WARN -DFIRMWARE_UPDATE=ON
    -DDEVELOPER_MODE=OFF -DFACTORY_MODE=ON -DFOTA_ENABLE=OFF
    -DMBED_CLOUD_CLIENT_CURL_DYNAMIC_LINK=OFF -DBYOC_MODE=OFF
    -DTARGET_CONFIG_ROOT=/build/parts/edge-core/src/config
    -DMBED_CLOUD_DEV_UPDATE_ID=ON -DNETWORK_PROXY_SUPPORT=ON
    -DPARSEC_TPM_SE_SUPPORT=OFF' for 'edge-core': Exited with code 1.
    Verify that the part is using the correct parameters and try again.
    costanic authored and Nicolas Costa committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    9f944fe View commit details
    Browse the repository at this point in the history

Commits on May 3, 2023

  1. pysh fixes - tabs to spaces conversion

    All tabs to 4 spaces found by pysh-check.
    Add Izuma copyrights where applicable.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    f5ce653 View commit details
    Browse the repository at this point in the history
  2. entrypoint.sh - push check fixes (quoting)

    Fix following shellcheck findings:
    
    snap-pelion-edge/entrypoint.sh:22:24: note: Double quote to prevent globbing and word splitting. [SC2086]
    snap-pelion-edge/entrypoint.sh:24:30: note: Double quote to prevent globbing and word splitting. [SC2086]
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    537a2d4 View commit details
    Browse the repository at this point in the history
  3. connect.sh - pysh check fixes

    Quotations everywhere.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    4a7f75d View commit details
    Browse the repository at this point in the history
  4. GitHub action - pysh check & fix checkout to v3

    v2 checkout is deprecated.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    98a849b View commit details
    Browse the repository at this point in the history
  5. hooks/install - pysh fix

    /ssd/snap-pelion-edge/snap/hooks/install:25:24: note: Double quote to prevent globbing and word splitting. [SC2086]
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    eaa8482 View commit details
    Browse the repository at this point in the history
  6. edge-tool.sh - pysh fixes

    Fix following findings:
    
    /snap-pelion-edge/files/edge-core-tool/edge-core-tool.sh:21:11: note: Double quote to prevent globbing and word splitting. [SC2086]
    /snap-pelion-edge/files/edge-core-tool/edge-core-tool.sh:26:14: note: Double quote to prevent globbing and word splitting. [SC2086]
    /snap-pelion-edge/files/edge-core-tool/edge-core-tool.sh:26:27: error: Double quote array expansions to avoid re-splitting elements. [SC2068]
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    0362732 View commit details
    Browse the repository at this point in the history
  7. launch-bouncer.sh - fix shellcheck findings

    /ssd/snap-pelion-edge/files/bouncer/scripts/launch-bouncer.sh:21:15: note: Double quote to prevent globbing and word splitting. [SC2086]
    /ssd/snap-pelion-edge/files/bouncer/scripts/launch-bouncer.sh:21:23: note: Double quote to prevent globbing and word splitting. [SC2086]
    /ssd/snap-pelion-edge/files/bouncer/scripts/launch-bouncer.sh:21:31: note: Double quote to prevent globbing and word splitting. [SC2086]
    /ssd/snap-pelion-edge/files/bouncer/scripts/launch-bouncer.sh:21:61: note: Double quote to prevent globbing and word splitting. [SC2086]
    /ssd/snap-pelion-edge/files/bouncer/scripts/launch-bouncer.sh:21:119: note: Double quote to prevent globbing and word splitting. [SC2086]
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    80e430e View commit details
    Browse the repository at this point in the history
  8. launch-edge-proxy.sh - fix MOST shellcheck warnings

    One instance still remains, the last line - it's just a monster.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    19e605f View commit details
    Browse the repository at this point in the history
  9. launch-pelion-identity.sh - fix shellcheck findings

    Some quotation fixes.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    d879746 View commit details
    Browse the repository at this point in the history
  10. launch-fluent-bit.sh - shellcheck fixes

    Simple quotation fixes.
    
    /snap-pelion-edge/files/fluent-bit/scripts/launch-fluent-bit.sh:3:11: note: Double quote to prevent globbing and word splitting. [SC2086]
    /snap-pelion-edge/files/fluent-bit/scripts/launch-fluent-bit.sh:12:6: note: Double quote to prevent globbing and word splitting. [SC2086]
    /snap-pelion-edge/files/fluent-bit/scripts/launch-fluent-bit.sh:12:46: note: Double quote to prevent globbing and word splitting. [SC2086]
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    7b3693e View commit details
    Browse the repository at this point in the history
  11. launch-maestro.sh - fix shellcheck findings, suppress one

    Fixing most, suppressing one due to code readability reasons.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    b21cbc2 View commit details
    Browse the repository at this point in the history
  12. print-versions.sh - fix shellcheck findings

    Just a bunch of quotation, really.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    27ea8bb View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5deeefe View commit details
    Browse the repository at this point in the history
  14. Core18 update + Dockerfile.snapcore, edge-core 0.21.0

    Update to edge-core 0.21.0 (modify patches to match, drop one).
    Update to core18 (which still Python 3.6, so edge-tools will install).
    
    Maestro still craps up.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    01d7bc5 View commit details
    Browse the repository at this point in the history
  15. Update maestro to v3.0.0

    To get rid of the libuv etc. problems.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    bbd3804 View commit details
    Browse the repository at this point in the history
  16. Typo/syntax fix to snap name.

    Co-authored-by: Pete Dyer <[email protected]>
    JanneKiiskila and petedyerarm committed May 3, 2023
    Configuration menu
    Copy the full SHA
    d67229f View commit details
    Browse the repository at this point in the history
  17. fluent-bit config to refer to pe-terminal

    Instead of relay-term, as that has been dropped out.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    145e367 View commit details
    Browse the repository at this point in the history
  18. hook/install - don't stop relay-term

    As we not build it anymore, it's not there to be stopped and
    that prevents the snap from starting up.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    593ab89 View commit details
    Browse the repository at this point in the history
  19. base:core20 support

    Requires multiple changes, as the snapcraft.io guys just want to break
    things. Various keyword changes again and plug-in behavior changes.
    
    golang side
    - only go mod builds are supported by default.
    
    cmake
    - they dropped the default prefix which core18 used.
    
    pe-terminal
    - version info related changes as we dropped relay-term.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    a0a6cad View commit details
    Browse the repository at this point in the history
  20. Get jq into the snap

    Seems something has been changed in the snapcraft autotools
    plugin, which broke jq. This should fix that.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    59fef85 View commit details
    Browse the repository at this point in the history
  21. fluentbit - cmake fix

    Same issue as fix with docker-tini.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    9148b17 View commit details
    Browse the repository at this point in the history
  22. cmake prefix for bouncer

    Same fix as for docker-tini.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    0a797f9 View commit details
    Browse the repository at this point in the history
  23. Change order of parameters passed to edge-core.

    Moved passing the forwarding-addresses to before the optional arguments.
    For some reason the go argument parser was missing the final option.
    petedyerarm authored and JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    495c179 View commit details
    Browse the repository at this point in the history
  24. Fix fluentbit unset variable docker

    We are using the wrong variable, it should be docker_tag (in the
    similar manner as for every other service, too).
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    c700bce View commit details
    Browse the repository at this point in the history
  25. dockerd-wrapper - fix kernel warning for line 11

    We get this error in kernel logs;
    
    pelion-edge.dockerd[134922]: /snap/pelion-edge/x1/bin/dockerd-wrapper: line 11: [: : integer expression expected
    
    This is due to the fact variable name is wrong. It's actually,
    
    aa_profile_reloaded="$SNAP_COMMON/profile_reloaded"
    
    not `aa_profile_refreshed`.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    f56030d View commit details
    Browse the repository at this point in the history
  26. Fix apparmor complaints

    Add a lot of plugs to the snapcraf.yaml to clear out apparmor complaints.
    You can see them easily with snappy-debug and it even advices what you
    should do to fix them. This clears out almost all of them, you will
    still see a few between doing the snap install and running connect.sh,
    but you should not see any after the reboot.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    2456f83 View commit details
    Browse the repository at this point in the history
  27. Revert "upgrade docker v19.03-12 for Pelion Edge 2.2"

    - Add btrfs-tooling for the Dockerfile, that's needed.
    
    This reverts commit e80c9fb.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    c19be1c View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    daf1276 View commit details
    Browse the repository at this point in the history
  29. snapcraft.yml - use relative paths in cni plugins

    To enable building in potential cross-compile or without docker.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    0a49525 View commit details
    Browse the repository at this point in the history
  30. GitHub Action - run on self-hosted

    Same as mbed-edge repo. Each build is 30 minutes, our own will be a lot
    faster.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    ad6db06 View commit details
    Browse the repository at this point in the history
  31. GitHub actions - 1st phases for snap testing

    - add timeout 40 minutes to build job.
    - add Write -property to all files at start (golang has some files sometimes
      with Read Only and this screws up subsequent git clones etc.)
    - This is just installing and removing it, actual tests cannot be run
      as we cannot reboot the GitHub runner during a job (connection gets lost).
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    934cea7 View commit details
    Browse the repository at this point in the history
  32. Build curl from source / process-control plug

    Two (note related changes):
    - build curl from sources (to allow proper cross-compilations)
    - add plug process-control to processes (to close snappy-debug findings, most).
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    2e9f352 View commit details
    Browse the repository at this point in the history
  33. snapcraft.yaml / simplify curl build

    To enable the cross-compilation of it. Otherwise it fails with
    multiple libs missing.
    JanneKiiskila committed May 3, 2023
    Configuration menu
    Copy the full SHA
    cda4815 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2023

  1. pe-utils 2.1.0 / add edge-info and edge-testnet

    Turned out to be a bit trickier than thought due to all of the
    plugs (access) that had to be set up.
    
    You can run these via:
    
    pelion-edge.edge-info
    pelion-edge.edge-testnet
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    a144ccb View commit details
    Browse the repository at this point in the history
  2. Fix curl (libpsl5 dep) and prime for docker-tini

    Got a build warning when doing full clean built that curl was missing
    a dependency.
    
    The syntax is likely also wrong for the prime: section for docker-tini.
    - Surprisingly hard to find an example, but if we look how the other
      files are defined for it - seems we have and extra dash.
    - Docs refer to same rules as with filesets, so it is then this:
      https://snapcraft.io/docs/snapcraft-filesets
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    0f7d580 View commit details
    Browse the repository at this point in the history
  3. Separate parts for edge-info/edge-testnet

    This way we can probably  avoid any mismatches on the command bin/edge-x
    failing. Caveat - version needs to be kept manually in place?
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    65a5965 View commit details
    Browse the repository at this point in the history
  4. Add gawk and bc (for edge-info)

    Edge-info uses these, so most likely the build machine should also
    have these.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    29fa024 View commit details
    Browse the repository at this point in the history
  5. print-versions.sh - remove devicedb

    It's not part of the image anymore, so no point looking for it.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    49b254a View commit details
    Browse the repository at this point in the history
  6. print-versions - remove maestro shell, fix pe-utils version print

    Maestro-shell does not seem to exist anymore, either.
    The path was wrong for the pe-utils (we have the version in the
    identity-tools).
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    f9bf61e View commit details
    Browse the repository at this point in the history
  7. GH Act - run pelion-edge.commands in tests

    Run the edge-info, version and edge-testnet as well.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    668c0e5 View commit details
    Browse the repository at this point in the history
  8. pe-utils/version.json - make version make sense

    It has now a dummy 0.0.1 version - it should really follow the
    releases we make instead.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    5040bf3 View commit details
    Browse the repository at this point in the history
  9. Align version.json -> versions.json

    The file is slightly different here vs. other places. Align
    to versions.json.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    372ff9a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    abb25f5 View commit details
    Browse the repository at this point in the history
  11. Update edge-proxy to v1.3.0

    Pull in latest release.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    5c0ba80 View commit details
    Browse the repository at this point in the history
  12. GH Action - make snap file name more tolerant for version changes

    Look up the file under the folder and pick 1st match. The
    ls command should give you just one file anyway, as we only build one file.
    The name however changes per version.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    09d537d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2ccabf1 View commit details
    Browse the repository at this point in the history
  14. help - just echo help, get rid of .md -file

    No point in having an .MD-file, as it cannot do any of the env variable
    replacements, which make sense for this use-case.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    636273a View commit details
    Browse the repository at this point in the history
  15. GitHub Action - ensure alignment of pe-utils/info/testnet

    By checking their source-commits (and/or) tags are the same.
    There is no apt package for yq available for Ubuntu 22.04... :-/
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    08e2c9a View commit details
    Browse the repository at this point in the history
  16. GH Action: snap list / snap services

    Seems our snap isn't really running in the runner.
    
    Merge the steps into one, seems snap-pelion-edge is not
    running in the next step anymore.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    d29e86c View commit details
    Browse the repository at this point in the history
  17. pe-utils 2.2.0 & fixes to version

    Take the latest pe-utils into use and also fix the version.
    - Do not print component versions that do not exist (devicedb)
    - Print out version of new components.
    
    You can run these via
       pelion-edge.version
       pelion-edge.edge-info
       pelion-edge.edge-testnet
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    16f9684 View commit details
    Browse the repository at this point in the history
  18. GHAction - add test for version consistency

    We do unfortunately (at least right now) pick up the version via
    2 different means, they need to be kept in sync.
    
    files/pe-utils/versions.json:    "version" : "2.6.0-dev"
    snap/snapcraft.yaml:version: "2.6.0-dev"
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    948d7b6 View commit details
    Browse the repository at this point in the history
  19. Fix pe-utils alignment check

    It did not really work as expected. This one works at least as a
    standalone bash script.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    a524e62 View commit details
    Browse the repository at this point in the history
  20. use --always with git describe

    That way it has somewhere to fallback as the CI build failed with:
    
    + install -d /build/parts/fluent-bit/install/edge
    + git describe --tags
    fatal: No names found, cannot describe anything.
    Failed to run 'override-build': Exit code was 128.
    
    Didn't see this on my local runs, though. But this should
    ensure we never fail with that. If it can't find a tag, it
    uses the hash OR previous tag + commits on top/hash.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    ec9b9a2 View commit details
    Browse the repository at this point in the history
  21. GH Action - use sudo with snap install yq

    Requires sudo.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    34ac36e View commit details
    Browse the repository at this point in the history
  22. GHAction - checkout code before checking version

    Ah, the test phase does not have the code available (and thus
    snap/snapcraft.yaml -file).
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    7ff1843 View commit details
    Browse the repository at this point in the history
  23. GHAction - snap delete fails due to being in wrong folder

    The checkout action apparently changes the folder as well, thus
    it can't find the scripts-internal.
    JanneKiiskila committed May 17, 2023
    Configuration menu
    Copy the full SHA
    3956591 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. GitHub action / yamllint

    Linting for the yaml file to rule out most obvious mistakes.
    - The rules are very relaxed in a way, since snapcraft.yaml is not exactly
      100% yaml compatible.
    - The line lenghts are also going to have to be very relaxed.
    JanneKiiskila committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    cca404a View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. Update pe-utils to 2.3.0

    That is edge-info, edge-testnet and so forth...
    JanneKiiskila committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    62828d4 View commit details
    Browse the repository at this point in the history
  2. edge-core-bootloader - typos in handling type

    We have a naughty typo here, which breaks the script actually.
    type is not handled correctly, as we use respone instead of $response.
    Fix another typo while at it.
    JanneKiiskila committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    3005765 View commit details
    Browse the repository at this point in the history
  3. shellcheck fixes to edge-core-bootloader.sh

    This fixes all known shellcheck fixes. Some of them were real
    bugs, for example the
    
    - assignment of rc with spaces (will not work)
    - comparising without spaces (will not work, either)
    
    Rest of them are more like style issues.
    JanneKiiskila committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    abf49f0 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. PR - build also with manual trigger, use checkout v4

    Enable manual builds with given branch.
    
    Update checkout to latest version.
    JanneKiiskila committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    c16fdd3 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. Normalise snap/snapcraft.yaml with yq

    The contents should be exactly the same, we're just rolling it through
    yq to make it normalise the content. This makes future yq operations
    more friendly for diffing.
    
    Beyond Compare works well for spotting any content changes.
    JanneKiiskila committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    3dbbdca View commit details
    Browse the repository at this point in the history
  2. GitHub action - yamllint now also verifies yq compliancy

    Run through the snapcraft.yaml via yq and see the result matches
    the original.
    JanneKiiskila committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    c245c50 View commit details
    Browse the repository at this point in the history
  3. snapcraft.yaml - upgrade curl to 8.5.0

    Update curl to latest version.
    JanneKiiskila committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    2425592 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. Update pe-utils/edge-info/edge-testnet to 2.3.1

    This pulls in the echo $NORM fix to edge-info. We do want
    to keep the versions in sync, though.
    JanneKiiskila committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    5d54005 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Configuration menu
    Copy the full SHA
    d403b3a View commit details
    Browse the repository at this point in the history
  2. One more tab hiding...

    JanneKiiskila committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    d99f9c5 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. Update pe-utils to 2.3.3

    We have updated the edge-testnet command, let's pull it in.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    9e0c8e6 View commit details
    Browse the repository at this point in the history
  2. Fix pysh-check in GitHub action

    Use the github action checkout while at it.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    bd41e10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3344c76 View commit details
    Browse the repository at this point in the history
  4. Rename pysh-check job

    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    6e16e4d View commit details
    Browse the repository at this point in the history
  5. snap/snapcraft.yaml - set -ex added to edge-tool

    To perhaps a bit better highlight why it's failing.
    For some reason it can't execute:
    
    ```
    2024-02-23T12:26:52.6318145Z Building edge-core-tool
    2024-02-23T12:26:53.7942185Z + '[' devel = devel ']'
    2024-02-23T12:26:53.7948577Z + snapcraftctl build
    2024-02-23T12:26:54.7042119Z + python3 -m venv /build/parts/edge-core-tool/install
    2024-02-23T12:26:55.3181545Z Error: Command '['/build/parts/edge-core-tool/install/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
    2024-02-23T12:26:55.3354171Z Failed to build 'edge-core-tool'.
    2024-02-23T12:26:55.3358277Z
    ```
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    0b1c4b5 View commit details
    Browse the repository at this point in the history
  6. Dockerfile - fix snapcraft version to 7.5.3

    This one works at least for me, locally.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    9b6ce2a View commit details
    Browse the repository at this point in the history
  7. Dockerfile - pull 7.x/stable snapcraft

    This should get us 7.5.4 (or another minor version) instead of
    going to 8.x which seems to break things.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    26bd6ee View commit details
    Browse the repository at this point in the history
  8. Update actions/checkout@v3->v4

    To keep up with GitHub node16 deprecation.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    e8cadc6 View commit details
    Browse the repository at this point in the history
  9. Rename align-pe-utils.yml workflow

    As we had two jobs called "Build" that made it rather confusing.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    178388a View commit details
    Browse the repository at this point in the history
  10. Run build on snap-labeled build machine

    Separate snap-builders wanted/needed.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    a7e06c1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3b2feb2 View commit details
    Browse the repository at this point in the history
  12. Dockerfile - optimize - leave out core22

    We do not use core22, so no point in downloading it and copying it over.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    20a7e19 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e62d7c7 View commit details
    Browse the repository at this point in the history
  14. Make snap restart conditional (do not fail)

    Do issue a warning in the logs.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    0349d3d View commit details
    Browse the repository at this point in the history
  15. Fix log upload

    I hope at least.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    ce1e7c9 View commit details
    Browse the repository at this point in the history
  16. Upgrade actions out of node16

    We get lots of deprecation notes now due to node16 being deprecated
    in GitHub.
    JanneKiiskila committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    46fa33f View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    bace0bb View commit details
    Browse the repository at this point in the history
  2. Move jobs to client, build job to "snap" labeled runner

    Seems if we have ["self-hosted", "snap"] it can choose also
    just self-hosted (which does not look right to me). We had just
    a job land at the NUC, which is definitely NOT capable to build
    the snap in any sensible time.
    JanneKiiskila committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    06b056c View commit details
    Browse the repository at this point in the history
  3. Run yamllint on GitHub hosted runner

    The client runners do not have snap, so that they could install yq
    via that way.
    JanneKiiskila committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    09c38fc View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. build - remove timeout 40 minutes

    Seems we can exceed it easily, if mercury is too loaded.
    JanneKiiskila committed May 2, 2024
    Configuration menu
    Copy the full SHA
    2dc7833 View commit details
    Browse the repository at this point in the history
  2. sudo apt-get with -y

    to avoid waits for confirmation from the user (which isn't coming).
    JanneKiiskila committed May 2, 2024
    Configuration menu
    Copy the full SHA
    7c3b683 View commit details
    Browse the repository at this point in the history
  3. Upgrade pe-utils to 2.3.5

    This fixes the ping problem we're having with Canonical now.
    JanneKiiskila committed May 2, 2024
    Configuration menu
    Copy the full SHA
    9c4d2ab View commit details
    Browse the repository at this point in the history