aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html/html.go
Commit message (Collapse)AuthorAgeFilesLines
* all: use any instead of interface{}Dmitry Vyukov2025-12-221-1/+1
| | | | Any is the preferred over interface{} now in Go.
* pkg: restore vcs.TreeLink and html.SetGlobSearchPathMarco Elver2025-06-061-0/+6
| | | | | | | This partially reverts commit 43f51a00700e5960fc890e6c3d596846757bf29d to restore vcs.TreeLink and html.SetGlobSearchPath. This broke internal code.
* pkg/html: split off URL helpersAleksandr Nogikh2025-04-081-44/+0
| | | | | | | The existing pkg/html package transitively takes too many dependencies, which complicates the reuse of some of its methods. Split off a pkg/html/urlutil package.
* all: delete dead codeTaras Madan2025-02-101-5/+0
| | | | | go install golang.org/x/tools/cmd/deadcode@latest deadcode -test ./...
* dashboard/app: move templates to dirTaras Madan2024-07-051-2/+2
|
* pkg/html: add more flexibility to glob pathsAleksandr Nogikh2024-03-281-4/+9
| | | | | The current logic restricts the callers too much. Make it possible to override the base path for templates.
* dashboard/app: move to GOMOD from GOPATHTaras Madan2024-02-141-2/+24
| | | | The deployment takes 1.1G now. Let's check what can be removed after deployment.
* dashboard: support filtering over multiple labelsAleksandr Nogikh2023-05-101-2/+27
| | | | | | For each label, allow only one value to be specified. At the same time, allow multiple different labels (subsystem, origin, prio, etc) be specified together.
* pkg/html/html.go: remove unnecessary conversionTaras Madan2023-02-241-1/+1
|
* dashboard: display the list of applied filtersAleksandr Nogikh2023-02-141-1/+5
| | | | | | | Currently it's non obvious whether and what filters are applied to a bug list. Display the list to the user and enable them to drop individual filters.
* dashboard: display subsystems in bug listsAleksandr Nogikh2023-01-271-0/+15
| | | | | To generate filtering URLs, use the ability of context.Context to carry on variable values.
* pkg/html: add a commitLink template functionAleksandr Nogikh2022-12-141-0/+6
|
* pkg/html: move some functions to sub-packageDmitry Vyukov2022-05-231-18/+0
| | | | | Move functions that need embed assets to a separate package. In preparation for the next change.
* tools/syz-testbed: store html templates in filesAleksandr Nogikh2022-02-251-2/+12
|
* tools/syz-testbed: show diffs and p-valuesAleksandr Nogikh2021-12-061-0/+13
| | | | | | | | | | Enable the user to specify the pivot column for the stats table. If such a column is set, calculate and print the relative difference between checkouts and p-values for the estimation of statistical significance of the experimental data. For the p-value calculation use the existing implementation from the go-benchstat tool.
* all: make all kernel commit hashes 12 byte longAleksandr Nogikh2021-07-131-1/+1
| | | | | | | | | Currently email and web templates use 8 byte representation of commit hashes. While this is enough for syzkaller, it becomes less and less suitable for Linux kernel tags. Switch to 12 byte representation for all Linux kernel commit hash mentions.
* pkg/build, pkg/html: move generation logic into separate scriptsDmitry Vyukov2020-09-151-8/+1
| | | | | | | | Mentions of "// Code generated ... DO NOT EDIT." in these Go files somehow prevents golangci-lint from checking them. And github treats them as auto-generated as well. I guess some code somewhere has some imprecise heuristics. Move generation into separate shell scripts. Also cleaner.
* all: mark auto-generated filesDmitry Vyukov2020-07-291-2/+2
| | | | | | | | | | Use the standard Go convention for Go files: https://golang.org/pkg/cmd/go/internal/generate Use github linguish for other files: https://github.com/github/linguist#generated-code Both are understood by github and should result in these files being collapsed in PRs by default.
* pkg/html: add function to format JS timeDmitry Vyukov2020-07-091-0/+5
|
* dashboard/app: allow reporting of BisectFix resultsZubin Mithra2019-08-301-0/+8
| | | | | | | | | | | | | * Modify mail_bisect_result.txt to allow for sending fix bisection results. * Modify BisectResult to have a Fix field; introduce selectBisect for use within the template for choosing between BisectCause/BisectFix fields. * Modify bisectFromJob() to return BisectResult with Fix field set if relevant. * Modify the tests inside bisect_test.go to account for bisect fix related reporting emails. * Modify incomingMail() to ignore any emails from syzbot itself.
* dashboard/app: properly handle build failuresDmitry Vyukov2019-03-251-0/+8
| | | | | | | | | Separate kernel and syzkaller build failures. Fix logic to understand when a build is fixed: look if kernel/syzkaller commit changes to understand if it's a new good build or re-upload of an old build. Fixes #1014
* pkg/html: add reference for 12-char hashes in tagsDmitry Vyukov2019-03-211-1/+2
|
* dashboard/app: use 12-char hash in Fixes tagsDmitry Vyukov2019-03-211-0/+10
| | | | | | | @ebiggers pointed out that Fixes tags should use 12-char hash: https://groups.google.com/d/msg/syzkaller-bugs/yUhRrLD6T6A/3TMwOWvWAgAJ I can't find any documentation on this, but it looks like most existing tags follow this convention so use 12-char hashes.
* pkg/html: add more helper functionDmitry Vyukov2019-03-171-11/+49
| | | | | | | Add optlink, formatKernelTime, formatCommitTableTitle. Will be useful to format bisection emails. Update #501
* dashboard/app: poll commits infoDmitry Vyukov2019-02-171-0/+9
| | | | | | | | | | | | | | | This implements 2 features: - syz-ci polls a set of additional repos to discover fixing commits sooner (e.g. it can now discover a fixing commit in netfilter tree before it reaches any of the tested trees). - syz-ci uploads info about commits to dashboard. For example, a user marks a bug as fixed by commit "foo: bar". syz-ci will find this commit in the main namespace repo and upload commmit hash/date/author to dashboard. This in turn allows to show links to fixing commits. Fixes #691 Fixes #610
* syz-manager: modernize web UIDmitry Vyukov2018-11-221-0/+110
1. Use dashboard style. 2. Allow sorting of tables. 3. Show old crashes in grey. 4. Use tables instead of text output for more pages. 5. Show corpus inputs on a separate page to allow copy-pasting. 6. Use standard JS sorting instead of custom bubble sort (much faster). 7. Fix off-by one in table sorting. Fixes #694