aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/build_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/build: extract Rust build errorsAleksandr Nogikh2025-11-031-0/+20
| | | | Add a rust error regexp and a test to verify the resulting report.
* all: remove loop variables scopingTaras Madan2025-02-171-2/+0
|
* pkg/build: handle OOM-killed build errorSabyrzhan Tasbolatov2024-09-231-1/+48
| | | | | | | Handle SIGKILL (exit code = 137) on osutil.Run() during Linux kernel image building and return build.InfraError without reporting. Fixes: https://github.com/google/syzkaller/issues/5317
* pkg/build: extract fuchsia build errors betterDmitry Vyukov2022-09-131-0/+14
|
* all: capture compiler id during the build processAleksandr Nogikh2021-07-201-1/+1
| | | | | | | | | Default compilers are specified in the OS- and platform-dependent logic. It is more convenient to extract info about them during the kernel build itself, rather than during the manager object initialization. Apply the necessary changes throughout the code that is involved in building the kernels and processing information about this process.
* pkg/build: recognize make's "No rule to make target" errorDmitry Vyukov2021-06-151-1/+16
|
* pkg/build: add BTF error formatDmitry Vyukov2021-04-131-1/+10
|
* pkg/build: extract another build error root causeDmitry Vyukov2021-01-051-0/+26
|
* pkg/build: detect errors due to missing filesDmitry Vyukov2020-10-211-0/+16
|
* all: don't compare string len with 0Dmitry Vyukov2020-07-041-1/+1
| | | | | | | For strings it's more readable to compare the string itself with "", instead of comparing len with 0. Fix all such cases. Update #1876
* pkg/build: extract "multiple definition" linker errorsDmitry Vyukov2020-06-141-0/+51
|
* .golangci.yml: enable funlen checkerDmitry Vyukov2020-06-051-73/+82
| | | | Checks for too long functions (based on lines and statements).
* pkg/build: find maintainers for build errorsDmitry Vyukov2020-05-091-6/+230
| | | | | | | Extract build error source file and obtain maintainers so that we can mail the report to the right people. Update #1667
* pkg/build: improve extraction of build errorsDmitry Vyukov2019-12-111-5/+47
| | | | | | | | | 1. Extract multiple error lines (up to 10). Gives more complete picture, maybe the first one is not the most indicative one. 2. Replace weird unicode quotes with normal quotes. These may be mishandled by some systems that don't understand utf-8.
* pkg/build: detect "Permission denied" as build errorDmitry Vyukov2019-04-091-0/+31
| | | | This happens when compiler has bad permissions.
* pkg/build: extract first build error instead of lastDmitry Vyukov2019-04-051-3/+22
| | | | | The first error is usually more informative and significant. Extract first error instead of last.
* pkg/build: extract bazel build errorsDmitry Vyukov2019-03-291-0/+18
| | | | | | | | | | We currently manually call extractRootCause in few selected places to denote kernel build errors that we want to report to developers. The rest are considered infra errors that we don't report. This does not work well. We are missing fuchsia and gvisor build errors. Treat all external command exection failures as kernel build errors instead. Let's see how this works in practice. Also add bazel-specfic error patterns and tests.
* pkg/build: add a test for build failure root causingDmitry Vyukov2019-03-211-0/+15
| | | | | | | | Such error popped up during bisection on older kernels. It's already detected properly, yet build failed with just "make failed"... Unclear why that happened, but the test won't harm. Update #501
* pkg/build: share extractRootCause with openbsdGreg Steuck2019-02-111-0/+24
| | | | | | | | | | * pkg/build: share extractRootCause with openbsd This should get kernel build errors reported in syz-ci console. * Add a test * lint
* pkg/build: support bazel in CompilerIdentityDmitry Vyukov2018-06-221-16/+22
|
* pkg/build: move from pkg/kernelDmitry Vyukov2018-06-221-0/+30
Rename pkg/kernel to pkg/build and prepare for multi-OS support.