Skip to content

Fixes usdt feature dependency resolution bug - #496

Merged
bnaecker merged 1 commit into
mainfrom
fix/dependency-resolution-fail
Dec 9, 2021
Merged

bnaecker merged 1 commit into
mainfrom
fix/dependency-resolution-fail

Conversation

@bnaecker

@bnaecker bnaecker commented Dec 9, 2021

Copy link
Copy Markdown
Collaborator
  • Adds the Dropshot usdt-probes feature to every crate depending on
    both Dropshot and slog-dtrace. Leaving this feature out causes build
    failures when compiling packages individually, as the selected usdt
    feature actually includes inline assembly, but Dropshot does not
    include the right feature-selection crate attribute. This works when
    building the whole workspace, since all features are unioned.
  • Adds a check subcommand to omicron-package, that runs cargo check instead of cargo build. This is also run during CI now, to
    catch regressions here, at least for the crates that we package via
    omicron-package.

Removes the toolchain specifications from CI files, as they are
duplicated in the rust-toolchain.toml file.

update note about rust-toolchain duplication in CI files

Update dropshot dependency to pull in fixes for feature-selection

- Adds the Dropshot `usdt-probes` feature to every crate depending on
  both Dropshot and `slog-dtrace`. Leaving this feature out causes build
  failures when compiling packages individually, as the selected `usdt`
  feature actually includes inline assembly, but Dropshot does not
  include the right feature-selection crate attribute. This works when
  building the whole workspace, since all features are unioned.
- Adds a `check` subcommand to `omicron-package`, that runs `cargo
  check` instead of `cargo build`. This is also run during CI now, to
  catch regressions here, at least for the crates that we package via
  `omicron-package`.

Removes the toolchain specifications from CI files, as they are
duplicated in the rust-toolchain.toml file.

update note about rust-toolchain duplication in CI files

Update dropshot dependency to pull in fixes for feature-selection
@bnaecker

bnaecker commented Dec 9, 2021 •

Copy link
Copy Markdown
Collaborator Author

Ok, I understand the problem now. The checks that are not reporting are specifically those for the strategy matrix that includes a toolchain dimension. This PR specifically removes that dimension from the matrix, so they by definition can never be reported. The solution really is to remove these as checks that block merging this PR specifically.

It does raise the question of how one is supposed to merge PRs that include changes to the set of checks in general.

As a further note, the new "versions" of the build-and-test checks should be made required to merge into main, in place of the now-defunct versions that refer to the toolchain.

@bnaecker

bnaecker commented Dec 9, 2021

Copy link
Copy Markdown
Collaborator Author

@davepacheco Has granted me admin access. I'm going to disable the impossible checks, merge this PR, and then enable the checks that are now valid.

@bnaecker
bnaecker disabled auto-merge December 9, 2021 05:58
@bnaecker
bnaecker merged commit 0e9e790 into main Dec 9, 2021
@bnaecker
bnaecker deleted the fix/dependency-resolution-fail branch December 9, 2021 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant