Skip to content

Conversation

@xuhdev
Copy link
Contributor

@xuhdev xuhdev commented Jun 28, 2025

Summary:
Buck's document on Java source ABI recommends adding required_for_source_abi = True to targets that export annotations:

... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Differential Revision: D77479748

@xuhdev xuhdev requested a review from kirklandsign as a code owner June 28, 2025 05:22
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 28, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit a224583 with merge base f2f2a9d (image):

BROKEN TRUNK - The following jobs failed but were 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 Jun 28, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77479748

@xuhdev
Copy link
Contributor Author

xuhdev commented Jun 28, 2025

@pytorchbot label "release notes: build"

@pytorch-bot pytorch-bot bot added the release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. label Jun 28, 2025
@xuhdev xuhdev force-pushed the export-D77479748 branch from 967ea2f to 299b4c3 Compare July 2, 2025 00:44
xuhdev added a commit to xuhdev/executorch that referenced this pull request Jul 2, 2025
…orch_llama (pytorch#12093)

Summary:

[Buck's document on Java source ABI](https://buck.build/concept/java_abis.html) recommends adding `required_for_source_abi = True` to targets that export annotations:

> ... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
> The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Differential Revision: D77479748
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77479748

@digantdesai
Copy link
Contributor

Rebase and make sure the android emulator job is ok or unrelated. Thanks.

xuhdev added a commit to xuhdev/executorch that referenced this pull request Jul 3, 2025
…orch_llama (pytorch#12093)

Summary:

[Buck's document on Java source ABI](https://buck.build/concept/java_abis.html) recommends adding `required_for_source_abi = True` to targets that export annotations:

> ... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
> The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Reviewed By: digantdesai, thezhangwei

Differential Revision: D77479748
@xuhdev xuhdev force-pushed the export-D77479748 branch from 69d7dbb to 0839b44 Compare July 3, 2025 23:10
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77479748

xuhdev added a commit to xuhdev/executorch that referenced this pull request Jul 3, 2025
…orch_llama (pytorch#12093)

Summary:
Pull Request resolved: pytorch#12093

[Buck's document on Java source ABI](https://buck.build/concept/java_abis.html) recommends adding `required_for_source_abi = True` to targets that export annotations:

> ... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
> The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Reviewed By: digantdesai, thezhangwei

Differential Revision: D77479748
@xuhdev xuhdev force-pushed the export-D77479748 branch from 0839b44 to 8d8e8ba Compare July 3, 2025 23:14
xuhdev added a commit to xuhdev/executorch that referenced this pull request Jul 4, 2025
…orch_llama (pytorch#12093)

Summary:

[Buck's document on Java source ABI](https://buck.build/concept/java_abis.html) recommends adding `required_for_source_abi = True` to targets that export annotations:

> ... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
> The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Reviewed By: digantdesai, thezhangwei

Differential Revision: D77479748
@xuhdev xuhdev force-pushed the export-D77479748 branch from 8d8e8ba to c72537e Compare July 4, 2025 01:01
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77479748

xuhdev added a commit to xuhdev/executorch that referenced this pull request Jul 4, 2025
…orch_llama (pytorch#12093)

Summary:

[Buck's document on Java source ABI](https://buck.build/concept/java_abis.html) recommends adding `required_for_source_abi = True` to targets that export annotations:

> ... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
> The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Reviewed By: digantdesai, thezhangwei

Differential Revision: D77479748
@xuhdev xuhdev force-pushed the export-D77479748 branch from c72537e to b58497f Compare July 4, 2025 04:02
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77479748

@xuhdev
Copy link
Contributor Author

xuhdev commented Jul 4, 2025

@digantdesai Could you check whether the emulator failure is relevant? I'm wondering if it is because I made the PR and don't have relevant permissions:

INSTRUMENTATION_STATUS: stack=java.io.IOException: File '/storage/emulated/0/Android/data/org.pytorch.executorch.test/cache/stories.pte' cannot be written to
	at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:357)
	at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:326)
	at org.apache.commons.io.FileUtils.copyInputStreamToFile(FileUtils.java:1510)
	at org.pytorch.executorch.LlmModuleInstrumentationTest.setUp(LlmModuleInstrumentationTest.kt:45)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at androidx.test.internal.runner.junit4.statement.RunBefores.evaluate(RunBefores.java:76)
	at androidx.test.rule.GrantPermissionRule$RequestPermissionStatement.evaluate(GrantPermissionRule.java:134)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at androidx.test.ext.junit.runners.AndroidJUnit4.run(AndroidJUnit4.java:162)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:56)
	at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:392)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2402)

@xuhdev xuhdev force-pushed the export-D77479748 branch from b58497f to 39361ee Compare July 4, 2025 17:30
xuhdev added a commit to xuhdev/executorch that referenced this pull request Jul 4, 2025
…orch_llama (pytorch#12093)

Summary:

[Buck's document on Java source ABI](https://buck.build/concept/java_abis.html) recommends adding `required_for_source_abi = True` to targets that export annotations:

> ... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
> The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Reviewed By: digantdesai, thezhangwei

Differential Revision: D77479748
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77479748

…orch_llama (pytorch#12093)

Summary:

[Buck's document on Java source ABI](https://buck.build/concept/java_abis.html) recommends adding `required_for_source_abi = True` to targets that export annotations:

> ... All annotations and compile-time constants (including enum values) used in the interface of a rule must be present during source-only ABI generation.
> The error will suggest adding required_for_source_abi = True to any rule that defines an annotation type or a compile-time constant that is used from another rule, ...

Reviewed By: digantdesai, thezhangwei

Differential Revision: D77479748
@xuhdev xuhdev force-pushed the export-D77479748 branch from 39361ee to a224583 Compare July 9, 2025 04:50
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77479748

@facebook-github-bot facebook-github-bot merged commit 4321307 into pytorch:main Jul 9, 2025
84 of 86 checks passed
@xuhdev xuhdev deleted the export-D77479748 branch July 9, 2025 08:08
Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
…orch_llama

Differential Revision: D77479748

Pull Request resolved: pytorch#12093
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. fb-exported release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants