Commit Graph

803 Commits

Author SHA1 Message Date
Fu Hanxi
507541444b
ci: remove ip101 jobs and twai_std jobs 2024-01-10 10:31:11 +01:00
Frantisek Hrbata
62fd4abded ci: add sbom validation using pre-commit's post-commit stage
With 09ba070b7e ("fix: allow to use older pre-commit hook version")
and b93cc581a5 ("fix: set default pre-commit hook stages to pre-commit..")
we set the default pre-commit hook stage to commit/pre-commit, which avoids
running the pre-commit plugins/hooks multiple times for different stages.
Unfortunately this also affects "pre-commit run" used in CI and
now it runs only plugins which are by default using the
commit/pre-commit stage. Meaning the sbom validation, which uses
post-commit, is not run at all. This adds an explicit pre-commit command
for validate-sbom-manifest plugin, which needs to be started in
post-commit stage.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-02 16:29:58 +01:00
Frantisek Hrbata
db25ec2a37 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 13:36:00 +01:00
Chen Yudong
50a54194b7 ci: fix pytest components ethernet rules 2023-11-22 15:28:01 +01:00
Ondrej
1215fca04e ci(esp_eth): added tests of all supported Etherent chips 2023-11-22 15:27:57 +01:00
Anton Maklakov
92ebdd9e16 Merge branch 'ci/fix_add_build_unit_test_jobs' into 'release/v5.1'
ci: add build unit test apps jobs (v5.1)

See merge request espressif/esp-idf!27156
2023-11-20 17:43:51 +08:00
Roland Dobai
53aaf3462f Merge branch 'feature/add_qemu_to_tools-json_v5.1' into 'release/v5.1'
Add QEMU to tools.json (v5.1)

See merge request espressif/esp-idf!26407
2023-11-16 18:54:46 +08:00
Chen Yudong
6b1a846678 ci: add build unit test apps jobs 2023-11-15 13:43:16 +08:00
Chen Yudong
09310415d4 ci: fix assign test jobs 2023-11-14 14:05:44 +08:00
Chen Yudong
acd503c067 ci: add label rules for integration test
fix typo
2023-11-03 20:48:52 +08:00
Chen Yudong
d4af3af853 ci: remove unused integration test rules 2023-11-03 20:48:33 +08:00
Chen Yudong
655ff32ae9 ci: add qa-test-tag rules 2023-11-03 20:48:33 +08:00
Chen Yudong
537bea27f5 ci: dynamic integration test child pipeline 2023-11-03 20:48:33 +08:00
Fu Hanxi
066724f75e
ci: tune build jobs parallel count 2023-10-19 11:24:23 +02:00
Anton Maklakov
be79c75b64 feat(tools): Add QEMU 8.0.0_20230522 to tools.json
Process wildcards in the install and download lists of idf_tools
    Fix the install and download handlers to get common behaviour
2023-10-11 12:28:47 +07:00
Harshit Malpani
2aaa5579f0
fix(ci): update HTTP client example tests runner assignment
HTTP client example tests now connect with locally hosted httpbin service
for more stable results across multiple runs
2023-07-21 15:21:41 +05:30
Frantisek Hrbata
dbff74bee4 tools: add sbom information for submodules
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-14 12:38:12 +02:00
morris
0814386710 Merge branch 'refactor/driver_ut_to_test_app_v5.1' into 'release/v5.1'
CI: Move all UT in driver to test_app(backport v5.1)

See merge request espressif/esp-idf!23708
2023-05-18 16:18:26 +08:00
Cao Sen Miao
df7a27e36d CI: Move all UT in driver to test_app 2023-05-16 16:42:28 +08:00
Alexey Lapshin
726ed144e4 coredump: remove tests (moved to esp-coredump repo) 2023-05-16 12:43:04 +08:00
Fu Hanxi
21fd9aaee8 ci: small cleanup for the dependencies.yml 2023-05-04 11:21:40 +08:00
Fu Hanxi
8fd3b342aa ci: add pattern ccs811 2023-05-04 11:21:39 +08:00
Fu Hanxi
1c1c6d59b3 ci: migrate peripherals ttfw test scripts 2023-05-04 11:21:29 +08:00
Sachin Parekh
4a74ae4921 ci: Add patterns and target-tests for ecdsa_efuse runner 2023-04-30 11:48:46 +05:30
Armando
96b3f52c4e emmc: temporarily removed esp32 emmc ut_017 2023-04-27 10:30:38 +08:00
Shu Chen
856cfa4ae2 Merge branch 'refactor/remove_esp32h4_target_v5.1' into 'release/v5.1'
esp32h4: remove esp32h4 target (v5.1)

