aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/fuchsia.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/vcs: extend ListCommitHashesAleksandr Nogikh2025-05-131-2/+2
| | | | | | | | | | Rename the method to LatestCommit and make it more flexible: 1) Return the commit date alongside the commit hash. 2) Rename the time filter to highlight that it's non-inclusive. 3) Make it possible to query the commits newer than the specified commit hash. It will let us poll lore archives more efficiently.
* pkg/vcs: export GitWrapperAleksandr Nogikh2025-01-091-2/+2
| | | | | | | | | | | | | The current common vcs interface and its implementations are designed to support a very big number of situations (git modules, cleaning up complex state, etc), which is too heavy and restrictive when we just need a thin wrapper over the git command that supports a few basic operations. Refactor pkg/vcs to split out the wrapper code from the big git implementation of the vcs.Repo interface. Export the wrapper to enable reuse in other parts of the system.
* pkg/vcs: extend ListCommitHashesAleksandr Nogikh2025-01-031-2/+3
| | | | Support filtering by the commit date.
* pkg/vcs: work around bug in jiri prebuilt_versions hookLaura Peskin2024-12-091-1/+5
| | | | | | Invoke `jiri update` twice (once from the fuchsia bootstrap script, then as a standalone command) when initializing a new fuchsia checkout.
* pkg/vcs: implement remaining Repo methods for fuchsiaLaura Peskin2024-12-051-9/+16
| | | | | | | | | | | | | | | | | This is a temporary workaround for managing a fuchsia checkout: - Mark the repo as "precious" so that checkout operations don't delete GN args and other build configuration state. In a follow-up, this will be replaced by a fuchsia-specific `repair` method using `fx clean`. - Checkout operations apply only to fuchsia.git, which has a chance of creating inconsistencies between versions of fuchsia and its dependencies. The main poll workflow (using `jiri`) is not affected by this problem, but bisection workflows may fail. This will be fixed in a follow-up by checking out branches and commits from fuchsia's global integration repo.
* pkg/build: add build command for starnixLaura Peskin2024-10-301-4/+7
| | | | Co-authored-by: eep@google.com
* pkg/vcs: more not implemented for fuchsiaTaras Madan2024-10-241-8/+8
|
* pkg/vcs: change HeadCommit to CommitDmitry Vyukov2024-10-151-2/+2
| | | | | | | Currently we have HeadCommit function that returns info about the HEAD commit. Change it to a more flexible Commit function that can return info about any commit. This will be used in future changes.
* syz-ci: introduce gitArchive parametersTaras Madan2024-10-101-0/+4
| | | | | | | Some commits don't live long remotely. It sometimes happens we need them later to: 1. Merge coverage. 2. Mention during communication.
* pkg/covermerger: optimize checkoutsTaras Madan2024-08-291-0/+4
| | | | | Every commit checkout takes >3 seconds. Let's optimize this operation to save on large merges.
* pkg/vcs: delete ListRecentCommits()Aleksandr Nogikh2023-12-201-4/+0
| | | | It's not needed anymore.
* all: use special placeholder for errorsTaras Madan2023-07-241-2/+2
|
* pkg/vcs: extract merge bases of two commitsAleksandr Nogikh2023-04-281-0/+4
|
* pkg/vcs: add two more vcs.Repo methodsAleksandr Nogikh2023-04-061-0/+8
| | | | | | | 1) ListCommitHashes, which lists all commit hashes reachable from the specified commit. 2) Object, which allows to query the contents of an object at the specified revision.
* pkg/vcs: add repo.Contains methodDmitry Vyukov2020-12-251-0/+4
| | | | | | Returns true if the current tree contains the specified commit (the commit is reachable from the current HEAD). Cntains(commit string) (bool, error)
* pkg/vcs: add repo OptPrecious and OptDontSandbox optionsDmitry Vyukov2020-10-211-4/+2
| | | | | | | | | | The pkg/vcs code assumed that we fully manage the repo within an autonomous program. In particular it tried to repair any errors by dropping and re-creating the repo. This does not work well for command-line tools that work with a user-provided repo. Add OptPrecious for such uses. Update #2171
* pkg/vcs: add ReleaseTagDmitry Vyukov2020-10-211-0/+4
| | | | | | | Add ReleaseTag method that returns last release tag for the given commit. Update #2171
* all: fix comments formatDmitry Vyukov2020-07-121-1/+1
| | | | | | | Fix capitalization, dots at the end and two spaces after a period. Update #1876
* pkg/vcs: fix fuchsia's git repo directory.Marco Vanotti2019-03-211-11/+11
| | | | | | | | | | | | | | | | | | This commit changes the fuchsia git repo to make it point to the main repo instead of just "zircon". Previously, zircon had its own git repo, so syzkaller had a wrapper that would issue jiri commands for the whole fuchsia repo, but would just report commits in the zircon repo. Recently, fuchsia merged most of its repositories in just one big git repo. So now, zircon is part of the fuchsia git repo. I think the code continued working because the old zircon repo is still part of a git repository, so git commands worked there. The new code now doesn't have any special casing for Zircon, and now (almost) everything is part of the fuchsia repo. The other repos are now git submodules.
* pkg/vcs: remove unused functionsDmitry Vyukov2019-03-201-6/+0
| | | | Bisect is not needed after introduction of Bisecter interface.
* pkg/vcs: refactor bisection supportDmitry Vyukov2019-03-171-7/+4
| | | | | | | | | | | | | | | In preparation for syz-ci bisection: - move bisection function into a separate interface they look out of place in vcs.Repo because most OSes don't implement it and most users don't case - extract author name and more CC emails for commits - move linux-specific PreviousReleaseTags into linux.go - fix inconclusive bisection (more than 1 potential commits) - add tests fr bisection - add maintainers returned from get_maintainers.pl for commits that don't have enough emails (e.g. only author email) Update #501
* fuchsia: Update Syzkaller to pull from Fuchsia monorepo (#1021)Julia Hansbrough2019-02-271-2/+2
| | | Fuchsia and its repos now live in a new spot!
* dashboard/app: poll commits infoDmitry Vyukov2019-02-171-1/+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
* pkg/osutil: provide better RenameDmitry Vyukov2018-12-171-1/+1
| | | | | os.Rename fails for cross-device renaming (e.g. to/from tmpfs). This is quite unpleasant. Provide own version that falls back to copying.
* pkg/vcs: add openbsd supportDmitry Vyukov2018-09-111-1/+1
| | | | | | | This just says that we want to use git to checkout OpenBSD without any special/complex features. Update #712
* pkg/vcs: use garnet instead of topaz layer for fuchsiaDmitry Vyukov2018-08-181-1/+1
| | | | | | | Topaz contains end user applications that are not interesting for us and only increase build time. The applications also consume lots of memory, so switching to garnet should leave more memory for the fuzzer (maybe eliminate some OOMs).
* pkg/vcs: poll fixing commits on akaros and fuchsiaDmitry Vyukov2018-07-201-18/+18
|
* pkg/vcs: fix fuchsia sandboxingDmitry Vyukov2018-06-291-0/+3
|
* pkg/build: support fuchsia buildsDmitry Vyukov2018-06-281-5/+0
|
* pkg/vcs: add fuchsia supportDmitry Vyukov2018-06-271-0/+94
For now only checking out and polling.