Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something broke generating yaml for mdbook #558

Open
markmandel opened this issue Aug 9, 2022 · 1 comment
Open

Something broke generating yaml for mdbook #558

markmandel opened this issue Aug 9, 2022 · 1 comment
Labels
area/build-tools Development tooling. area/tests Unit tests, integration tests, anything to make sure things don't break kind/bug Something isn't working

Comments

@markmandel
Copy link
Member

What happened:

Not sure when this started, but it's passing CI (which is another issue)

2022-08-08 23:19:12 [INFO] (mdbook::book): Book building has started
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: No such file or directory (os error 2)', src/main.rs:121:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.capture.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.capture.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.capture.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.compress.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.compress.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.compress.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.concatenate_bytes.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.concatenate_bytes.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.concatenate_bytes.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.debug.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.debug.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.debug.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.firewall.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.firewall.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.firewall.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.load_balancer.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.load_balancer.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.load_balancer.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.local_rate_limit.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.local_rate_limit.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.local_rate_limit.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.match.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.match.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.match.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.token_router.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.token_router.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.token_router.v1alpha1.yaml)
2022-08-08 23:20:25 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:20:25 [INFO] (mdbook::book): Running the html backend
htmltest started at 11:20:26 on /tmp/docs

I only noticed that it because it was failing when i was testing updates to cloud build on my dev project, but it's passing on CI. Not sure why.

2022-08-08 23:32:07 [INFO] (mdbook::book): Book building has started
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: No such file or directory (os error 2)', src/main.rs:121:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.capture.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.capture.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.capture.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.compress.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.compress.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.compress.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.concatenate_bytes.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.concatenate_bytes.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.concatenate_bytes.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.debug.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.debug.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.debug.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.firewall.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.firewall.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.firewall.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.load_balancer.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.load_balancer.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.load_balancer.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.local_rate_limit.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.local_rate_limit.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.local_rate_limit.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.match.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.match.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.match.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../target/quilkin.filters.token_router.v1alpha1.yaml}}", Could not read file for link {{#include ../../../target/quilkin.filters.token_router.v1alpha1.yaml}} (/workspace/docs/src/filters/../../../target/quilkin.filters.token_router.v1alpha1.yaml)
2022-08-08 23:33:13 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2022-08-08 23:33:13 [INFO] (mdbook::book): Running the html backend
htmltest started at 11:33:14 on /tmp/docs
========================================================================
book/filters/load_balancer.html
  target does not exist --- book/filters/load_balancer.html --> ../../api/quilkin/filters/load_balancer/struct.Config.html
book/filters/compress.html
  target does not exist --- book/filters/compress.html --> ../../api/quilkin/filters/compress/struct.Config.html
book/filters/match.html
  target does not exist --- book/filters/match.html --> ../../api/quilkin/filters/match/struct.Config.html
  target does not exist --- book/filters/match.html --> ../../api/quilkin/filters/match/struct.Config.html
book/filters/debug.html
  target does not exist --- book/filters/debug.html --> ../../api/quilkin/filters/debug/struct.Config.html
book/filters/token_router.html
  target does not exist --- book/filters/token_router.html --> ../../api/quilkin/filters/token_router/struct.Config.html
book/filters/concatenate_bytes.html
  target does not exist --- book/filters/concatenate_bytes.html --> ../../api/quilkin/filters/concatenate_bytes/struct.Config.html
book/filters/local_rate_limit.html
  target does not exist --- book/filters/local_rate_limit.html --> ../../api/quilkin/filters/local_rate_limit/struct.Config.html
book/filters/capture.html
  target does not exist --- book/filters/capture.html --> ../../api/quilkin/filters/capture/struct.Config.html
book/filters/firewall.html
  target does not exist --- book/filters/firewall.html --> ../../api/quilkin/filters/firewall/struct.Config.html
book/filters/writing_custom_filters.html
  target does not exist --- book/filters/writing_custom_filters.html --> ../../api/quilkin/runner/fn.run.html
  target does not exist --- book/filters/writing_custom_filters.html --> ../../api/quilkin/filters/trait.FilterFactory.html
book/filters.html
  target does not exist --- book/filters.html --> ../api/quilkin/metadata/enum.Value.html
========================================================================
✘✘✘ failed in 8.90022669s
13 errors in 29 documents
make: *** [Makefile:93: test-docs] Error 1

What you expected to happen:

  1. Have cargo run -q --manifest-path ../Cargo.toml -- -q generate-config-schema -o ../target in preprocessor.sh to work
  2. If this happens, fail CI.

How to reproduce it (as minimally and precisely as possible):

Either:

  1. run mdbook from ./docs
  2. make docs from the build directory.

Anything else we need to know?:

Environment:

@markmandel markmandel added kind/bug Something isn't working area/tests Unit tests, integration tests, anything to make sure things don't break area/build-tools Development tooling. labels Aug 9, 2022
markmandel added a commit to markmandel/quilkin that referenced this issue Aug 9, 2022
Searching for the config file on every invocation of quilkin is not
required.

This is a small optimisation, but also solves the error of googleforgames#558
(although not the CI issue).
@markmandel
Copy link
Member Author

Filed;

Otherwise, it might worth running the preprocessor.sh file directly ourselves in the Makefile just to check it works before running the mdbook command.

XAMPPRocky added a commit that referenced this issue Aug 12, 2022
Searching for the config file on every invocation of quilkin is not
required.

This is a small optimisation, but also solves the error of #558
(although not the CI issue).

Co-authored-by: XAMPPRocky <[email protected]>
XAMPPRocky added a commit that referenced this issue Aug 22, 2022
Searching for the config file on every invocation of quilkin is not
required.

This is a small optimisation, but also solves the error of #558
(although not the CI issue).

Co-authored-by: XAMPPRocky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-tools Development tooling. area/tests Unit tests, integration tests, anything to make sure things don't break kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant