Skip to content

Conversation

@cyyever
Copy link
Contributor

@cyyever cyyever commented Jul 22, 2025

Summary

Move remaining usage of optional to std::optional.

@pytorch-bot
Copy link

pytorch-bot bot commented Jul 22, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12707

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure, 3 Unrelated Failures

As of commit df13091 with merge base 892d40e (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 22, 2025
@manuelcandales manuelcandales added topic: not user facing release notes: none Do not include this in the release notes labels Jul 29, 2025
@cyyever cyyever changed the title Use std::optinal Use std::optional Jul 30, 2025
@cyyever
Copy link
Contributor Author

cyyever commented Jul 30, 2025

@manuelcandales I have fixed the build errors.

@cyyever cyyever marked this pull request as draft August 13, 2025 00:45
@cyyever
Copy link
Contributor Author

cyyever commented Aug 13, 2025

@JacobSzwejbka Fixed

@swolchok
Copy link
Contributor

the optional classes being replaced here are already synonymous with std::optional and therefore this is a cosmetic change, right? If so, with the 1.0 branch cut looming, let's hold off on merging this one.

@cyyever
Copy link
Contributor Author

cyyever commented Sep 11, 2025

@swolchok Thank you for your kindly support.

@swolchok
Copy link
Contributor

swolchok commented Nov 3, 2025

1.0 is safely out the door! mind knocking out a rebase?

@cyyever
Copy link
Contributor Author

cyyever commented Nov 3, 2025

@swolchok Done

Copy link
Contributor

@swolchok swolchok left a comment

Choose a reason for hiding this comment

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

thanks! intend to merge when CI is green

@cyyever
Copy link
Contributor Author

cyyever commented Nov 4, 2025

@swolchok I need some iterations to fix CI errors.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 4, 2025

To add the ciflow label ciflow/trunk please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@pytorch-bot pytorch-bot bot removed the ciflow/trunk label Nov 4, 2025
Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@cyyever
Copy link
Contributor Author

cyyever commented Nov 5, 2025

@swolchok @shoumikhin The current CI failures are unrelated.

@swolchok swolchok merged commit 3f4f500 into pytorch:main Nov 5, 2025
138 of 142 checks passed
@cyyever cyyever deleted the stdsv5 branch November 5, 2025 01:12
metascroy added a commit that referenced this pull request Nov 5, 2025
metascroy added a commit that referenced this pull request Nov 5, 2025
Reverts #12707

This causes 1000s of internal CI failures, e.g.,

error: no template named 'optional' in namespace 'torch::executor'; did
you mean simply 'optional'?
using optional = torch::executor::optional<T>;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
                 optional
note: 'optional' declared here
using ::executorch::aten::optional;
@cyyever cyyever restored the stdsv5 branch November 6, 2025 00:59
abhinaykukkadapu pushed a commit to abhinaykukkadapu/executorch that referenced this pull request Nov 6, 2025
### Summary
Move remaining usage of optional to `std::optional`.

---------

Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
abhinaykukkadapu pushed a commit to abhinaykukkadapu/executorch that referenced this pull request Nov 6, 2025
Reverts pytorch#12707

This causes 1000s of internal CI failures, e.g.,

error: no template named 'optional' in namespace 'torch::executor'; did
you mean simply 'optional'?
using optional = torch::executor::optional<T>;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
                 optional
note: 'optional' declared here
using ::executorch::aten::optional;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants