Skip to content

docs: mention the Assert APIs, add misc fixes #4374

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

Merged
merged 4 commits into from
Jun 7, 2025

Conversation

rami3l
Copy link
Member

@rami3l rami3l commented Jun 7, 2025

Closes #4358.

I still feel more comfortable putting such internal-facing documentation in the code directly, but probably we can add a pointer to the doc comments or rustdoc 1 in the dev guide?

Footnotes

  1. I believe publishing API docs on GitHub pages is useful even if the project itself is an application. What do you think?

@rami3l rami3l requested review from djc, ChrisDenton and Copilot June 7, 2025 03:55
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds comprehensive documentation for the Assert helper type in clitools.rs, including usage patterns, snapshot testing workflow, and redaction details.

  • Introduce detailed doc comments on Assert struct
  • Update constructor doc link to reference only SanitizedOutput

@rami3l rami3l force-pushed the test/clitools-assert-docs branch from 7a5e726 to b928793 Compare June 7, 2025 05:26
@rami3l rami3l force-pushed the test/clitools-assert-docs branch from b928793 to ba915c7 Compare June 7, 2025 11:53
@rami3l rami3l changed the title docs(test/clitools): add docs for Assert docs: mention the Assert APIs, add misc fixes Jun 7, 2025
@rami3l
Copy link
Member Author

rami3l commented Jun 7, 2025

@djc Thanks for the quick review! When reading the guides however I have noticed a few existing problems, so I wish to fix them here as well. I hope you feel okay with this 🙏

@rami3l rami3l requested a review from djc June 7, 2025 11:57
@rami3l rami3l added this pull request to the merge queue Jun 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 7, 2025
@rami3l rami3l added this pull request to the merge queue Jun 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 7, 2025
@rami3l
Copy link
Member Author

rami3l commented Jun 7, 2025

@djc @ChrisDenton Wait, there might be something going on with our Windows CI... This PR in itself should be innocent.

@ChrisDenton
Copy link
Member

Seems like a problem in aws_lc_sys:

= note: libaws_lc_sys-3fe107a3c1c4f7cf.rlib(mem.obj) : warning LNK4099: PDB '' was not found with 'libaws_lc_sys-3fe107a3c1c4f7cf.rlib(mem.obj)' or at ''; linking object as if no debug info␍
          LINK : error LNK1218: warning treated as error; no output file generated␍

The empty name for the pdb file looks like a bug. We could work around it by ignoring it. E.g. add /IGNORE:1218 to the command line options. An alternative is to simply remove the /WX linker option and thus ignore all warnings.

@rami3l
Copy link
Member Author

rami3l commented Jun 7, 2025

@ChrisDenton It wasn't there an hour ago, it's weird. I'll send an issue to aws-lc-rs, and could you have a look at the workaround(s) available? Many thanks in advance 🙇

@ChrisDenton
Copy link
Member

Strange. Was there a nightly toolchain update or anything like that?

I can implement a workaround but it might be a little while until I'm at a machine.

@rami3l
Copy link
Member Author

rami3l commented Jun 7, 2025

Strange. Was there a nightly toolchain update or anything like that?

@ChrisDenton I've checked both aws-lc-rs and Runner Images and confirmed that no one would like to cut a new release towards the weekend, of course. OTOH I highly suspect that the direct cause of this issue is some sort of cache invalidation 🤦‍♀️

@rami3l rami3l added this pull request to the merge queue Jun 7, 2025
@rami3l
Copy link
Member Author

rami3l commented Jun 7, 2025

@ChrisDenton It turned out to be a build cache-related issue! You can have a rest for now as a reset has just been performed, and hopefully things will get back on track real soon 🙏

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 7, 2025
@rami3l rami3l force-pushed the test/clitools-assert-docs branch from ba915c7 to 3e2c0f6 Compare June 7, 2025 15:18
@rami3l rami3l enabled auto-merge June 7, 2025 15:20
@rami3l rami3l added this pull request to the merge queue Jun 7, 2025
Merged via the queue into rust-lang:master with commit b491a45 Jun 7, 2025
29 checks passed
@rami3l rami3l deleted the test/clitools-assert-docs branch June 7, 2025 15:41
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.

Explain the use of snapshot testing APIs
3 participants