Commit graph

593 commits

Author SHA1 Message Date
Anas Nashif 1881ed2a17 ci: remove footprint ci workflow that has no effect
This workflow runs in the background and does not report anything and
does emit failures. Remove for now until we have something that is
actionable.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-06 15:39:01 -05:00
Stephanos Ioannidis eb144c05fe ci: Switch to CI image v0.26.7
This commit updates the CI workflows to use the CI image v0.26.7, in order
to pull in the Zephyr SDK 0.16.5 release.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2024-02-02 08:37:35 -05:00
Fabio Baltieri 131b97956f github: hello_world_multiplatform: run on macOS ARM
Seems like GitHub introduced a macOS on ARM runner, add it to the
multiplatform test, with this we are running all the SDKs minus the
Linux ARM64 one.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-02-02 12:42:38 +01:00
Fabio Baltieri 9c038c6c34 github: hello_world_multiplatform: update standard action version
Align the standard action versions with the other workflows, those have
been updated in 0dcb0518be but this file was merged after.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-02-01 14:31:35 +00:00
Fabio Baltieri 86568638fa github: hello_world_multiplatform: run on SDK_VERSION changes
Add the SDK_VERSION file to the pathlist for running the workflow on
pull requests.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-02-01 14:31:35 +00:00
Arkadiusz Cholewinski 9cd0ad0ae4 ci: codecov: stick with gcovr 6.0 for now
gcovr 7.0 has some incompatible format, stick with 6.0 for now.

Signed-off-by: Arkadiusz Cholewinski <arkadiuszx.cholewinski@intel.com>
2024-02-01 10:39:20 +01:00
Anas Nashif 197336c83f ci: codecov: stick with gcovr 6.0 for now
gcovr 7.0 has some incompatible format, stick with 6.0 for now until we
have a compatible solution with gcovr 7.0 output.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-01-31 07:17:18 -05:00
Lukasz Mrugala 1826e22334 .github: workflows: Add test trigger for pytest harness
Pytest twister harness tests have been added to the
twister_tests.yml workflow some time ago.

