Commit Graph

12 Commits

Author SHA1 Message Date
Eliza Weisman
f992361eec chore: update github actions MSRV; fix broken examples (#463)
## Motivation

PR #441 increased the minimum supported Rust version, but it only
changed the Azure Pipelines CI configuration, and not the GitHub Actions
one. Additionally, upstream changes to `tower` has broken some of the
examples.

## Solution

This branch bumps the MSRV on GitHub Actions as well, and comments
out examples that depend on code broken upstream. 

Additionally, it turns out that — due to Cool Cargo Semver Reasons —
it's more or less impossible to depend on both tokio 0.2.0-alpha.6 *and*
tokio 0.2 release versions. This branch therefore just drops the 0.2.0-alpha.6
support; the next `tracing-futures` will be a breaking change anyway.

Co-authored-by: David Barsky <me@davidbarsky.com>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-12-08 11:37:14 -08:00
Eliza Weisman
d7ddef8903 chore: remove PR labeler workflow (#362)
Because this GitHub Actions workflow requires a secret (for the GitHub
access token), it doesn't work on PRs from external forks of this repo.
Although the labeler action isn't required (and thus doesn't block
merging a PR) it does result a spurious  status on all PRs from
external contributors. This is not great, since new contributors might
get the impression that their CI build is failing and they need to take
actions to fix it, even though this isn't actually the case.

This branch removes the PR labeler action. A low-friction experience for
new contributors is worth more than automatically labeling PRs.

It would be nice if we could figure out a way to get both in the future,
but it's not a high priority.

Closes #360

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-09-24 13:31:02 -07:00
Eliza Weisman
5c0fe77fd7 futures: fix broken builds with tokio alpha support (#338)
## Motivation

This branch fixes broken builds of `tracing-futures` with the
`tokio-alpha` feature.

## Solution

I've added the missing `WithDispatch` impl for 
`std::future::Future` that was breaking the build. I've also
updated the `tokio` alpha dependency, and added a CI check
that the tokio-alpha feature flag compiles.

Fixes #337 

* futures: add missing `WithDispatch` impl
* futures: update tokio alphas
* chore: add CI job to ensure tokio alpha compiles

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-09-12 11:33:27 -07:00
Eliza Weisman
4f8068a5b2 chore: make CI filters less restrictive (#335)
## Motivation

Apparently, the GitHub Actions `paths:` filtering for events uses [an
API][1] from the standard library of a known bad programming language,
which [doesn't behave the way normal unix globs do][2] and [cannot match
arbitrarily nested files][3].

This means that the filter was running the CI action only on PRs that
changed a `Cargo.toml` or `*.rs` _in the root of the repository_, rather
than _any_ `Cargo.toml` or `*.rs`, as a reasonable person might assume
it would. 

## Solution

This branch removes path filtering from the CI workflow, since 
apparently it is *impossible* to get the relatively simple behavior we
would want using this thing.

Since almost all `tracing` pull requests touch a `*.rs` or `Cargo.toml`
anyway, this path filtering wasn't really getting us a whole lot.
Removing it shouldn't make a huge difference. It's a shame that we have
to do a full Rust build & test run on PRs that only touch READMEs etc,
but \_(ツ)_/¯.

[1]: https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requestpaths
[2]: https://golang.org/pkg/path/#Match
[3]: https://github.com/golang/go/issues/11862

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-09-09 11:27:11 -07:00
Eliza Weisman
97701e8319 chore: port CI to GitHub Actions (#328)
## Motivation

The `tokio` org is in the Github actions beta. Running our CI jobs on Actions
rather than Azure Pipelines has a few potential advantages: 

- GitHub Actions allows us to conditionally run workflows based on what
  files were modified. This lets us configure the Rust CI tests/checks
  to only run when actual Rust source code was modified. This will let 
  us merge PRs that change READMEs, CI configs, etc. but don't actually
  modify any source code more quickly, since they won't have to wait
  for all the tests to run.
- GitHub Actions has slightly nicer integration with the GitHub UI 
  (IMO), and it takes fewer clicks to see the logs from a failed build
  than on Azure.
- Finally, I've (anecdotally) observed GitHub Actions workflows to
  start much sooner than the corresponding Azure Pipelines workflows.
  Although the stages seem to take similar amounts of time to run, it
  seems like there's sometimes a delay between an event that triggers
  Azure Pipelines and the job actually starting. My guess is that 
  GitHub Actions recieves the triggering webhook a bit sooner because
  it's running on the same infrastructure that actually hosts the repo?

## Solution

This branch ports the Azure Pipelines CI configs to run on GitHub 
Actions. I've tried to port the config relatively faithfully, with a
few tweaks.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-09-05 13:35:16 -07:00
Eliza Weisman
45ac667986 chore: fix PR labeler action (#324)
this should fix the build failure

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-09-04 12:44:56 -07:00
Eliza Weisman
d6c0a456f5 chore: start experimenting with github actions (#283)
this adds a rough CI action. I'm going to merge this because it might fix the other actions; we can delete it later

please ignore this
2019-08-14 15:35:33 -07:00
Eliza Weisman
02d45ec951 meta: add pages publish action on master commits (#278)
## Motivation

Currently, we link to RustDoc on docs.rs. This is built when a crate is
published to crates.io. In some cases, it is also valuable to publish
the documentation for the latest `master` branch, so that users using
git dependencies can see up to date docs.

## Solution

This branch adds a GitHub action that will build docs & publish them to
the `gh-pages` branch when source files change.

Closes: #210

* add pages publish action on master commits
* only rebuild when sources change

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-08-14 13:51:20 -07:00
Eliza Weisman
ab3d54fbb3 chore: add PR labeler action (#268)
The `tokio` org is now part of the github actions beta.

This branch dips our feet in the metaphorical water by
setting up a simple action that adds crate labels to PRs.

* chore: add PR labeler action
* add PR labeler config

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-08-12 16:53:26 -07:00
Eliza Weisman
872d893333 chore: remove remaining references to tracing-nursery (#144)
This branch removes all remaining references to the
non-existent `tracing-nursery` repository that weren't
removed in #142 and #141.

Closes #125 

* chore: remove nursery mentions from .github
* core: remove references to `tracing-nursery`

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-07-03 13:27:33 -07:00
Eliza Weisman
6a5cb28a44 meta: rename everything to tracing (#99)
See #95 

This branch renames everything from `tokio-trace` to `tracing`.

Unlike PR #98, the nursery crates still depend on the crates.io
versions of `tokio-trace` and `tokio-trace-core`, but renamed
to `tracing`/`tracing-core` in `Cargo.toml`. We can update the
nursery crates to depend on local path dependencies in a 
subsequent PR, as that will require making code changes to the
nursery crates.

This branch _also_ updates the minimum Rust version to 1.34.0,
to the shock and horror of the millions of `tracing` users still
on Rust 1.26.0. This was necessary in order to allow renaming
crates in `Cargo.toml`, and to resolve that not using the `dyn` 
keyword is now a warning on nightly.

Closes #98 
Closes #95

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-06-26 11:31:07 -07:00
Eliza Weisman
80b3fe7e5a add README.md, CONTRIBUTING.md, and issue/PR templates (#69)
This branch adds a `README.md`, a `CONTRIBUTING.md`, and issue and pull
request templates. These are all based on `tokio-rs/tokio`'s, with some
minor tweaks.

Fixes: #7

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2019-06-19 13:45:13 -07:00