Skip to content
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

Execute C++ based GTest unit tests from a python wrapper #64067

Open
malfet opened this issue Aug 26, 2021 · 10 comments
Open

Execute C++ based GTest unit tests from a python wrapper #64067

malfet opened this issue Aug 26, 2021 · 10 comments

Comments

@malfet
Copy link
Contributor

@malfet malfet commented Aug 26, 2021

Motivation

Currently lots of C++ based unit tests are executed directly from test.sh/win-test.sh for example:

"$TORCH_BIN_DIR"/FileStoreTest --gtest_output=xml:$TEST_REPORTS_DIR/FileStoreTest.xml

Which have following drawbacks:

  • It excluded those test runtime from auto-sharding/auto-categorization
  • Make them subject of running on only particular platform (as win-test.sh and test.sh are two different files)
  • Make them abort abort test execution on the first failure despite existing policy
  • Make them susceptible of not reporting test execution results in standard XML format (if someone forgets to add --gtest_output) argument

Pitch

Add a .json file with all C++ GTest based tests or just add them directly to run_test.py akin to

TESTS = [

This would allow our auto-sharding system to balance them correctly across the shards, continue execution over failed tests as well as using re-using some of standard decorators for excluding test runs on certain configurations

cc @ezyang @seemethere @malfet @walterddr @lg20987 @pytorch/pytorch-dev-infra

@Prashant723
Copy link

@Prashant723 Prashant723 commented Aug 27, 2021

can I contribute to this? this will be my first, can anybody help me!

@Akshat1331
Copy link

@Akshat1331 Akshat1331 commented Aug 27, 2021

can i also work on this? it will be mine first too, soo can we contribute together @Prashant723 cause i am a begineer too.

@Prashant723
Copy link

@Prashant723 Prashant723 commented Aug 27, 2021

@nikhilsajwan
Copy link

@nikhilsajwan nikhilsajwan commented Aug 28, 2021

hi, i would also like to contribute to this

@Akshat1331
Copy link

@Akshat1331 Akshat1331 commented Aug 28, 2021

@S-T-A-R-L-O-R-D
Copy link

@S-T-A-R-L-O-R-D S-T-A-R-L-O-R-D commented Aug 28, 2021

I cant find c++ Gtest, can anyone tell me where are they stored.

@JaiJoshi123
Copy link

@JaiJoshi123 JaiJoshi123 commented Aug 29, 2021

I would love to contribute too!

@haovic haovic self-assigned this Aug 30, 2021
@janeyx99 janeyx99 moved this from Needs Triage to Sprint TODO in PyTorch Dev Infra Aug 30, 2021
haovic added a commit to haovic/pytorch that referenced this issue Aug 31, 2021
…pper

Summary:
This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 783d908a2d3a97b5e65e8b5d3b28b79e715b1cca
@FlashStar09
Copy link

@FlashStar09 FlashStar09 commented Aug 31, 2021

I would like to contribute here.

@carolyngundimi
Copy link

@carolyngundimi carolyngundimi commented Aug 31, 2021

would like to contribute

@Mansi2908
Copy link

@Mansi2908 Mansi2908 commented Aug 31, 2021

I would like to contribute

haovic added a commit to haovic/pytorch that referenced this issue Aug 31, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 5ba0d2993e2980c9272f8d627c45ed0965d0483b
haovic added a commit to haovic/pytorch that referenced this issue Sep 1, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: ea3cb5de079b2916fd3515df9057454223f7c24f
haovic added a commit to haovic/pytorch that referenced this issue Sep 1, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: fb34f398a6d5de26c11a0cf494991aeafea6b088
haovic added a commit to haovic/pytorch that referenced this issue Sep 1, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 49b4ab43353d14dcdf43aaa8d9ae6901bbff04b9
haovic added a commit to haovic/pytorch that referenced this issue Sep 8, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 128ab6d932591b6487ce430b5df0df651f4e7792
haovic added a commit to haovic/pytorch that referenced this issue Sep 8, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 327f77fa7a2d25a1cfbdc24f358436ca2e197538
haovic added a commit to haovic/pytorch that referenced this issue Sep 8, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 184214ffa35ed764f1c8b5fca9d7d4d33a2cc2ee
haovic added a commit to haovic/pytorch that referenced this issue Sep 8, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 7566ba6c7d4dc47011368003b96be1f1ee41f778
haovic added a commit to haovic/pytorch that referenced this issue Sep 9, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 7eaa189c7fcd6f09b1b4ffdaf1683bd9cd59f445
haovic added a commit to haovic/pytorch that referenced this issue Sep 9, 2021
…pper (pytorch#64252)

Summary:
Pull Request resolved: pytorch#64252

This is the beginning of transitioning away from test.sh: pytorch#64067

Moved execution of FileStoreTest, HashStoreTest, TCPStoreTest from test.sh to run_test.py. Since these are compiled tests, the logic of test.sh was just migrated and the tests are run through subprocess.

Test Plan:
```
python3 test/run_test.py --include cpp/c10d/FileStoreTest cpp/c10d/HashStoreTest cpp/c10d/TCPStoreTest
```

Wait for CI

Differential Revision: D30662844

fbshipit-source-id: 3807399df05a0f5a08e06f11eba68f602b2bf014
@malfet malfet moved this from Needs Triage to Backlog in PyTorch Dev Infra Oct 11, 2021
@malfet malfet moved this from Backlog to Sprint TODO in PyTorch Dev Infra Oct 11, 2021
driazati added a commit that referenced this issue Oct 19, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 19, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 19, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 19, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 20, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 20, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 20, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 20, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 21, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 22, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 22, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 22, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 22, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 23, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 23, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 23, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 23, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 23, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
driazati added a commit that referenced this issue Oct 23, 2021
This adds a Python-based wrapper for running C++ tests intended to be run in CI as part of #64067. Eventually this should replace all manual invocations of running a C++ test in CI. For local development running the binaries manually is still the best UX since you have full control of gtest flags and can avoid Python's startup time. 

For simple tests that can just be run out-of-the-box, add them to the [allowlist](https://github.com/pytorch/pytorch/pull/65514/files#diff-c9f1a162beb062b5905b0b8ae2a7d39ba453b1a821b62094687dbb8ce67763dbR39). This PR has an example of a more complicated invocation for `test_jit` as well which can be implemented in Python with some custom logic.

Differential Revision: [D31296508](https://our.internmc.facebook.com/intern/diff/D31296508)

[ghstack-poisoned]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.