However, the $ZEPHYR_BASE/scripts/pylib/pytest-twister-harness/**
has not been monitored by the automatic GitHub Action triggers
of that workflow.

This change adds monitoring for the relevant files.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2024-01-30 20:38:07 -05:00
Jordan Yates 0dcb0518be ci: update Github actions versions
Update Github actions to their latest versions to fix the following
warnings on runs:
```
Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/checkout@v3, actions/cache@v3,
actions/upload-artifact@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
```

`actions/checkout` and `actions/cache` are straight Node version
upgrades, `actions/upload-artifact` and `actions/download-artifact` have
breaking changes, but don't appear to affect our usage.
https://github.com/actions/upload-artifact

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2024-01-30 18:51:12 -05:00
Fabio Baltieri f65f6e5279 github: add a multiplatform hello world workflow
Add a new workflow to build the hello world sample application on all
three supported platforms using the reusable setup action.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-29 08:31:53 -06:00
Anas Nashif 4ae4217e58 ci: run assigner bot on collab branches
Get more reviewers added to make sure we have all relevant reviewers
looking at changes targeting collab branches.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-01-29 11:33:23 +01:00
Anas Nashif 9194a93d87 ci: compliance: exclude optional modules during compliance check
We should not have any dependencies on optional modules, for example on
Kconfigs from optional modules. Compliance has to pass without any
optional modules enabled.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-01-26 09:43:55 +01:00
Fabio Baltieri 979e7a6c56 github: footprint: set ZEPHYR_SDK_INSTALL_DIR after the rebase
The ZEPHYR_SDK_INSTALL_DIR currently tries to read the SDK_VERSION at
the PR base ref, but this has only been introduced recently. Move the
ZEPHYR_SDK_INSTALL_DIR settings down as part of the build step after the
rebase so the file will always be found from now, even on old PRs.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-18 11:29:07 +00:00
Fabio Baltieri 6529e316a5 workflows: find the SDK version from the top level SDK_VERSION file
Drop all hardcoded ZEPHYR_SDK_INSTALL_DIR settings, set the variable
automatically from the SDK_VERSION file instead.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-18 10:54:20 +01:00
Alberto Escolar Piedras 53c121381f CI bsim workflow: Add UART tests to the bsim workflow
Add new workflow steps to the babblesim workflow to run
also the UART tests on the nrf52_bsim.
This commit:
* Enables the single device tests (which we may
move to the normal twister workflow once we fix the
requirement for a fixture)
* Adds as a placeholder the infra for multidevice tests.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-01-16 14:55:07 -05:00
Anas Nashif 0a50cb9179 ci: pr stats: define elasticsearch index as a repo variable
Add flexibility to change and modify index using a variable.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-01-12 21:35:04 -05:00
Anas Nashif 29a4e04143 ci: update elasticsearch index with merged PR data
A simple workflow that runs when a PR is merged and updates the
elasticsearch index with merged PR info.
The dashboard for displaying the information can be found here:

https://kibana.zephyrproject.io/

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-01-10 16:39:04 -05:00
Anas Nashif 37560fefea ci: use kitaware ninja with job server support
Needed for full functionality of the job server in twister
which only works with kitware supplied ninja version.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-01-09 11:52:15 -05:00
Fabio Baltieri a006ad5399 ci: do_not_merge: check for dev and arch review labels as well
Add "Architecture Review" and "dev-review" to the list of labels that
block a PR from merging, less chances to merge these before discussion
unintentionally.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-08 15:03:04 -05:00
Alberto Escolar Piedras 71c549e908 CI bsim workflow: Update changed-files action version
Dependabot has foud in a fork that we are using
a too old GitHub action version, which contains this
vulnerability:
https://www.cve.org/CVERecord?id=CVE-2023-51664
https://github.com/tj-actions/changed-files/security/advisories/GHSA-mcph-m25j-8j63

We do not use the output listing all changed files,
so we should not be exposed, but nonetheless,
let's update it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-01-05 09:05:58 +01:00
Anas Nashif 0175f9627b ci: codecov: increase stack size for tests
Increase stack size for tests and exclude nono libc scenarios causing
some issues with coverage collection.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-21 09:18:44 +01:00
Anas Nashif 8bfa8556b0 ci: codecov: add mps2_an385 as a coverage platform
Add one more ARM based platform to get more code coverage.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-21 09:18:44 +01:00
Anas Nashif f772bd1106 ci: codecov: use gcovr and upload cobertura style file
Use gcovr to generate reports and upload cobertura style file instead of
previously lcov info file.

We have been seeing issues with lcov format and code being reporting as
not covered although by inspecting the generate output files, they
should be.

The XML format we generate is otherwise easier to parse and deal with.

Also reduce frequency to twice a day.

Fixes #66656

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-21 09:18:44 +01:00
Anas Nashif 52b8858e82 ci: upload merged coverage file as artifact
Upload merged coverage file as artifact for verification and inspection.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-18 16:51:23 -05:00
Alberto Escolar Piedras 861131795c CI codecov workflow: Switch to native_sim
Switch from native_posix to native_sim as test platform
for this workflow.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-30 09:42:25 -05:00
Alberto Escolar Piedras 9971027d0b CI clang workflow: Switch to native_sim
Switch from native_posix to native_sim as test platform
for this workflow.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-30 09:42:25 -05:00
Daniel Baluta d6329386e9 ci: use zephyr SDK 0.16.4
This commit update CI workflows  to use CI image v0.26.6 in order
to pull Zephyr SDK 0.16.4

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2023-11-30 14:49:54 +09:00
Fabio Baltieri 9521371157 ci: twister: store the list of python packages
Add a step to the first twister shard to upload the list of Python
packages used with the build.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-11-28 19:37:41 -05:00
Benjamin Cabé 199743de01 ci: hotfix: Use latest version of greetings action
This fixes a bug with the action's Docker container apparently not being
able to run Node correctly anymore...

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-11-24 10:38:25 +00:00
Anas Nashif 21366fea19 ci: do not mark coverity issues as stale
Coverity issues need to be resolved and closed by owners, not by the
bot. Other wise we will continue scanning them and reporting them over
and over.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-17 08:41:30 +01:00
Fabio Baltieri 35e9104de7 ci: doc-build: add the container owner workaround step
Seems like the PDF build hit the "detected dubious ownership in
repository" issue that has already been worked around in other workflow.
Add that step here as well.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-11-09 18:54:26 +00:00
Fabio Baltieri 62b0153249 ci: doc-build: only rebase on pull requests
Skip the rebase step if it's not a pull request. Schedule and push runs
have no base ref to rebase against anyway, currently the step is failing
and being skipped.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-11-09 18:54:26 +00:00
Lukasz Mrugala 72045afe1a .github: workflows: Expand Twister Unit Tests' requirements
Hardwaremap testing requires installing requirements-run-tests.txt.
This change adds that to the relevant workflow.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2023-11-06 10:08:44 +01:00
Carles Cufi fe5fd5b205 actions: manifest: Upgrade to 1.2.2
Use revision 1.2.2 which comes with an additional bugfix.

See https://github.com/zephyrproject-rtos/action-manifest/pull/11.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-11-03 09:58:15 +01:00
Alberto Escolar Piedras 464435e22b CI bsim workflow: Also run some split BT stack tests
Also run some split BT stack tests on the nrf5340 platform
to test this configuration.

Move the selection of which BT tests are built and run
in each platform to files in the tests/bsim/ folder.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-31 09:31:42 -05:00
Fabio Baltieri 639d1f803b github: compliance: fix python cache keys
The compliance and coding guidelines workflows are using the same pip
cache key, but they install a different set of packages. This is
probably a copy paste error from the documentation build workflow, which
has been changed to use a hash, and is causing one of the two steps to
restore from a incorrect cache.

Fix this by using a hash of the workflow file itself as a key, as that's
where the python package list is defined.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-31 10:25:50 +01:00
Fabio Baltieri 2dcb1280a5 ci: compliance: fetch only the last revision and skip tags
Add some west update flags to do a shallow fetch of the modules and
skip the tags. That data is not needed anyway, should make the
compliance check initialization a bit faster.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-30 09:26:56 +01:00
Carles Cufi 09f6800d1f actions: manifest: Update the revision of the manifest action
Pull in https://github.com/zephyrproject-rtos/action-manifest/pull/10.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-10-28 16:22:28 -04:00
Anas Nashif bad87f1684 ci: publish api docs and coverage as well
Also API coverage reports to both PRs and main documentation site.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-26 10:12:36 -04:00
Henrik Brix Andersen 9b851b2ab8 ci: test using Python 3.12 as well
Run CI tests against Python v3.12 as well.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-10-26 07:17:10 +02:00
Henrik Brix Andersen 9a7671e521 ci: test using Python 3.11 as well
Run CI tests against Python v3.11 as well.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-10-25 10:06:01 +02:00
Maureen Helm 2e828eb6e7 ci: Fix license check false pass
The license check workflow quietly stopped working after commit
8f66f854c3. Upgrading the checkout action
changed default behavior to only fetch one commit instead of all history
for all branches, which caused an uncaught fatal error in the scancode
action:

fatal: ambiguous argument 'origin/main..': unknown revision or path not
in the working tree.

The scancode action then completed successfully having not actually
checked anything.

Fix this by setting the checkout action fetch depth to 0, similar to
other workflows.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2023-10-23 10:36:53 +02:00
Benjamin Cabé b1c207524b ci: github: Only build docs for zephyrproject-rtos GH org
As documentation is now built using one of our self-hosted runners,
have the GitHub action only run for the upstream repo, not for potential
forks.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-10-22 19:08:58 -04:00
Martí Bolívar e2b2dde1c8 .github: doc-build: build with west 1.2
This is just released and we want the docstrings from there.

Signed-off-by: Martí Bolívar <mbolivar@amperecomputing.com>
2023-10-21 13:14:57 +02:00
Flavio Ceolin 363320a09e github: security: Fix supported versions
Update supported versions in the github security
policy.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2023-10-18 09:44:44 +03:00
Carles Cufi b732c6d564 actions: manifest: Update action revision
Upgrade to v1.2.0, which comes with a bugfix and support for processing
PRs that have removed modifications to the manifest.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-10-17 14:23:24 +01:00
Anas Nashif 3b9acef1ba ci: move footprint workflows to zephyr runners
looks like our docker image is way too big for the GH runners, so move
to own runners until we have a better solution.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-17 15:52:44 +03:00
Lukasz Mrugala eeb142d409 .github: workflows: Workflow for build_helpers
PR #63195 has managed to change code under test without
triggering those tests.

This change should remedy that by creating a new workflow,
based on twister_tests.yaml, that runs tests in
scripts/tests/build_helpers if build_helpers are modified.

Such a workflow should be easily extendable if we ever have more
non-Twister things to test in scripts/pylib.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2023-10-10 15:55:58 +03:00
Alberto Escolar Piedras baec80fe41 CI bsim workflow: Also run controller tests on nrf5340bsim_nrf5340_cpunet
Run all bsim bluetooth controller tests also
on a nrf5340bsim_nrf5340_cpunet, as the controller
runs in a quite different mode.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-10-03 09:21:13 +02:00
Anas Nashif f669e156d4 ci: pull optional modules for now
While we cleanup, pull optional modules as before to keep CI happy.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-01 09:21:50 +03:00
Carles Cufi acb4e2748c actions: greet: Update the PR greeting text
Update the text so it points to useful parts of the documentation
regarding CI and contribution guidelines.

Also invite users to join Discord to ask for help.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-09-27 09:29:41 +01:00
Anas Nashif b90288b42b ci: do not run twister tests on push events
This workflow is needed for pull requests, not push events.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-25 18:42:39 -04:00
Anas Nashif 6338768b45 ci: rename twister testing workflow
Rename blackbox_tests.yml -> twister_tests_blackbox.yml for clarity.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-25 18:42:39 -04:00
Anas Nashif d2879f9a48 ci: use zephyr sdk 0.16.3
Modify CI tpo use new SDK and new docker containing this SDK.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-09-25 17:11:42 -04:00
Fabio Baltieri 799c8ddf9f ci: doc-build: add a rebase step
Add a rebase step after checkout for the documentation build CI run.

This is in line with what pretty much all other workfloww already do,
and means that if a PR is opened on a broken tree and the breakage get
fixed, the PR run just have to be retried for the test to pass and we
don't have to ask the authors to rebase and lose any pending approvals.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-09-23 08:27:05 -04:00
Fabio Baltieri 667a37374c ci: workflows: run twister tests on collab branches
Include CI runs to push and pull request against collab- branches so
that thay can be used for detecting CI breakages before trying to open
PRs against main.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-09-22 09:49:24 -04:00
Benjamin Cabé 2fd989f16d ci: bump zephyrproject-rtos/action-first-interaction v1.1.1-zephyr-4
A recent fix in zephyrproject-rtos/action-first-interaction/pull/5 is
now making the bot's comments on PR be actual comments, not PR
"review comments".

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-13 17:32:38 -04:00
Carles Cufi 85d2202e43 action: manifest: Use the new Git tree checkout feature
Use the feature introduced in:
https://github.com/zephyrproject-rtos/action-manifest/pull/8

This requires a West workspace to be initialized, since it uses
Manifest.from_file().

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-09-12 06:15:10 -04:00
Lukasz Mrugala 91dd4fcfdc .github: workflows: Black box testing fix
This fix pulls West in black box testing.
Previously changes in West could break it.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2023-09-11 12:29:22 -04:00
Andrew McLachlan 990b421b09 ci: Run greeting workflow on zephyrproject-rtos/zephyr.
Only run first time contributor check on zephyrproject-rtos/zephyr.

Signed-off-by: Andrew McLachlan <andrew.mclachlan@analog.com>
2023-09-06 09:35:57 -04:00
Alberto Escolar Piedras 393db164e1 ci: bsim: Improve path triggers for bsim tests
Let's also run the BabbleSim tests when either
the native simulator or the the include headers
are changed.
The include path was forgotten when creating the filter.
The nrf52_bsim was changed to use the native simulator
in 3a4bebacb1

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-09-04 13:00:52 -04:00
Henrik Brix Andersen 2b29364883 github: issue templates: remove hardware support template
Remove the Hardware Support request template. Hardware support requests
generally end up being stale and no one picks them up. This avoids giving
users false hope that simply opening a Hardware Support request will result
in someone implementing the requested support.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-08-31 11:04:09 +03:00
Lukasz Mrugala 4d467af7f4 scripts: tests: twister: Black box testing
In addition to the white-box testing and unit tests,
we would like to have some black-box testing for the
console commands of twister.

This serves as a Proof of Concept for future expansion.

Special dummy tests are made for blackbox testing.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2023-08-28 15:57:06 +02:00
Fabio Baltieri 6728af6458 ci: assigner: fix closing if statement
Bash uses fi, not endif.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-08-25 10:10:31 +01:00
Fabio Baltieri abb8ede0bc ci: assigner: add module and issue support, enable issue
Add a scheduled entry to run_assignee to run the module assignment
function periodically, as well as a target to run the issue code when
issue labels are changed.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-08-25 10:33:06 +02:00
Andreas Deininger 8f66f854c3 ci: Bump checkout action to latest version
Bump checkout action to latest version v3

Signed-off-by: Andreas Deininger <andreas@deininger.net>
2023-08-16 14:59:16 +02:00
Alberto Escolar Piedras b83a828825 ci: bsim workflow: nice down test images build
The compile script was modified to fully parallelize
all bsim test images builds.
This speed up the build time, but as we are
building ~80 images, the average load on the system
will skyrocket to over 200.
For CI systems we are seeing in quite many cases,
the CI server loosing connection with the CI runner,
while this part of the job is run, and suspect it is
due to this load.

Nice the job down (by the default +10),
as this should alleviate this problem without slowing
down the job.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-08-16 13:02:51 +02:00
Gerard Marull-Paretas 7f9215da0e doc: move requirements to doc/
Zephyr scripts do not require documentation dependencies, so let's
move them from scripts/ to doc/.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-12 09:13:49 -04:00
Gerard Marull-Paretas 2c89bf5798 doc: add cmake SPHINXOPTS_EXTRA option
Add a new CMake option to append options to SPHINXOPTS. This allows us
to easily extend default SPHINXOPTS. This patch also restores the "-j
auto" option in CI (now that we use a custom runner).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-12 09:13:49 -04:00
Gerard Marull-Paretas a211469734 ci: doc-build: use zephyr-runner-linux-x64-4xlarge
This should allow us to observe faster build times when using
parallelization.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-07-12 09:13:49 -04:00
Henrik Brix Andersen 2a00b9e505 ci: github: workflows: west_cmds: install natsort package
Install the natsort package before running the west commands test
suites. The natsort package is required by twister, which is imported in
the runners, since c37deeb0c4.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2023-07-07 09:19:02 +02:00
Michael Jones 343f60c631 doc: Add '--keep-going' flag to sphinx-build
So that we see all the potential errors in CI and not just the first
and can assess how much work there is to do.

This was introduced for debuggin but gmarull has suggested keeping it
in.

Signed-off-by: Michael Jones <m.pricejones@gmail.com>
2023-07-03 10:05:52 +00:00
Anas Nashif ae114855f9 ci: doc-build: use customer runner
Apparently the PDF build needs more resources, otherwise we end up
aborting the build too early.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-20 16:49:07 +02:00
Anas Nashif 294e0ddee7 ci: doc-build: set shell as bash
Specify the shell variant being used in the workflow step.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-20 16:49:07 +02:00
Anas Nashif e3f0d402f9 ci: doc: upload build log for debugging
When PDF build fails, we want to see what cmaused the failure, so upload
the log for later analysis.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-20 16:49:07 +02:00
Alberto Escolar Piedras 9af9a812b6 CI: bsim workflow: Fix getting bsim revision
As the bsim repo is disabled by default, west list bsim -f {sha}
fails.
Instead get the revision field which works.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-08 11:49:17 -04:00
Alberto Escolar Piedras 1c165296e8 Revert "ci: doc-build: Pull 'bsim' west project"
This reverts commit 00130b72ce.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-06-08 11:49:17 -04:00
Anas Nashif c1e40bb3d5 templates: change template file namaes for proper sorting
prefix with numbers to get sorting based on usage. Most common files
issue types should come first, with bugs being at the top.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-08 07:32:45 -04:00
Anas Nashif 135f5376c1 ci: workflows: create cache directory for ccache
Create cache directory before moving ccache.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-06 11:38:20 -04:00
Anas Nashif 1ebf0fdedb ci: Fix setup of ccache in twister workflow
Path for cache directory has changed, adapt workflow accordingly.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-06-06 09:39:11 -04:00
Stephanos Ioannidis 064d9f4dd8 ci: twister: Run on schedule once per week on Sunday
This commit updates the twister workflow to run once per week on Sunday
instead of twice per week on Wednesday and Saturday because the
scheduled run results are not checked very often and once-per-week
should be sufficient for the purpose of catching broken tests.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-05-31 10:00:31 -04:00
Maciej Perkowski dc14bdd54f ci: twister: add unit tests for pytest plugin
Adding a stage to twister unit test workflow where tests for
pytest-twister-harness plugin are executed.

Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
2023-05-26 13:52:15 -04:00
Fabio Baltieri dd8a65c03c ci: scripts_test: rebase before running tests
Add a rebase on top of BASE_REF before the pytest run to make sure that
PRs that predates the test introduction runs on top of the current HEAD.
This prevents pytest from failing with error code 5 because no tests are
found.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-05-26 20:12:58 +09:00
Fabio Baltieri c1c06207a6 ci: add a workflow for script unit tests
Add a "Scripts tests" workflow, for now just run pytest against
"scripts/build", but keep the naming generic so this could be reused for
other tests under scripts that are not covered by the other workflows.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-05-25 15:40:07 +02:00
Fabio Baltieri 7039f8ce9c ci: do_not_merge: check for TSC tag as well
Check for TSC tag in addition to the DNM one, so that PR scheduled for
TSC discussion can't be merged by mistake.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-05-16 14:57:51 -04:00
Stephanos Ioannidis 90828ae9d4 ci: Use Zephyr SDK 0.16.1
This commit updates the CI workflows to use the Zephyr SDK 0.16.1 for
building and testing Zephyr in the CI.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-05-16 01:50:00 +09:00
Stephanos Ioannidis b1588dce60 ci: Switch to CI image v0.26.4
This commit updates the CI workflows to use the CI image v0.26.4, in
order to pull in the Zephyr SDK 0.16.1 release.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-05-16 01:50:00 +09:00
Benjamin Cabé 909080a7a5 ci: bump zephyrproject-rtos/action-first-interaction version
Bump to v1.1.1-zephyr-3 version of the first-interaction GH action.
This fixes several issues:
- some contributors being improperly flagged as first-time contributors
- retry/throttling handling to address secondary API rate limit causing
action to sometimes fail
- first time contributor not being notified on their first merged PR

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-05-12 21:52:55 +09:00
Stephanos Ioannidis 8233f8ef91 ci: Use organisation-level AWS secrets
This commit updates the CI workflows to use the `zephyrproject-rtos`
organisation-level AWS secrets instead of the repository-level secrets.

Using organisation-level secrets allows more centralised management of
the access keys used throughout the GitHub Actions CI infrastructure.

Note that the `AWS_*_ACCESS_KEY_ID` is now stored in plaintext as a
variable instead of a secret because it is equivalent to username and
needs to be identifiable for management and audit purposes.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-05-12 02:44:13 +09:00
Stephanos Ioannidis a466c3d661 ci: footprint-tracking: Install awscli package from workflow
The Zephyr CI Docker image no longer contains the `awscli` Python
package due to dependency conflicts.

This commit updates the footprint tracking workflow, which uses the
CI Docker image, to manually install the `awscli` package into an
isolated virtual environment.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-05-11 21:53:11 +09:00
Stephanos Ioannidis 21d7ffb442 ci: footprint-tracking: Filter by organisation instead of repository
This commit updates the footprint tracking workflow to run on all
repositories in the `zephyrproject-rtos` organisation to ensure that
it runs on other test repositories such as `zephyr-testing`.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-05-11 21:53:11 +09:00
Stephanos Ioannidis bca4a53dd7 ci: footprint-tracking: Specify branch trigger conditions
When the `paths` condition is used alongside the `tags` or `branches`
condition, both conditions must be satisified for the workflow to
trigger -- this resulted in the workflow not triggering on push to the
`main` branch when one of the files under the paths listed in the
`paths` condition was modified.

This commit adds the `branches` condition to the workflow so that any
push to the `main` and release branches, as well as release tags,
containing the changes to the files under the paths specified by the
`path` condition trigger this workflow.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-05-11 21:53:11 +09:00
Alberto Escolar Piedras 933d338c97 ci: bsim workflow: Update bsim to version pointed by manifest
To ensure a reproducible enviroment while not needing
to update the docker images too often,
let's update on the fly the docker bsim installation to
whatever the Zephyr manifest points to.
Note that the update and rebuild is incremental,
so if the docker image already has the right version
the operation is very fast.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-05-04 19:51:20 +09:00
Stephanos Ioannidis 7f3326ad5d ci: Use CI Docker image v0.26.2
This commit updates the CI workflows to use the CI image v0.26.2, which
includes the west-based BabbleSim installation.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-04-29 16:13:40 -04:00
Benjamin Cabé 8e305b3840 ci: Run greeting workflow on pull_request_target
In order to be able to comment on PR, the workflow requires a
GITHUB_TOKEN with appropriate write permissions, which are only
provided when running in the context of the base of the pull
request.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-04-27 17:37:47 +09:00
Benjamin Cabé a3ce0b0f7e github: add GitHub action to greet first time contributors
Adds the configuration file for a GitHub action that will greet first-time
contributor the first time they:
- open an issue
- open a PR
- get a PR of theirs merged

Fixes #56092.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-04-25 10:16:50 -07:00
Stephanos Ioannidis 00130b72ce ci: doc-build: Pull 'bsim' west project
This commit updates the documentation build workflow to pull in the
'bsim' west project (with its submanifest) so that the build process
does not fail due to a manifest import failure.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-04-20 15:47:25 +02:00
Przemyslaw Bida ee7f2af1be tests bsim/net: Refactor bsim workflows.
This commit combines bsim-networking and bsim-bluetooth workflows
and separates runs of networking or ble tests based on files changed.

Signed-off-by: Przemyslaw Bida <przemyslaw.bida@nordicsemi.no>
2023-04-20 20:46:19 +09:00
Stephanos Ioannidis 81872eb701 ci: Use zephyrproject-rtos/action-s3-cache@v1.2.0
This commit updates the CI workflows to use the S3 cache action v1.2.0,
which is based on node.js 16 and @actions/core 1.10.0, in preparation
for the upcoming removal of the deprecated GitHub features.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-04-16 15:32:16 +09:00
Stephanos Ioannidis a982355f0a ci: codecov: Use codecov/codecov-action@v3
This commit updates the CI workflows to use the codecov-action v3,
which is based on node.js 16 and @actions/core 1.10.0, in preparation
for the upcoming removal of the deprecated GitHub features.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-04-16 15:10:29 +09:00