Skip to content

Conversation

@geoffromer
Copy link
Contributor

@geoffromer geoffromer commented Nov 14, 2025

Every test that used addr before #6283 should be using ref after this PR. In most cases that was done in #6283, but this PR transitions a few that I missed in that first pass. In addition, #6283 cloned the old addr tests from foo.carbon to foo_addr.carbon in order to maintain test coverage during the transition; this PR removes those cloned tests.

@geoffromer geoffromer requested a review from a team as a code owner November 14, 2025 16:29
@geoffromer geoffromer requested review from jonmeow and removed request for a team November 14, 2025 16:29
@github-actions github-actions bot added documentation An issue or proposed change to our documentation toolchain labels Nov 14, 2025
Copy link
Contributor

@jonmeow jonmeow left a comment

Choose a reason for hiding this comment

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

This deletes functionality, but should it be making sure the equivalent functionality works with ref? What's the intent there?

This may just be a matter of clarifying the PR description, but why is some code migrated to ref but then, for example, most of the addr class tests are just deleted? Are there equivalent ref tests that you can point to, is the coverage no longer relevant for some reason, or is this just disabling support with an intent to re-add it later?

@geoffromer
Copy link
Contributor Author

This deletes functionality, but should it be making sure the equivalent functionality works with ref? What's the intent there?

This may just be a matter of clarifying the PR description, but why is some code migrated to ref but then, for example, most of the addr class tests are just deleted? Are there equivalent ref tests that you can point to, is the coverage no longer relevant for some reason, or is this just disabling support with an intent to re-add it later?

The corresponding ref tests were mostly added along with ref support in #6283; in general, every deleted test foo_addr.carbon (either a physical file or a file split) should have a corresponding foo.carbon that's identical except for using ref in place of addr. While deleting tests in this PR I noticed a few that I missed, so I've added them here to make sure we don't lose any coverage.

@geoffromer geoffromer requested a review from jonmeow November 17, 2025 18:34
@jonmeow
Copy link
Contributor

jonmeow commented Nov 17, 2025

The corresponding ref tests were mostly added along with ref support in #6283; in general, every deleted test foo_addr.carbon (either a physical file or a file split) should have a corresponding foo.carbon that's identical except for using ref in place of addr.

Maybe note this in the PR description? It would've been really helpful for review.

While deleting tests in this PR I noticed a few that I missed, so I've added them here to make sure we don't lose any coverage.

I don't see any new tests, did you push them?

@geoffromer
Copy link
Contributor Author

The corresponding ref tests were mostly added along with ref support in #6283; in general, every deleted test foo_addr.carbon (either a physical file or a file split) should have a corresponding foo.carbon that's identical except for using ref in place of addr.

Maybe note this in the PR description? It would've been really helpful for review.

OK, I've updated the description to try to clarify the mechanics of the transition.

While deleting tests in this PR I noticed a few that I missed, so I've added them here to make sure we don't lose any coverage.

I don't see any new tests, did you push them?

I misspoke; I didn't add any new test files, I just migrated a few files from addr to ref that I failed to migrate in #6283.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation An issue or proposed change to our documentation toolchain

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants