Uh oh!
There was an error while loading. Please reload this page.
Fix grammar verifcation - #34994
Conversation
dns2utf8
commented
Jul 23, 2016
I was able to fix the errors, yay 😁 The API of libsyntax was changed (eg 24e7491) but the veryfy.rs is not getting build. Should we include the antlr4-complete.jar or just build the |
There was a problem hiding this comment.
This should probably say "antlr", not "antler".
I run the test result: failed. 4764 passed; 125 failed; 2 skippedI am curious, what are the next steps to fix the failed tests? |
There was a problem hiding this comment.
hm, is this always going to be where this is? Feels system-specific
There was a problem hiding this comment.
It is the place in Arch Linux, but not on Mac OS X. I have not tested other distros.
steveklabnik
commented
Jul 25, 2016
@alexcrichton what do you think of this PR? |
alexcrichton
commented
Jul 25, 2016
It does seems system specific, perhaps that could be refactored? That being said I know very little about all of this, and we don't run it on the bots, so I don't mind merging basically whatever here. |
brson
commented
Jul 25, 2016
I'm cool with pushing these improvements through even with the hardcoded path. It's better than it was, and I'm glad somebody is looking at this stuff. Would be good to get this onto a bot #28592 |
dns2utf8
commented
Jul 28, 2016
The system specific path could be obmittet with an environement variable, so the Another alternative would be to include the jar file and just ship it. Is this a good idea? cc: @nikomatsakis |
10f7384 to
e8f4f4fComparedns2utf8
commented
Jul 29, 2016
I add the target I think this is a good state freeze/merge for now. I planed to add some documumentation about the process in the next weeks, but I am no sure whether it will be in a good shape before the 18. august or not. |
steveklabnik
commented
Aug 3, 2016
@bors: r+ rollup
|
bors
commented
Aug 3, 2016
📌 Commit 76026d1 has been approved by |
Fix grammar verifcation I wanted to improve the [grammar-section](https://doc.rust-lang.org/grammar.html#items-and-attributes) but I can not build it. r? @steveklabnik@brson EDIT: I resolved some of the issues, removed the compiler output from the entry.
Fix grammar verifcation I wanted to improve the [grammar-section](https://doc.rust-lang.org/grammar.html#items-and-attributes) but I can not build it. r? @steveklabnik@brson EDIT: I resolved some of the issues, removed the compiler output from the entry.
| clean-grammar: | ||
| @$(call E, cleaning grammar verification) | ||
| $(Q)cd src/grammar && rm -Rf verify *.class *.java *.tokens |
There was a problem hiding this comment.
This does not handle an out-of-tree build directory, which our bots use.
cleaning grammar verification
/bin/sh: 1: cd: can't cd to src/grammar
/buildslave/rust-buildbot/slave/auto-linux-64-nopt-t/build/mk/clean.mk:51: recipe for target 'clean-grammar' failed
make: *** [clean-grammar] Error 2
program finished with exit code 2
elapsedTime=0.958165
There was a problem hiding this comment.
Interesting, looking on it.
sophiajt
commented
Aug 4, 2016
@bors r- |
* Use make check-lexer to verify the grammar. * Extend grammar/README * Add make clean-grammar rule * Add target check-build-lexer-verifier to make tidy, so it will build the verifier with every build and catch future errors
dns2utf8
commented
Aug 6, 2016
I moved the in-tree part to the README of the manual process, since it was just for convenience. I was looking for the structure of the build bot, can I run one locally? |
steveklabnik
commented
Aug 15, 2016
@alexcrichton ping re last comment here, can @dns2utf8 do something to test this out? |
alexcrichton
commented
Aug 15, 2016
We've got a number of docker images which our bots are running, so running the tests inside those containers would perhaps be enough to test out? |
I was able to start a container and access it with this command: docker run --rm -it --entrypoint=/bin/bash alexcrichton/rust-slave-linux:2016-08-04then inside clone my branch like the script: git clone https://github.com/dns2utf8/rust.git --branch doc_grammarI can then build my branch: cd rust
./configure && make -j$(nproc) docsbut I am not sure this is the same as you do. EDIT: I am doing this, because the |
alexcrichton
commented
Aug 15, 2016
@dns2utf8 yeah that's basically the same as what we do, this'd just be testing for presence of the relevant tools. Is this running by default on |
alexcrichton
commented
Sep 9, 2016
Closing due to inactivity, but feel free to resubmit with a rebase! |
Thanks for the reminder, I rebased it. Can I reopen the issue just with a comment? |
Fix grammar verification * Use make check-lexer to verify the grammar. * Extend grammar/README * Add make clean-grammar rule * Add target check-build-lexer-verifier to make tidy, so it will build the verifier with every build and catch future errors This is the continuation of #34994 r? @steveklabnik@jonathandturner@alexcrichton
I wanted to improve the grammar-section but I can not build it.
r? @steveklabnik@brson
EDIT: I resolved some of the issues, removed the compiler output from the entry.