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

Fix: Error Sidebar PR failed test #17959

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

Dedelweiss
Copy link
Contributor

@Dedelweiss Dedelweiss commented Jun 12, 2023

The purpose of this Pull request is to correct my PR #17229
Sorry for this failure.
I have tested the following command locally and my tests pass.
sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test"

[test_windows_full]

Fixes: #17963

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

Thanks for the pr @Dedelweiss! So just to clarify the issue was with the println? Or what was actually causing the failure? Also I see you removed -title, is that related or a separate issue?

@Dedelweiss Dedelweiss force-pushed the 17229-fix-error-sidebar branch from b1d304a to 020aedd Compare June 12, 2023 14:06
@Dedelweiss
Copy link
Contributor Author

Thanks for the pr @Dedelweiss! So just to clarify the issue was with the println? Or what was actually causing the failure? Also I see you removed -title, is that related or a separate issue?

Hello Chris, thank you for your feedback. The main problem is that I didn't delete the title of the example with an error (NoTitle), so my assert was wrong for loadSidebarNoTitleError(). So I think that if there's a problem, it would probably come from there. The println is just an Int I noticed.

@ckipp01 ckipp01 self-assigned this Jun 12, 2023
@Dedelweiss
Copy link
Contributor Author

I also added the [test_windows_full] in the body of my commit so I can test the full test run here.

Comment on lines 42 to 44
"""index: index.md
|subsection:
| - title: My title
| page: my-page1.md
Copy link
Contributor

Choose a reason for hiding this comment

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

This change makes the YAML invalid, I think there should be a - before page.

Also, I am surprised that the regression occurred only on Windows. Do you know why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's the goal. This sidebar is, after that, asserted to have an error when used, with loadSidebarNoTitleError().

@Dedelweiss Dedelweiss closed this Jun 13, 2023
@Dedelweiss Dedelweiss reopened this Jun 13, 2023
@sjrd
Copy link
Member

sjrd commented Jun 13, 2023

The problem is that the following line makes no sense:
daa9934#diff-07e2a48c30078cbc2498e2be82eb39d00326fb8cd18576becbea67281392d70dR38
It's trying to put the full content of a file in Path.

@Dedelweiss
Copy link
Contributor Author

The problem is that the following line makes no sense: daa9934#diff-07e2a48c30078cbc2498e2be82eb39d00326fb8cd18576becbea67281392d70dR38 It's trying to put the full content of a file in Path.

Indeed, I'm correcting that right now, thank you very much @sjrd

@Dedelweiss Dedelweiss requested a review from ckipp01 June 13, 2023 18:15
Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @Dedelweiss. Since we're now removing the actual check for the page (which you added in your other PR), if you do fix this and still want to add it in a way that won't error, please do!

@ckipp01 ckipp01 merged commit d83aa49 into scala:main Jun 13, 2023
@Dedelweiss
Copy link
Contributor Author

Thanks for fixing this @Dedelweiss. Since we're now removing the actual check for the page (which you added in your other PR), if you do fix this and still want to add it in a way that won't error, please do!

Sure, thank you

ckipp01 pushed a commit that referenced this pull request Jun 21, 2023
The goal of this PR is to re-add the path validation of the page in a
sidebar.yaml and improve the Testcase in the `SidebarParserTest` by
erasing the first title, so it's easier to understand the problem in it.

This PR is related to PRs: #17229 & #17959 

[test_windows_full]

Co-authored-by: Lucas Leblanc <[email protected]>
@Kordyjan Kordyjan added this to the 3.4.0 milestone Aug 2, 2023
Kordyjan pushed a commit that referenced this pull request Nov 17, 2023
The purpose of this Pull request is to correct my PR
#17229
Sorry for this failure.
I have tested the following command locally and my tests pass.
`sbt ";dist/pack ;scala3-bootstrapped/compile
;scala3-bootstrapped/test"`

[test_windows_full]

Fixes: #17963
[Cherry-picked d83aa49]
Kordyjan added a commit that referenced this pull request Nov 21, 2023
Backports #17959 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
Kordyjan pushed a commit that referenced this pull request Nov 23, 2023
The goal of this PR is to re-add the path validation of the page in a
sidebar.yaml and improve the Testcase in the `SidebarParserTest` by
erasing the first title, so it's easier to understand the problem in it.

This PR is related to PRs: #17229 & #17959 

[test_windows_full]

Co-authored-by: Lucas Leblanc <[email protected]>
[Cherry-picked cf50fe3]
Kordyjan pushed a commit that referenced this pull request Nov 29, 2023
The goal of this PR is to re-add the path validation of the page in a
sidebar.yaml and improve the Testcase in the `SidebarParserTest` by
erasing the first title, so it's easier to understand the problem in it.

This PR is related to PRs: #17229 & #17959 

[test_windows_full]

Co-authored-by: Lucas Leblanc <[email protected]>
[Cherry-picked cf50fe3]
@Kordyjan Kordyjan modified the milestones: 3.4.0, 3.3.2 Dec 14, 2023
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.

Nightly Dotty workflow of 2023-06-13 failed
5 participants