aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/asset
Commit message (Collapse)AuthorAgeFilesLines
* pkg/gcs: define Client interfaceTaras Madan2025-03-251-3/+3
| | | | | | Some functions are not the struct members now. Some functions deleted. Client mock generated.
* pkg/asset: report deprecation figuresAleksandr Nogikh2024-09-272-13/+24
| | | | | Let's have a bit more introspection into the asset storage deprecation code.
* all: pkg/gcs supports AppEngine contextTaras Madan2024-08-121-1/+2
|
* pkg/asset: simplify gcs codeTaras Madan2024-08-123-28/+15
|
* tools/syz-linter: check t.Logf/Errorf/Fatalf messagesDmitry Vyukov2024-04-171-6/+6
| | | | | Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf.
* pgk/asset: don't use dashapi.NewMock()Aleksandr Nogikh2023-12-202-29/+27
| | | | Define a pkg-only view of the required dashapi methods.
* all: use errors.As instead of .(type)Taras Madan2023-07-241-2/+4
|
* pkg/asset: support deprecation in the many buckets caseAleksandr Nogikh2023-05-155-7/+122
| | | | | | | | | | | If several syz-cis with different GCS buckets for assets are connected to a single dashboard, we currently face problems during the asset deprecation process. If we receive from the dashboard a valid GCS URL that belong to an unknown bucket, don't abort the process. Just ignore the URL. Test this behavior.
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-3/+2
|
* syz-manager: upload mounted images from reprosAleksandr Nogikh2022-10-041-0/+12
| | | | | Collect mounted images from repros and upload them to the asset storage. Report the resulting download URLs to the dashboard.
* dashboard: support crash assetsAleksandr Nogikh2022-10-041-0/+7
| | | | | | | | | | They are stored and handled in a similar way to build assets. 1) syz-manager uploads assets to the storage and reports download URLs in the /report_crash request. 2) syz-ci manages crash assets deprecation. 3) dashboard includes crash assets in bug reports. For now the only type is MountInRepro.
* pkg/asset: don't set encoding by defaultAleksandr Nogikh2022-09-302-5/+3
| | | | | | | | It causes web browsers to decompress archives in place, which makes it more confusing for the users since the file extension remains in place. The only exception is html coverage reports, adjust the code to handle that.
* pkg/asset: fix download URLs formation for duplicate assetsAleksandr Nogikh2022-09-291-2/+2
| | | | | From the upload method, always return the path without the bucket. Always prepend the bucket name in the downloadURL().
* pkg/asset: return the proper error when a GCS object existsAleksandr Nogikh2022-08-292-4/+2
| | | | The caller expects a FileExistsError error.
* pkg/asset: update config documentationAleksandr Nogikh2022-08-261-2/+2
|
* all: hash and ignore duplicate assetsAleksandr Nogikh2022-08-244-27/+106
| | | | | Calculate sha256 values of assets-to-upload and don't upload them if they already exist.
* pkg/asset: use xz compression libraryAleksandr Nogikh2022-08-242-57/+15
| | | | | Calling an external tool imposes multiple OS/version compatibility issues.
* syz-ci: upload build assetsAleksandr Nogikh2022-08-246-27/+1036
| | | | | | | | | This commit introduces the syz-ci side of the asset storage functionality. * Intercept assets at various stages of syz-ci operation. * Compress and upload assets to GCS. * Report assets to the dashboard. * Remove no longer needed assets.
* dashboard: implement asset storageAleksandr Nogikh2022-08-241-0/+37
Asset is a file/attachment relevant for debugging a kernel crash or the syzbot itself. Dashboard keeps track of the uploaded assets and manages their lifetime. Some of the assets are attached to the bug reports sent by syzkaller, some (like html coverage report) are displayed on the web portal. Two new API requests: * add_build_assets -- let dashboard remember one more build-related asset. * needed_assets -- query the list of assets that are still needed by the dashboard.