-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Feature Request: mark tests flaky on FIPS #14746
Labels
crypto
Issues and PRs related to the crypto subsystem.
feature request
Issues that request new features to be added to Node.js.
python
PRs and issues that require attention from people who are familiar with Python.
test
Issues and PRs related to the tests.
tools
Issues and PRs related to the tools directory.
wip
Issues and PRs that are still a work in progress.
Comments
gibfahn
added
feature request
Issues that request new features to be added to Node.js.
test
Issues and PRs related to the tests.
tools
Issues and PRs related to the tools directory.
labels
Aug 10, 2017
Trott
added
the
python
PRs and issues that require attention from people who are familiar with Python.
label
Aug 10, 2017
If the buildbots were to set a NODE_BUILDBOT_TYPE environment variable, you could do this: env = {
# ...
'type': os.getenv('NODE_BUILDBOT_TYPE', 'default'),
} Would that work? |
Well for the fips check you could just do I was thinking more about how to structure the |
@komawar please go ahead and open a PR. That is always best. |
4 tasks
komawar
added a commit
to komawar/node
that referenced
this issue
Oct 20, 2017
The prior commit enables running tests on fips compliant systems by specifying tests to be marked flaky if needed so. This commit extends the ability by adding a rule to the Makefile so that tests can be run on fips compliant systems using the make command. Fixes: nodejs#14746
komawar
added a commit
to komawar/node
that referenced
this issue
Oct 20, 2017
This commit adds documentation lines to BUILDING.md file indicating the changes that have been made to enable marking flaky tests on fips compliant system. It is an extension to the prior commit that enables this behavior. Fixes: nodejs#14746
komawar
added a commit
to komawar/node
that referenced
this issue
Oct 20, 2017
A test has been added to the parallel directory which merely exits with the specified error message on fips. The parallel.status file also has been modified to mark this test as flaky on fips so, the default test suite will work without any modifications. This test also serves as documentation of the added feature metioned below. Inline documentation has been added to both the files. Fixes: nodejs#14746
MylesBorins
pushed a commit
that referenced
this issue
Dec 12, 2017
Adds a way to mark a specified test as 'flaky' on fips compliant systems. Earlier, the ``tools/test.py`` script supported only 'mode', 'system' and 'arch' for test environment specification. This limits the ability to specify the behavior of tests and setting pre-determined behavior of the same on other types of systems. As an example, the feature request below indicates the need to specify certain tests as 'flaky' on fips compliant systems. It hints at future possibility of a shared library, which in turn may need a specifier for running tests. This commit introduces a new item in the ``env`` dict, called ``type`` which defaults to ``simple`` type. It also adds an optional command line argument ``--type``, which inputs strings. Current functionality extends to setting ``simple`` or ``fips`` for this ``type`` variable. However, extending it to further uses is rather simple by adding "if" conditions at appropriate places in the ``tools/test.py`` script. PR-URL: #16329 Fixes: #14746 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins
pushed a commit
that referenced
this issue
Dec 12, 2017
Adds a way to mark a specified test as 'flaky' on fips compliant systems. Earlier, the ``tools/test.py`` script supported only 'mode', 'system' and 'arch' for test environment specification. This limits the ability to specify the behavior of tests and setting pre-determined behavior of the same on other types of systems. As an example, the feature request below indicates the need to specify certain tests as 'flaky' on fips compliant systems. It hints at future possibility of a shared library, which in turn may need a specifier for running tests. This commit introduces a new item in the ``env`` dict, called ``type`` which defaults to ``simple`` type. It also adds an optional command line argument ``--type``, which inputs strings. Current functionality extends to setting ``simple`` or ``fips`` for this ``type`` variable. However, extending it to further uses is rather simple by adding "if" conditions at appropriate places in the ``tools/test.py`` script. PR-URL: #16329 Fixes: #14746 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins
pushed a commit
that referenced
this issue
Dec 12, 2017
Adds a way to mark a specified test as 'flaky' on fips compliant systems. Earlier, the ``tools/test.py`` script supported only 'mode', 'system' and 'arch' for test environment specification. This limits the ability to specify the behavior of tests and setting pre-determined behavior of the same on other types of systems. As an example, the feature request below indicates the need to specify certain tests as 'flaky' on fips compliant systems. It hints at future possibility of a shared library, which in turn may need a specifier for running tests. This commit introduces a new item in the ``env`` dict, called ``type`` which defaults to ``simple`` type. It also adds an optional command line argument ``--type``, which inputs strings. Current functionality extends to setting ``simple`` or ``fips`` for this ``type`` variable. However, extending it to further uses is rather simple by adding "if" conditions at appropriate places in the ``tools/test.py`` script. PR-URL: #16329 Fixes: #14746 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
gibfahn
pushed a commit
that referenced
this issue
Dec 19, 2017
Adds a way to mark a specified test as 'flaky' on fips compliant systems. Earlier, the ``tools/test.py`` script supported only 'mode', 'system' and 'arch' for test environment specification. This limits the ability to specify the behavior of tests and setting pre-determined behavior of the same on other types of systems. As an example, the feature request below indicates the need to specify certain tests as 'flaky' on fips compliant systems. It hints at future possibility of a shared library, which in turn may need a specifier for running tests. This commit introduces a new item in the ``env`` dict, called ``type`` which defaults to ``simple`` type. It also adds an optional command line argument ``--type``, which inputs strings. Current functionality extends to setting ``simple`` or ``fips`` for this ``type`` variable. However, extending it to further uses is rather simple by adding "if" conditions at appropriate places in the ``tools/test.py`` script. PR-URL: #16329 Fixes: #14746 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
gibfahn
pushed a commit
that referenced
this issue
Dec 20, 2017
Adds a way to mark a specified test as 'flaky' on fips compliant systems. Earlier, the ``tools/test.py`` script supported only 'mode', 'system' and 'arch' for test environment specification. This limits the ability to specify the behavior of tests and setting pre-determined behavior of the same on other types of systems. As an example, the feature request below indicates the need to specify certain tests as 'flaky' on fips compliant systems. It hints at future possibility of a shared library, which in turn may need a specifier for running tests. This commit introduces a new item in the ``env`` dict, called ``type`` which defaults to ``simple`` type. It also adds an optional command line argument ``--type``, which inputs strings. Current functionality extends to setting ``simple`` or ``fips`` for this ``type`` variable. However, extending it to further uses is rather simple by adding "if" conditions at appropriate places in the ``tools/test.py`` script. PR-URL: #16329 Fixes: #14746 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
crypto
Issues and PRs related to the crypto subsystem.
feature request
Issues that request new features to be added to Node.js.
python
PRs and issues that require attention from people who are familiar with Python.
test
Issues and PRs related to the tests.
tools
Issues and PRs related to the tools directory.
wip
Issues and PRs that are still a work in progress.
See 8fae1e6#commitcomment-23583689
Currently
tools/test.py
only compares againstenv
, which is defined asWhere mode is release/debug, system is OS, and arch is ARCH.
We'd need to also have an option for FIPS, I guess that should be in
env
. Maybe atype
? Type could bedefault
,fips
, orsharedlib
(if we end up building a shared library as well we might want asharedlib
type).cc/ @Trott @bajtos
The text was updated successfully, but these errors were encountered: