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

[DSLX] Auto-format documentation examples, enforce in documentation_test.py #1832

Conversation

cdleary
Copy link
Collaborator

@cdleary cdleary commented Jan 7, 2025

Trying to make an issue like #1831 not possible going forward via testing.

However, I was also not able to reproduce the issue reported in #1831, even with the directed tests in here cc @mikex-oss it's possible your dslx_fmt tool in that report was stale?

@cdleary cdleary requested a review from allight January 8, 2025 05:12
@@ -549,16 +526,16 @@ dumping values to stdout. For example:
// bazel run -c opt //xls/dslx:interpreter_main /path/to/dslx/file.x -- --alsologtostderr
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ugh copybara changes this line to make the doc-test fail due to differing line lengths.

Copy link
Collaborator

@allight allight Jan 9, 2025

Choose a reason for hiding this comment

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

I think I'll need to fix this internally since the test is new.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or actually just moving this note out of the dslx block should be sufficient.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok I think I did what you were looking for here, but LMK if not!

@copybara-service copybara-service bot merged commit 7d111b5 into google:main Jan 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants