Wykres commitów

43 Commity (30edfaeb06e3fc41959bc0f4e31f5fc0359921ba)

Autor SHA1 Wiadomość Data
Frantisek Hrbata 22637ff824 feat: use esp-idf-sbom pre-commit plugin
Currently sbom manifest is checked only in .gitmodules and
this check is done in pre-commit and also in CI. Meaning it's running
three times(pre-commit before push if user has it enabled, in CI
as there is the pre-commit run again and again with test in CI). Since
esp-idf-sbom contains a full manifest validation support and pre-commit
plugin for it, let's use it. This removes all the current sbom testing
and replaces it with a signle pre-commit plugin which validates all
manifests files(sbom.yml, idf_component.yml, .gitmodules and also
referenced manifests) in repository. Note that this checks all
manifests, not only ones which were modified. The check is reasonably
fast though, so it should not cause any problem. The reason for
validating all manifest files is that we want to make sure that the sbom
information in .gitmodules is updated too and that the hash
recorded in .gitmodules is up-to-date. Meaning submodule update
would not trigger this plugin, because no manifest was changed.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-07 14:53:18 +01:00
Chen Yudong 60efb8a3ba ci: add qa-test-tag rules 2023-11-14 14:38:57 +08:00
Chen Yudong 3dc07f49f3 ci: dynamic integration test child pipeline 2023-11-14 14:38:51 +08:00
Frantisek Hrbata 7f9a5a8b71 tools: add sbom information for submodules
Conflicts:
- protobuf-c submodule version and hash changed to v1.4.0
- removed pytest dependency

This adds SBOM information for submodules, which are not managed
by Espressif. Meaning there is no fork for them in the espressif
namespace. Other submodules should add sbom.yml manifest file to
the root of their git repository.

The SBOM information for submodules is stored in the .gitmodules file.
Each SBOM related variable has the "sbom-" prefix and the following
variables may be used:

sbom-version:
   submodule version

sbom-cpe:
   CPE record if available in NVD. This will be used by the SBOM
   tool to check for possible submodule vulnerabilities. The
   version in the CPE can be replaced with the "{}" placeholder,
   which will be replaced by the "sbom-version" value from above.

sbom-supplier:
   Person or organization who is providing the submodule.
   It has to start with "Person:" or "Organization:" prefix
   as required by the SPDX-2.2 standard.

sbom-url:
   URL to the project if exists, e.g. github.

sbom-description:
   Project description.

sbom-hash:
   Submodule SHA as recorded in the git-tree. This field is used by
   CI to check that the submodule checkout hash and info in .gitmodules
   are in sync. IOW if submodule is updated and it has SBOM info in
   .gitmodules, the .gitmodules has to be updated too. The test is
   part of this commit. The checkout has of the submodule can be found
   by using "git submodule status".

Example for micro-ecc submodule
---8<---
[submodule "components/bootloader/subproject/components/micro-ecc/micro-ecc"]
	path = components/bootloader/subproject/components/micro-ecc/micro-ecc
	url = ../../kmackay/micro-ecc.git
	sbom-version = 1.0
	sbom-cpe = cpe:2.3🅰️micro-ecc_project:micro-ecc:{}:*:*:*:*:*:*:*
	sbom-supplier = Person: Ken MacKay
	sbom-url = https://github.com/kmackay/micro-ecc
	sbom-description = A small and fast ECDH and ECDSA implementation for 8-bit, 32-bit, and 64-bit processors
	sbom-hash = d037ec89546fad14b5c4d5456c2e23a71e554966
---8<---

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-15 06:45:17 +02:00
Alexey Lapshin c1445ff243 coredump: remove tests (moved to esp-coredump repo) 2023-05-16 13:04:27 +08:00
chensheng a1fd8065bd seperate ble wifi environment 2023-02-08 10:05:31 +08:00
Chen Yudong f54d484502 CI: Only deploy test cases on master (backport 4.4) 2022-07-08 23:38:37 +08:00
Chen Yudong 641bfa388a ci: move integration test related files outside of components 2022-01-26 22:33:14 +08:00
Chen Yudong 2ba22c4c6e ci: fix target_test label usage 2022-01-26 22:33:14 +08:00
Chen Yudong 6e11783992 ci: split assign tests 2022-01-26 22:33:09 +08:00
Fu Hanxi 295387167c ci: run example test for c3 as well 2021-11-04 12:12:12 +08:00
Marius Vikhammer 338166d94b ci: add idf size mem region yamls to host test pattern 2021-10-12 10:19:09 +08:00
Fu Hanxi d66a407eb3 ci: enable clang-tidy check for more components
Use internal project clang-tidy-runner

Move sonarqube related configs to sonar-project.properties
2021-08-19 09:26:20 +08:00
Jakob Hasse 06956d46c1 [cxx]: GPIO CXX wrappers, experiemental CI rule
* Wrapper class for simple GPIO interaction
  like read/write without ISRs.
* Added rule to provoke builds after changes in
  the experimental C++ component.
2021-08-03 19:51:21 +08:00
Angus Gratton dea52a92b9 make: Fix COMPONENT_OWNBUILDTARGET
Add build system test to match

