Skip to content

[Nexthop] Allow passing a timeout to unit tests#654

Closed
benoit-nexthop wants to merge 1 commit intofacebook:mainfrom
nexthop-ai:test-timeout
Closed

[Nexthop] Allow passing a timeout to unit tests#654
benoit-nexthop wants to merge 1 commit intofacebook:mainfrom
nexthop-ai:test-timeout

Conversation

@benoit-nexthop
Copy link
Contributor

@benoit-nexthop benoit-nexthop commented Nov 12, 2025

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

When running unit tests, no timeout was enforced. Add an optional
--timeout flag to getdeps.py that is passed to ctest and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

Test Plan

Existing unit tests pass within a given timeout (e.g. 90 seconds).

Allow passing a timeout to unit tests

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

Existing unit tests pass within the given timeout.
@meta-cla meta-cla bot added the CLA Signed label Nov 12, 2025
@benoit-nexthop benoit-nexthop changed the title Allow passing a timeout to unit tests [Nexthop] Allow passing a timeout to unit tests Nov 12, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 12, 2025

@KevinYakar has imported this pull request. If you are a Meta employee, you can view this in D86883098.

meta-codesync bot pushed a commit to facebook/CacheLib that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
@meta-codesync meta-codesync bot closed this in ddb20ad Nov 14, 2025
meta-codesync bot pushed a commit to facebook/folly that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/mvfst that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 14, 2025

@KevinYakar merged this pull request in ddb20ad.

meta-codesync bot pushed a commit to facebook/openr that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebookexperimental/moxygen that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/wangle that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebookincubator/hsthrift that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/fbthrift that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebookincubator/katran that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebookexperimental/edencommon that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebookincubator/cinderx that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebookincubator/fizz that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/proxygen that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/hhvm that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/sapling that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/fb303 that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
meta-codesync bot pushed a commit to facebook/watchman that referenced this pull request Nov 14, 2025
Summary:
**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

When running unit tests, no timeout was enforced. Add an optional
`--timeout` flag to `getdeps.py` that is passed to `ctest` and update
our build script to set a default timeout of 90 seconds per test, which
is generous enough for now.

X-link: facebook/fboss#654

Reviewed By: ahornby

Differential Revision: D86883098

Pulled By: KevinYakar

fbshipit-source-id: 9c841311460a546ae9189ddf62ee461aad948871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants