Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Add queries to build.bat and test.bat. #81

Merged
merged 1 commit into from
Mar 2, 2018

Conversation

isturdy
Copy link
Contributor

@isturdy isturdy commented Mar 1, 2018

No description provided.

@isturdy isturdy mentioned this pull request Mar 1, 2018
@@ -33,7 +33,7 @@ load(

DEFAULT_COPTS = select({
"//opencensus:llvm_compiler": LLVM_FLAGS,
"//opencensus:windows": MSVC_FLAGS,
"//opencensus:windows": MSVC_FLAGS + ["/wd4715"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment about what 4715 is.

Also: not needed in TEST_COPTS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented ("not all control paths return a value", treated as an error). I added it to TEST_COPTS for good measure--I do not think any of our code exercises that warning.


REM TODO: Is there an easier way to convert lines to a space-separated list?
SET BUILDABLES=
FOR /F usebackq %%T IN (`bazel query "kind(rule, //...)" ^| FINDSTR /C:"\:_" /V`) DO (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.


REM TODO: Remove --output_user_root after https://github.com/bazelbuild/bazel/issues/4149 is fixed.
bazel --output_user_root=c:/t/ build //opencensus/trace
bazel --output_user_root=c:/t/ build %BUILDABLES%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is great overall, but I'd prefer to not have appveyor failing while we work on other stuff.

Please do:

bazel --output_user_root=c:/t/ build //opencensus/trace
REM bazel --output_user_root=c:/t/ build %BUILDABLES%

And we'll incrementally add targets as we get them building on Windows.

(I'm worried if every PR and commit has a red X after it, people will stop paying attention to CI entirely)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. (and //opencensus/stats, which builds once the switch fallthrough errors were suppressed.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, awesome! Thanks for that.


REM TODO: Remove --output_user_root after https://github.com/bazelbuild/bazel/issues/4149 is fixed.
REM bazel --output_user_root=c:/t/ test //opencensus/trace:all
echo TODO: Make all tests pass on Windows.
bazel --output_user_root=c:/t/ test --test_output=errors %TESTS%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@isturdy isturdy force-pushed the appveyor branch 2 times, most recently from 0972804 to 99393a8 Compare March 2, 2018 01:04

REM TODO: Remove --output_user_root after https://github.com/bazelbuild/bazel/issues/4149 is fixed.
REM bazel --output_user_root=c:/t/ test //opencensus/trace:all
echo TODO: Make all tests pass on Windows.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: leave the echo as a reminder. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@g-easy
Copy link
Contributor

g-easy commented Mar 2, 2018

Please update the PR/commit description.

@isturdy isturdy changed the title Enable the rest of the Appveyor build. Add queries to build.bat and test.bat. Mar 2, 2018
Full builds and tests are not yet enabled due to lingering compilation errors.
@isturdy isturdy merged commit bd74a0d into census-instrumentation:master Mar 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants