-
Notifications
You must be signed in to change notification settings - Fork 5
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
Merge dev to master #435
Commits on Nov 16, 2021
-
Socket proxy is part of the container signing feature. It will proxy the docker unix socket and eventually filter messages.
Configuration menu - View commit details
-
Copy full SHA for 0a658c0 - Browse repository at this point
Copy the full SHA 0a658c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c18f209 - Browse repository at this point
Copy the full SHA c18f209View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a464f3 - Browse repository at this point
Copy the full SHA 7a464f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c69cb48 - Browse repository at this point
Copy the full SHA c69cb48View commit details
Commits on Nov 17, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for b35b722 - Browse repository at this point
Copy the full SHA b35b722View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f202c50 - Browse repository at this point
Copy the full SHA f202c50View commit details -
Hook up kubelet sock path for bouncer
Use bouncer proxy socket path instead of docker socket when image signing is enabled.
Configuration menu - View commit details
-
Copy full SHA for e9c1c30 - Browse repository at this point
Copy the full SHA e9c1c30View commit details -
Fix logic for signing-mode socket selection
Signed-off-by: Cristian Prundeanu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3669e67 - Browse repository at this point
Copy the full SHA 3669e67View commit details
Commits on Nov 18, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 5361f26 - Browse repository at this point
Copy the full SHA 5361f26View commit details
Commits on Nov 23, 2021
-
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
Configuration menu - View commit details
-
Copy full SHA for 2910196 - Browse repository at this point
Copy the full SHA 2910196View commit details
Commits on Nov 29, 2021
-
Add multiple connections support.
Configuration menu - View commit details
-
Copy full SHA for 577b3c6 - Browse repository at this point
Copy the full SHA 577b3c6View commit details -
use devicedb tag instead of SHA
The version is the same, we just reference the tag name instead of the SHA.
Configuration menu - View commit details
-
Copy full SHA for 066ca9b - Browse repository at this point
Copy the full SHA 066ca9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffea43d - Browse repository at this point
Copy the full SHA ffea43dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 5e9c945 - Browse repository at this point
Copy the full SHA 5e9c945View commit details -
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/
Configuration menu - View commit details
-
Copy full SHA for ee6d54d - Browse repository at this point
Copy the full SHA ee6d54dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e564e48 - Browse repository at this point
Copy the full SHA e564e48View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 71d54f0 - Browse repository at this point
Copy the full SHA 71d54f0View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f8281a9 - Browse repository at this point
Copy the full SHA f8281a9View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4148cf3 - Browse repository at this point
Copy the full SHA 4148cf3View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0c94aa7 - Browse repository at this point
Copy the full SHA 0c94aa7View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 67214e4 - Browse repository at this point
Copy the full SHA 67214e4View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 319ed97 - Browse repository at this point
Copy the full SHA 319ed97View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6587b97 - Browse repository at this point
Copy the full SHA 6587b97View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for e692843 - Browse repository at this point
Copy the full SHA e692843View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a9d8854 - Browse repository at this point
Copy the full SHA a9d8854View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a32064b - Browse repository at this point
Copy the full SHA a32064bView commit details -
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+
Configuration menu - View commit details
-
Copy full SHA for 9797cb2 - Browse repository at this point
Copy the full SHA 9797cb2View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a82d1d8 - Browse repository at this point
Copy the full SHA a82d1d8View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 47328b5 - Browse repository at this point
Copy the full SHA 47328b5View commit details
Commits on Nov 30, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 485a271 - Browse repository at this point
Copy the full SHA 485a271View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for be44d16 - Browse repository at this point
Copy the full SHA be44d16View commit details
Commits on Dec 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4086604 - Browse repository at this point
Copy the full SHA 4086604View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e9644e - Browse repository at this point
Copy the full SHA 3e9644eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 596995a - Browse repository at this point
Copy the full SHA 596995aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e51908a - Browse repository at this point
Copy the full SHA e51908aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 952a758 - Browse repository at this point
Copy the full SHA 952a758View commit details
Commits on Dec 10, 2021
-
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 committedDec 10, 2021 Configuration menu - View commit details
-
Copy full SHA for 1f9c045 - Browse repository at this point
Copy the full SHA 1f9c045View commit details
Commits on Dec 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 34c9abb - Browse repository at this point
Copy the full SHA 34c9abbView commit details
Commits on Dec 17, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for e551883 - Browse repository at this point
Copy the full SHA e551883View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 9f944fe - Browse repository at this point
Copy the full SHA 9f944feView commit details
Commits on May 3, 2023
-
pysh fixes - tabs to spaces conversion
All tabs to 4 spaces found by pysh-check. Add Izuma copyrights where applicable.
Configuration menu - View commit details
-
Copy full SHA for f5ce653 - Browse repository at this point
Copy the full SHA f5ce653View commit details -
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]
Configuration menu - View commit details
-
Copy full SHA for 537a2d4 - Browse repository at this point
Copy the full SHA 537a2d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a7f75d - Browse repository at this point
Copy the full SHA 4a7f75dView commit details -
GitHub action - pysh check & fix checkout to v3
v2 checkout is deprecated.
Configuration menu - View commit details
-
Copy full SHA for 98a849b - Browse repository at this point
Copy the full SHA 98a849bView commit details -
/ssd/snap-pelion-edge/snap/hooks/install:25:24: note: Double quote to prevent globbing and word splitting. [SC2086]
Configuration menu - View commit details
-
Copy full SHA for eaa8482 - Browse repository at this point
Copy the full SHA eaa8482View commit details -
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]
Configuration menu - View commit details
-
Copy full SHA for 0362732 - Browse repository at this point
Copy the full SHA 0362732View commit details -
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]
Configuration menu - View commit details
-
Copy full SHA for 80e430e - Browse repository at this point
Copy the full SHA 80e430eView commit details -
launch-edge-proxy.sh - fix MOST shellcheck warnings
One instance still remains, the last line - it's just a monster.
Configuration menu - View commit details
-
Copy full SHA for 19e605f - Browse repository at this point
Copy the full SHA 19e605fView commit details -
launch-pelion-identity.sh - fix shellcheck findings
Some quotation fixes.
Configuration menu - View commit details
-
Copy full SHA for d879746 - Browse repository at this point
Copy the full SHA d879746View commit details -
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]
Configuration menu - View commit details
-
Copy full SHA for 7b3693e - Browse repository at this point
Copy the full SHA 7b3693eView commit details -
launch-maestro.sh - fix shellcheck findings, suppress one
Fixing most, suppressing one due to code readability reasons.
Configuration menu - View commit details
-
Copy full SHA for b21cbc2 - Browse repository at this point
Copy the full SHA b21cbc2View commit details -
print-versions.sh - fix shellcheck findings
Just a bunch of quotation, really.
Configuration menu - View commit details
-
Copy full SHA for 27ea8bb - Browse repository at this point
Copy the full SHA 27ea8bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5deeefe - Browse repository at this point
Copy the full SHA 5deeefeView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 01d7bc5 - Browse repository at this point
Copy the full SHA 01d7bc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbd3804 - Browse repository at this point
Copy the full SHA bbd3804View commit details -
Co-authored-by: Pete Dyer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d67229f - Browse repository at this point
Copy the full SHA d67229fView commit details -
fluent-bit config to refer to pe-terminal
Instead of relay-term, as that has been dropped out.
Configuration menu - View commit details
-
Copy full SHA for 145e367 - Browse repository at this point
Copy the full SHA 145e367View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 593ab89 - Browse repository at this point
Copy the full SHA 593ab89View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a0a6cad - Browse repository at this point
Copy the full SHA a0a6cadView commit details -
Seems something has been changed in the snapcraft autotools plugin, which broke jq. This should fix that.
Configuration menu - View commit details
-
Copy full SHA for 59fef85 - Browse repository at this point
Copy the full SHA 59fef85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9148b17 - Browse repository at this point
Copy the full SHA 9148b17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a797f9 - Browse repository at this point
Copy the full SHA 0a797f9View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 495c179 - Browse repository at this point
Copy the full SHA 495c179View commit details -
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).
Configuration menu - View commit details
-
Copy full SHA for c700bce - Browse repository at this point
Copy the full SHA c700bceView commit details -
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`.
Configuration menu - View commit details
-
Copy full SHA for f56030d - Browse repository at this point
Copy the full SHA f56030dView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 2456f83 - Browse repository at this point
Copy the full SHA 2456f83View commit details -
Revert "upgrade docker v19.03-12 for Pelion Edge 2.2"
- Add btrfs-tooling for the Dockerfile, that's needed. This reverts commit e80c9fb.
Configuration menu - View commit details
-
Copy full SHA for c19be1c - Browse repository at this point
Copy the full SHA c19be1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for daf1276 - Browse repository at this point
Copy the full SHA daf1276View commit details -
snapcraft.yml - use relative paths in cni plugins
To enable building in potential cross-compile or without docker.
Configuration menu - View commit details
-
Copy full SHA for 0a49525 - Browse repository at this point
Copy the full SHA 0a49525View commit details -
GitHub Action - run on self-hosted
Same as mbed-edge repo. Each build is 30 minutes, our own will be a lot faster.
Configuration menu - View commit details
-
Copy full SHA for ad6db06 - Browse repository at this point
Copy the full SHA ad6db06View commit details -
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).
Configuration menu - View commit details
-
Copy full SHA for 934cea7 - Browse repository at this point
Copy the full SHA 934cea7View commit details -
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).
Configuration menu - View commit details
-
Copy full SHA for 2e9f352 - Browse repository at this point
Copy the full SHA 2e9f352View commit details -
snapcraft.yaml / simplify curl build
To enable the cross-compilation of it. Otherwise it fails with multiple libs missing.
Configuration menu - View commit details
-
Copy full SHA for cda4815 - Browse repository at this point
Copy the full SHA cda4815View commit details
Commits on May 17, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for a144ccb - Browse repository at this point
Copy the full SHA a144ccbView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0f7d580 - Browse repository at this point
Copy the full SHA 0f7d580View commit details -
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?
Configuration menu - View commit details
-
Copy full SHA for 65a5965 - Browse repository at this point
Copy the full SHA 65a5965View commit details -
Add gawk and bc (for edge-info)
Edge-info uses these, so most likely the build machine should also have these.
Configuration menu - View commit details
-
Copy full SHA for 29fa024 - Browse repository at this point
Copy the full SHA 29fa024View commit details -
print-versions.sh - remove devicedb
It's not part of the image anymore, so no point looking for it.
Configuration menu - View commit details
-
Copy full SHA for 49b254a - Browse repository at this point
Copy the full SHA 49b254aView commit details -
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).
Configuration menu - View commit details
-
Copy full SHA for f9bf61e - Browse repository at this point
Copy the full SHA f9bf61eView commit details -
GH Act - run pelion-edge.commands in tests
Run the edge-info, version and edge-testnet as well.
Configuration menu - View commit details
-
Copy full SHA for 668c0e5 - Browse repository at this point
Copy the full SHA 668c0e5View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 5040bf3 - Browse repository at this point
Copy the full SHA 5040bf3View commit details -
Align version.json -> versions.json
The file is slightly different here vs. other places. Align to versions.json.
Configuration menu - View commit details
-
Copy full SHA for 372ff9a - Browse repository at this point
Copy the full SHA 372ff9aView commit details -
To be what it was exactly at 1.21-version. https://github.com/PelionIoT/snap-pelion-edge/blob/v1.21.2/snap/snapcraft.yaml#L703C13-L704
Configuration menu - View commit details
-
Copy full SHA for abb25f5 - Browse repository at this point
Copy the full SHA abb25f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c0ba80 - Browse repository at this point
Copy the full SHA 5c0ba80View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 09d537d - Browse repository at this point
Copy the full SHA 09d537dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ccabf1 - Browse repository at this point
Copy the full SHA 2ccabf1View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 636273a - Browse repository at this point
Copy the full SHA 636273aView commit details -
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... :-/
Configuration menu - View commit details
-
Copy full SHA for 08e2c9a - Browse repository at this point
Copy the full SHA 08e2c9aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for d29e86c - Browse repository at this point
Copy the full SHA d29e86cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 16f9684 - Browse repository at this point
Copy the full SHA 16f9684View commit details -
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"
Configuration menu - View commit details
-
Copy full SHA for 948d7b6 - Browse repository at this point
Copy the full SHA 948d7b6View commit details -
It did not really work as expected. This one works at least as a standalone bash script.
Configuration menu - View commit details
-
Copy full SHA for a524e62 - Browse repository at this point
Copy the full SHA a524e62View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ec9b9a2 - Browse repository at this point
Copy the full SHA ec9b9a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34ac36e - Browse repository at this point
Copy the full SHA 34ac36eView commit details -
GHAction - checkout code before checking version
Ah, the test phase does not have the code available (and thus snap/snapcraft.yaml -file).
Configuration menu - View commit details
-
Copy full SHA for 7ff1843 - Browse repository at this point
Copy the full SHA 7ff1843View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3956591 - Browse repository at this point
Copy the full SHA 3956591View commit details
Commits on Oct 18, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for cca404a - Browse repository at this point
Copy the full SHA cca404aView commit details
Commits on Oct 19, 2023
-
That is edge-info, edge-testnet and so forth...
Configuration menu - View commit details
-
Copy full SHA for 62828d4 - Browse repository at this point
Copy the full SHA 62828d4View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3005765 - Browse repository at this point
Copy the full SHA 3005765View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for abf49f0 - Browse repository at this point
Copy the full SHA abf49f0View commit details
Commits on Oct 24, 2023
-
PR - build also with manual trigger, use checkout v4
Enable manual builds with given branch. Update checkout to latest version.
Configuration menu - View commit details
-
Copy full SHA for c16fdd3 - Browse repository at this point
Copy the full SHA c16fdd3View commit details
Commits on Dec 13, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 3dbbdca - Browse repository at this point
Copy the full SHA 3dbbdcaView commit details -
GitHub action - yamllint now also verifies yq compliancy
Run through the snapcraft.yaml via yq and see the result matches the original.
Configuration menu - View commit details
-
Copy full SHA for c245c50 - Browse repository at this point
Copy the full SHA c245c50View commit details -
snapcraft.yaml - upgrade curl to 8.5.0
Update curl to latest version.
Configuration menu - View commit details
-
Copy full SHA for 2425592 - Browse repository at this point
Copy the full SHA 2425592View commit details
Commits on Dec 18, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 5d54005 - Browse repository at this point
Copy the full SHA 5d54005View commit details
Commits on Feb 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d403b3a - Browse repository at this point
Copy the full SHA d403b3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d99f9c5 - Browse repository at this point
Copy the full SHA d99f9c5View commit details
Commits on Feb 27, 2024
-
We have updated the edge-testnet command, let's pull it in.
Configuration menu - View commit details
-
Copy full SHA for 9e0c8e6 - Browse repository at this point
Copy the full SHA 9e0c8e6View commit details -
Fix pysh-check in GitHub action
Use the github action checkout while at it.
Configuration menu - View commit details
-
Copy full SHA for bd41e10 - Browse repository at this point
Copy the full SHA bd41e10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3344c76 - Browse repository at this point
Copy the full SHA 3344c76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e16e4d - Browse repository at this point
Copy the full SHA 6e16e4dView commit details -
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 ```
Configuration menu - View commit details
-
Copy full SHA for 0b1c4b5 - Browse repository at this point
Copy the full SHA 0b1c4b5View commit details -
Dockerfile - fix snapcraft version to 7.5.3
This one works at least for me, locally.
Configuration menu - View commit details
-
Copy full SHA for 9b6ce2a - Browse repository at this point
Copy the full SHA 9b6ce2aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 26bd6ee - Browse repository at this point
Copy the full SHA 26bd6eeView commit details -
Update actions/checkout@v3->v4
To keep up with GitHub node16 deprecation.
Configuration menu - View commit details
-
Copy full SHA for e8cadc6 - Browse repository at this point
Copy the full SHA e8cadc6View commit details -
Rename align-pe-utils.yml workflow
As we had two jobs called "Build" that made it rather confusing.
Configuration menu - View commit details
-
Copy full SHA for 178388a - Browse repository at this point
Copy the full SHA 178388aView commit details -
Run build on snap-labeled build machine
Separate snap-builders wanted/needed.
Configuration menu - View commit details
-
Copy full SHA for a7e06c1 - Browse repository at this point
Copy the full SHA a7e06c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b2feb2 - Browse repository at this point
Copy the full SHA 3b2feb2View commit details -
Dockerfile - optimize - leave out core22
We do not use core22, so no point in downloading it and copying it over.
Configuration menu - View commit details
-
Copy full SHA for 20a7e19 - Browse repository at this point
Copy the full SHA 20a7e19View commit details -
Configuration menu - View commit details
-
Copy full SHA for e62d7c7 - Browse repository at this point
Copy the full SHA e62d7c7View commit details -
Make snap restart conditional (do not fail)
Do issue a warning in the logs.
Configuration menu - View commit details
-
Copy full SHA for 0349d3d - Browse repository at this point
Copy the full SHA 0349d3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce1e7c9 - Browse repository at this point
Copy the full SHA ce1e7c9View commit details -
We get lots of deprecation notes now due to node16 being deprecated in GitHub.
Configuration menu - View commit details
-
Copy full SHA for 46fa33f - Browse repository at this point
Copy the full SHA 46fa33fView commit details
Commits on Apr 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bace0bb - Browse repository at this point
Copy the full SHA bace0bbView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 06b056c - Browse repository at this point
Copy the full SHA 06b056cView commit details -
Run yamllint on GitHub hosted runner
The client runners do not have snap, so that they could install yq via that way.
Configuration menu - View commit details
-
Copy full SHA for 09c38fc - Browse repository at this point
Copy the full SHA 09c38fcView commit details
Commits on May 2, 2024
-
build - remove timeout 40 minutes
Seems we can exceed it easily, if mercury is too loaded.
Configuration menu - View commit details
-
Copy full SHA for 2dc7833 - Browse repository at this point
Copy the full SHA 2dc7833View commit details -
to avoid waits for confirmation from the user (which isn't coming).
Configuration menu - View commit details
-
Copy full SHA for 7c3b683 - Browse repository at this point
Copy the full SHA 7c3b683View commit details -
This fixes the ping problem we're having with Canonical now.
Configuration menu - View commit details
-
Copy full SHA for 9c4d2ab - Browse repository at this point
Copy the full SHA 9c4d2abView commit details