See merge request espressif/esp-idf!23422
2023-04-27 09:37:51 +08:00
morris
aedcec9be5 Merge branch 'feature/emmc_example_v5.1' into 'release/v5.1'
SDMMC Host: added an example to communicate with an eMMC chip and also a bugfix for Host timing (v5.1)

See merge request espressif/esp-idf!23283
2023-04-26 22:41:15 +08:00
laokaiyao
8f24b34f21 esp32h4: remove esp32h4 target from ci 2023-04-26 18:53:12 +08:00
Armando
6102cfdd27 sdmmc: in/out phase adapted to esp32 and esp32s3 2023-04-24 03:45:29 +00:00
Armando
bead0d741b sdmmc: add an example communicating with eMMC chip on S3 2023-04-24 03:45:29 +00:00
Marius Vikhammer
73f895217b ci: build all docs if soc_caps.h changed
soc_caps.h is thightly coupled with the docs build. Should build all docs
after changing it to make sure nothing broke.
2023-04-24 10:18:11 +08:00
Ivan Grokhotkov
84f81437a3
gitlab: simplify approvals for backports (v5.1) 2023-04-19 12:19:55 +02:00
Fu Hanxi
d18b6ade6e ci: increase concurrency number of build_pytest_components_esp32h2 2023-04-07 12:29:30 +08:00
Fu Hanxi
c9741e8100 ci: remove target test unused jobs 2023-04-07 12:29:30 +08:00
Fu Hanxi
c8064d0b2e ci: rename target test jobs names 2023-04-07 12:29:30 +08:00
Fu Hanxi
d036edfe1b ci: move tools/test_apps build jobs into one 2023-04-07 12:29:30 +08:00
Fu Hanxi
01fd87bd05 ci: remove ttfw related info in tools/test_apps 2023-04-07 12:29:30 +08:00
Chen Yudong
8f2a230c2f CI: enable build ssc esp32h2 2023-04-06 13:12:27 +08:00
Tomas Sebestik
c0a68a4a24 Merge branch 'fix/dangerjs_area_label_match' into 'master'
ci:danger: Changed pattern for matching area labels

See merge request espressif/esp-idf!23005
2023-04-02 14:00:22 +08:00
Ivan Grokhotkov
eb3b2b5a63
ci: danger: check author/committer email 2023-03-31 09:00:44 +02:00
Tomas Sebestik
c1d5514a4e ci(danger): Changed pattern for matching area labels 2023-03-30 11:23:41 +02:00
Marius Vikhammer
79b92b8576 Merge branch 'ci/granular_doc_build' into 'master'
docs: add a more granular trigger for build docs jobs

See merge request espressif/esp-idf!22632
2023-03-29 11:28:18 +08:00
Rocha Euripedes
98b75727ba Merge branch 'feature/socks_transport' into 'master'
tcp_transport: Adds SOCKS4 proxy transport

See merge request espressif/esp-idf!20479
2023-03-28 20:33:28 +08:00
Marius Vikhammer
75c03d1313 ci: add a more granular trigger for build docs jobs 2023-03-28 17:34:55 +08:00
Djordje Nedic
3e0f612a7e tools: Move out idf_size.py in favour of using the esp-idf-size package
This commit removes all idf_size.py files and references to them and adds esp-idf-size as a dependency and adequate wrappers to avoid breaking changes.
2023-03-27 19:40:33 +02:00
Euripedes Rocha
d6db90a3cd [tcp_transport] - Adds Socks4 proxy transport
- Basic implementation of Socks4 protocol.
- Introduce basic host testing.
2023-03-27 14:46:40 +02:00
Tomas Sebestik
005ba675f9 Merge branch 'dangerjs/mr_area_labels' into 'master'
add(ci:danger) Check MR area labels

Closes IDF-7075

See merge request espressif/esp-idf!22845
2023-03-23 19:58:14 +08:00
Zhang Wen Xu
1fe14b88b9 Merge branch 'feature/replace_h4_with_c6_in_openthread_ci' into 'master'
openthread ci: replace h4 with c6

See merge request espressif/esp-idf!22877
2023-03-23 11:55:35 +08:00
Xu Si Yu
90372e96ab openthread ci: replace h4 with c6 2023-03-23 10:31:24 +08:00
Tomas Sebestik
1f7487814c add(ci:danger) Check MR area labels 2023-03-21 07:11:31 +01:00