Commit Graph

5800 Commits

Author SHA1 Message Date
Dan Nicholson e19840a252 docs: Copy in API docs and add link
Make a copy of `apidoc/html` to `docs/reference` and then tell Jekyll to
include it verbatim. This will include the gtk-doc API docs on the
static site. A link is added to the main index.

A script is added to do the copy (a symlink won't do) and is setup to
run before Jekyll in the GitHub workflow. Ideally this would be a local
Jekyll plugin to make the process automatic, but the github-pages gem
doesn't allow that.
2021-05-21 10:46:49 -06:00
Dan Nicholson 19a306ecef docs: Add github workflow for building and publishing docs
This uses the Jekyll Actions GitHub action to push the rendered docs to
the gh-pages branch rather than GitHub's automated docs flow. That will
allow greater control over how the docs are generated. Pushing to the
gh-pages branch only happens on pushes to main. For pull requests, the
docs are only built.
2021-05-21 10:45:08 -06:00
Dan Nicholson 3c7449397a docs: Provide bundler setup for building site locally
This mimics the GitHub Pages environment so that you can build and serve
the site locally for testing. It's will also be required later for using
Jekyll Actions[1] instead of the automated GitHub Pages flow.

1. https://github.com/marketplace/actions/jekyll-actions
2021-05-21 10:13:15 -06:00
Dan Nicholson e4105a0366 docs: Fix CONTRIBUTING link
This returns a 404 since the site is already generated from the docs
directory. Furthermore, the `CONTRIBUTING.md` markdown file isn't in the
generated site, just the HTML.

Instead, use jekyll's `link` tag to create the link. Unfortunately,
before jekyll 4.0 (github-pages uses 3.9), you have to prepend the base
URL.
2021-05-20 16:45:12 -06:00
Colin Walters 6c904c630f
Merge pull request #2358 from travier/rename
*: rename master branch to main
2021-05-11 11:45:38 -04:00
Timothée Ravier a709d4f846 *: rename master branch to main (external repos) 2021-05-07 16:55:03 +02:00
Timothée Ravier 02527f115e *: rename master to main in tests & examples 2021-05-07 16:55:03 +02:00
Timothée Ravier b8cca6cef1 *: rename master branch to main 2021-05-07 16:55:03 +02:00
Timothée Ravier 135675243a packit: update for F34, rawhide branch & master rename 2021-05-07 16:54:57 +02:00
Colin Walters 733093461c
Merge pull request #2356 from miabbott/usretc
docs: typo fix for /usr/etc
2021-05-03 13:10:09 -04:00
Micah Abbott 7893e1907b docs: typo fix for /usr/etc 2021-05-03 10:34:01 -04:00
Dan Nicholson af723f9a2a
Merge pull request #2355 from jlebon/pr/etc-merge-moar-docs
docs: Add more details about 3-way merge
2021-04-30 10:14:52 -06:00
Jonathan Lebon 788e171b7c docs: Add more details about 3-way merge
This came up a few times so let's go into more details in the docs.
2021-04-30 10:50:15 -04:00
Jonathan Lebon 89481ca4be
Merge pull request #2354 from cgwalters/fix-gh-action
ci: Fix GH action for rustfmt
2021-04-27 15:23:02 -04:00
Jonathan Lebon 60c14240ab
Merge pull request #2353 from cgwalters/uri-scheme-hardening
pull: Cleanly error out on unknown schemes
2021-04-27 14:09:10 -04:00
Colin Walters 0f3bccf640 pull: Cleanly error out on unknown schemes
Previous to this we'd trip an assertion `abort()` deep in the curl code if e.g.
a user did `ostree remote add foo htttp://...` etc.

Motivated by considering supporting "external remotes" where code outside
ostree does a pull, but we want to reuse the signing verification infrastructure.
2021-04-27 13:11:18 -04:00
Colin Walters 73a896e62c ci: Fix GH action for rustfmt
Since we now have a toplevel workspace, just use that.
2021-04-27 13:10:07 -04:00
Simon McVittie a07fcd86d5 Release to experimental 2021-04-26 10:15:12 +01:00
Simon McVittie d1bebfaa24 Add patch from upstream to fix intermittent FTBFS on some filesystems 2021-04-26 10:14:13 +01:00
Simon McVittie 52d75cde13 Mark patch as applied upstream 2021-04-26 10:13:34 +01:00
Colin Walters 0fcf4a3f30
Merge pull request #2352 from dbnicholson/skip-summary-cache-envvar
tests: Test without a cache directory by default
2021-04-20 08:57:28 -04:00
Dan Nicholson e660855796 tests: Test without a cache directory by default
Several tests generate summaries and then expect to use the generated
summary immediately. However, this can cause intermittent test failures
when they inadvertantly get a cached summary file. This typically
happens when the test is run on a filesystem that doesn't support user
extended attributes. In that case, the caching code can only use the
last modified time, which only has 1 second granularity. If tests don't
carefully manage the summary modification times or the repo cache then
they are likely subject to races in some test environments.

This introduces an environment variable `OSTREE_SKIP_CACHE` that
prevents the repo from using a cache directory. This is enabled by
default in tests and disabled for tests that are a explicitly trying to
test the caching behavior.

Fixes: #2313
Fixes: #2351
2021-04-19 11:09:44 -06:00
Colin Walters 2458df446f
Merge pull request #2350 from smcv/trap-err
libtest: On failure, make it clearer what has happened
2021-04-18 08:54:49 -04:00
Simon McVittie a15a213ee8 Release to experimental 2021-04-18 12:21:15 +01:00
Simon McVittie 602ba64d5e Add proposed patch to make test failures easier to debug 2021-04-18 12:20:43 +01:00
Simon McVittie 9d48d39a4b libtest: On failure, make it clearer what has happened
If we fail as a result of `set -x`, It's often not completely obvious
which command failed or how. Use a trap on ERR to show the command that
failed, and its exit status.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-04-18 12:17:00 +01:00
Simon McVittie eeb52cb9f6 d/test.sh: Line-buffer stdout
Otherwise, lines from stdout appear with an arbitrary delay, making it
hard to tell what the order of events was.
2021-04-18 11:12:55 +01:00
Simon McVittie 72367d6302 d/copyright: Update 2021-04-18 11:07:54 +01:00
Simon McVittie 4a71ed28f6 Update symbols file 2021-04-18 11:04:36 +01:00
Simon McVittie 52a6be5f27 New upstream release 2021-04-18 11:02:49 +01:00
Simon McVittie 96bdf667cf Update upstream source from tag 'upstream/2021.2'
Update to upstream version '2021.2'
with Debian dir ddb244226e
2021-04-17 00:55:33 +01:00
Simon McVittie 3b95643e80 New upstream version 2021.2 2021-04-17 00:55:26 +01:00
Colin Walters e4d42be31f
Merge pull request #2343 from cgwalters/cargo-workspace
build-sys: Add toplevel workspace Cargo.toml
2021-04-15 19:32:11 -04:00
Colin Walters 09c5578a15
Merge pull request #2346 from cgwalters/release-2021-2
Release 2021.2
2021-04-15 15:40:30 -04:00
Colin Walters 6a72674ec6 Release 2021.2 2021-04-15 13:02:48 -04:00
Colin Walters 3595414c86 configure: post-release version bump 2021-04-15 13:02:48 -04:00
Colin Walters 7310203ce9 tests/inst: Make nondestructive tests runnable as unit tests
Ideally in the future we change more of our unit tests to
support running installed; we've tried this in the past with
https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests

I'd like to pick that back up again.  This takes a step
towards that by having our Rust tests.

To make this even easier, add a `tests/run-installed`
which runs the installed tests (uninstalled, confusingly
but conveniently for now).
2021-04-15 12:33:34 -04:00
Colin Walters 46a0911c6d build-sys: Add toplevel workspace Cargo.toml
rust-analyzer is happier with this because it understands
the project structure out of the box.

We aren't actually again adding a dependency on Rust/cargo in the core,
this is only used to make `cargo build` work out of the box to build
the Rust test code.
2021-04-15 12:33:34 -04:00
Simon McVittie 017e85f081 Release to experimental 2021-04-14 13:54:05 +01:00
Simon McVittie 504581d1ce Standards-Version: 4.5.1 (no changes required) 2021-04-14 13:53:48 +01:00
Simon McVittie 53b7eb556f Drop a patch that was applied upstream 2021-04-14 13:53:48 +01:00
Simon McVittie c69326077a d/rules: Declare that we have grub >= 2.02
Debian's grub packaging runs grub-install in postinst, so we should be
able to rely on grub actually getting updated.
2021-04-14 13:53:48 +01:00
Simon McVittie 3c22574816 Update symbols file 2021-04-14 13:53:48 +01:00
Simon McVittie c045d53d9a Update upstream source from tag 'upstream/2021.1'
Update to upstream version '2021.1'
with Debian dir 7c5b2152ac
2021-04-14 12:52:50 +01:00
Simon McVittie 1c67002e63 New upstream version 2021.1 2021-04-14 12:52:43 +01:00
Simon McVittie 2371d0437b d/gbp.conf: Branch for experimental 2021-04-14 12:52:29 +01:00
Luca Bruno 36693f064c
Merge pull request #2336 from bgilbert/edit
docs: fix "Edit this page on GitHub" links
2021-04-13 12:14:52 +00:00
Jonathan Lebon 3991009c93
Merge pull request #2335 from cgwalters/write-regfile-api 2021-04-12 16:48:27 -04:00
Benjamin Gilbert 388764f1ed docs: fix "Edit this page on GitHub" links 2021-04-09 23:00:33 -04:00
Colin Walters 9b4bffc454 repo: Ensure we set the size for regfile inline
Need to clean up the internal APIs for this.
2021-04-09 22:29:55 +00:00