Skip to content

Conversation

@AbishekS
Copy link
Contributor

@AbishekS AbishekS commented Nov 5, 2025

Summary:

Differential Revision: D86111386

@meta-cla meta-cla 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 Nov 5, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 5, 2025

@AbishekS has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86111386.

@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.63%. Comparing base (dd683f4) to head (05965a9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1161   +/-   ##
=======================================
  Coverage   91.63%   91.63%           
=======================================
  Files          84       84           
  Lines        6595     6595           
=======================================
  Hits         6043     6043           
  Misses        552      552           
Flag Coverage Δ
unittests 91.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

AbishekS added a commit to AbishekS/torchx that referenced this pull request Nov 5, 2025
Summary:


Internal
Generate stubs for all the methods generated by the decorator of `named_resources`.

Previous attempt reverted D83985902 because of autodeps issues. 
Genrule that looks at the all the named_resources and generates a file `named_resources.pyi` which is used by the test. 


Three targets added
1. `//torchx/fb:named_resources_gen`
2. `//torchx/specs:named_resources_stubs`
3. `//torchx/specs:named_resources_stubs_lib`

Use `//torchx/specs:named_resources_stubs_lib` in the test target.

Modify some named resources as well.

Differential Revision: D86111386
AbishekS added a commit to AbishekS/torchx that referenced this pull request Nov 6, 2025
Summary:


Internal
Generate stubs for all the methods generated by the decorator of `named_resources`.

Previous attempt reverted D83985902 because of autodeps issues. 
Genrule that looks at the all the named_resources and generates a file `named_resources.pyi` which is used by the test. 


Three targets added
1. `//torchx/fb/stubgen:generate_named_resources_stub`
2. `//torchx/specs:named_resources_stubs`

Introduce a .bzl file and wrapper for our usecase so we can share srcs and deps among two python libraries
1. //torchx/specs:lib_core_srcs - which is used by the other target `//torchx/fb/stubgen:generate_named_resources_stub` to create the stubs
2. //torchx/specs:lib_core - which is as before but with the additional type_stubs included. 

Additionally,
Modify some named resources as well.
Fix some imports for completion

Differential Revision: D86111386
Summary:


Internal
Generate stubs for all the methods generated by the decorator of `named_resources`.

Previous attempt reverted D83985902 because of autodeps issues. 
Genrule that looks at the all the named_resources and generates a file `named_resources.pyi` which is used by the test. 


Three targets added
1. `//torchx/fb/stubgen:generate_named_resources_stub`
2. `//torchx/specs:named_resources_stubs`

Introduce a .bzl file and wrapper for our usecase so we can share srcs and deps among two python libraries
1. //torchx/specs:lib_core_srcs - which is used by the other target `//torchx/fb/stubgen:generate_named_resources_stub` to create the stubs
2. //torchx/specs:lib_core - which is as before but with the additional type_stubs included. 

Additionally,
Modify some named resources as well.
Fix some imports for completion

Differential Revision: D86111386
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 meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants