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

ssh: polish docs #9298

Open
wants to merge 8 commits into
base: maint
Choose a base branch
from
Open

ssh: polish docs #9298

wants to merge 8 commits into from

Conversation

u3s
Copy link
Contributor

@u3s u3s commented Jan 14, 2025

No description provided.

@u3s u3s added the team:PS Assigned to OTP team PS label Jan 14, 2025
@u3s u3s self-assigned this Jan 14, 2025
Copy link
Contributor

github-actions bot commented Jan 14, 2025

CT Test Results

    2 files     29 suites   19m 45s ⏱️
  466 tests   462 ✅  4 💤 0 ❌
1 671 runs  1 647 ✅ 24 💤 0 ❌

Results for commit e25585a.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

kikofernandez
kikofernandez previously approved these changes Jan 14, 2025
lib/ssh/src/ssh.erl Outdated Show resolved Hide resolved
@@ -514,7 +515,7 @@ protocol).
Opaque types that define experimental options that are not to be used in
products.
""".
-doc(#{title => <<"Other data types">>}).
-doc(#{title => <<"Other Data Types">>}).
Copy link
Contributor

Choose a reason for hiding this comment

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

What is meant with opaque option? This does not make sense to me!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean opaque_ part in type names below?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes! I do not think options can be opaque. You need to know what it is you are setting to be able to set it. Opaque I think is used to say that the user should not care how something "looks" (is represented) it is only an abstract handle that can be used as input to the API functions of the module. A truly opaque value can only be inspected by the module implementing it. And that is why we have some values that are only documented opaque as we want users to be able to match them for equality although we do think it is an API violation to pick them apart and do things with an individual part.

Copy link
Contributor

Choose a reason for hiding this comment

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

And that is why we have some values that are only documented opaque as we want users to be able to match them for equality although we do think it is an API violation to pick them apart and do things with an individual part.

Testing (in-)equality of opaques with the same name is okay in master, as it does not leak any information about the contents. You can start looking into making these types actually opaque now :-)

@u3s u3s added the testing currently being tested, tag is used by OTP internal CI label Jan 31, 2025
@u3s u3s linked an issue Jan 31, 2025 that may be closed by this pull request
@u3s u3s changed the title ssh: polish docs around types ssh: polish docs Feb 3, 2025
@u3s u3s requested a review from IngelaAndin February 3, 2025 17:29
@u3s u3s force-pushed the kuba/ssh/polish_docs branch from d84400e to e25585a Compare February 6, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ssh: stdout stalls at under 1MB of data mark
4 participants