Partial fix for https://github.com/espressif/esp-idf/issues/3664
2021-08-03 10:40:39 +08:00
Fu Hanxi d4c72cc844 ci: add sonarqube file patterns 2021-07-29 15:55:03 +08:00
Ivan Grokhotkov 7f8790b528 ci: run host tests when tools.json is updated 2021-07-27 12:19:35 +02:00
Fu Hanxi fab4c0ce41 ci: fix label only dependencies 2021-07-20 14:37:54 +08:00
Fu Hanxi 7997591f56 ci: update hosts test patterns 2021-07-20 10:00:25 +08:00
Jiacheng Guo 0050248918 openthread: provide prebuilt libopenthread libraries 2021-07-07 15:27:47 +08:00
Martin Gaňo 252036567c Moved filters out of idf_monitor.py 2021-06-17 21:38:38 +02:00
Shu Chen 6061a547e5 esp_phy: decouple esp_phy component from esp_wifi and bt
* add esp-phy-lib submodule
* move libphy.a and phy_init.c from esp_wifi to esp_phy
* move librtc.a from esp_wifi to esp_phy
* move libbtbb.a from bt to esp_phy
* corresponding updates to build system
2021-06-03 16:17:31 +08:00
Marius Vikhammer 89179dc286 docs: add fast build feature and activate it in CI
Adds feature for skipping include of doxygen headers into sphinx build
when env variable is set.

Builds incomplete docs (no function API documention)
but speeds up building (20min to 1<min).

Add this fast build as the default way of building docs in CI on
non protected branches.
2021-04-28 16:32:35 +08:00
zwj 3c06fea8a1 fix esp32c3 and esp32s3 ble disconnect due to connection paramters update 2021-04-25 20:18:21 +08:00
Fu Hanxi 1a51e325e4 ci: components and build_system patterns will run build_ssc as well 2021-04-09 12:27:41 +08:00
Fu Hanxi d64eafcd7c ci: add example c3 as a special case for build only 2021-03-29 11:11:02 +08:00
No One 2e5a334831 ci: run c3 unit test when other unit test run
C3 unit test were only being ran by unit_test_esp32c3 label/title,
should also be trigger by unit_test label/title
2021-03-18 10:36:08 +08:00
Marius Vikhammer c85d949c1f ci: run Example_GENERIC for C3
Add support for running example_GENERIC tests for C3 on label.

Fix examples that fail.
2021-03-15 10:27:07 +08:00
Renz Bagaporo 2fc86716cf ci: add ldgen test to custom test pattern 2021-03-11 11:59:31 +08:00
Fu Hanxi 04357aa66e ci: add label `only build tests` for maintainers to control the flow 2021-03-08 10:12:22 +08:00
Fu Hanxi c7a856db88 ci: remove trigger with commit message method and make it simpler 2021-03-02 11:50:04 +08:00
Fu Hanxi ef18e78a8d feat(ci): run check_submodule_sync_with_file_patterns 2021-02-23 12:43:52 +08:00
Fu Hanxi e59e245d47 ci(rules): improve rules with build files changed under components folder
- drop target test run with build pattern

- for unit_test on c3, use labels only
2021-02-23 11:32:17 +08:00
Fu Hanxi 06f92003a3 Merge branch 'ci/run_rules_labels_only_with_labels' into 'master'
ci: run rules:labels jobs only with labels

Closes IDFCI-454

See merge request espressif/esp-idf!12427
2021-02-22 03:41:34 +00:00
Fu Hanxi c49a72b499 ci: run rules:labels job only with labels 2021-02-20 10:41:54 +08:00
Fu Hanxi 4c1fca4a77 ci(rules): improve docs related jobs rules
- build_docs_pdf: now ignore docs related file patterns

- deploy_docs_preview: now ignore docs related file patterns

- .rules:build:docs: related jobs will not be triggered with `build` label
2021-02-19 17:28:09 +08:00
Fu Hanxi 2399128500 ci: improve docs pattern from Kconfig to Kconfig*
for example: Kconfig.spiram.common will now be included
2021-02-19 17:09:51 +08:00
Fu Hanxi bb1be1e07e ci(rules): add missing scripts under tools folder 2021-02-19 09:59:43 +08:00
Ivan Grokhotkov 3bce823523 Merge branch 'ci/mr_labels_regex_includes_more_chars' into 'master'
ci: supports more special characters for MR labels

See merge request espressif/esp-idf!12404
2021-02-18 10:33:55 +00:00
Fu Hanxi 43668cf79f ci: supports more special characters for MR labels 2021-02-18 14:25:48 +08:00
Fu Hanxi a01b6c0382 ci: run all static code analysis jobs when the gitlab yaml changes 2021-02-17 00:31:08 +08:00
Fu Hanxi b24b06d16c ci(rules): auto generate rules.yml labels titles and rules
Also simplified the labels and ci

- Remove label regular_test, weekend_test

- Remove apply_job_filter

- check_submodule_sync: only run on protected branch
2021-02-10 14:50:06 +08:00
Fu Hanxi b33e344484 ci: move config dir to .gitlab/ci 2021-02-10 14:48:51 +08:00