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

DAOS-16220 test: Include username in default common test directory #14937

Draft
wants to merge 63 commits into
base: master
Choose a base branch
from

Conversation

phender
Copy link
Contributor

@phender phender commented Aug 15, 2024

To support multiple users testing in the same environment without sudo access the default common test directory will be made unique by including the user ID in the path.

Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Before requesting gatekeeper:

  • Two review approvals and any prior change requests have been resolved.
  • Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • Commit messages follows the guidelines outlined here.
  • Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • You are the appropriate gatekeeper to be landing the patch.
  • The PR has 2 reviews by people familiar with the code, including appropriate owners.
  • Githooks were used. If not, request that user install them and check copyright dates.
  • Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • All builds have passed. Check non-required builds for any new compiler warnings.
  • Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • If applicable, the PR has addressed any potential version compatibility issues.
  • Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • Extra checks if forced landing is requested
    • Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • No new NLT or valgrind warnings. Check the classic view.
    • Quick-build or Quick-functional is not used.
  • Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

To support multiple users testing in the same environment without sudo
access the default common test directory will be made unique by
including the user ID in the path.

Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Copy link

github-actions bot commented Aug 15, 2024

Ticket title is 'ftest: Include username in default common test directory'
Status is 'Awaiting backport'
Labels: 'daos_framework,testp2'
Job should run at elevated priority (1)
https://daosio.atlassian.net/browse/DAOS-16220

Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_setup_vm test_setup
Skip-func-hw-test-medium-verbs-provider: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_setup_vm test_setup
Skip-func-hw-test-medium-verbs-provider: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_setup_vm test_setup
Skip-func-hw-test-medium-verbs-provider: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_setup_vm test_setup
Skip-func-hw-test-medium-verbs-provider: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-14937/7/display/redirect

@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/8/execution/node/824/log

Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/9/execution/node/823/log

Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/10/execution/node/823/log

Test-tag: test_setup_vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/11/execution/node/823/log

Test-tag: test_setup_vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/12/execution/node/823/log

Test-tag: test_setup_vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Test-tag: test_setup_vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
 into pahender/DAOS-16220

Test-tag: test_setup_vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/13/execution/node/798/log

Test-tag: test_setup_vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/14/execution/node/823/log

Test-tag: test_setup_vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/15/execution/node/798/log

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pr control test_agent_failure_isolation

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
str: regular expression to use to search for the command

"""
return "'({})'".format("|".join(self._exe_names + self.job._exe_names))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

protected-access, Access to a protected member _exe_names of a client class

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed, will address in DAOS-16100

@@ -45,7 +46,7 @@ def get_server_command(group, cert_dir, bin_dir, config_file, config_temp=None):
transport_config = DaosServerTransportCredentials(cert_dir)
common_config = CommonConfig(group, transport_config)
config = DaosServerYamlParameters(config_file, common_config)
command = DaosServerCommand(bin_dir, config, None)
command = DaosServerCommand(bin_dir, config, None, run_user)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal, but the server fundamentally cannot be ran as a non-privileged user so this will probably never be used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, this is more to keep the code aligned and to avoid any special handling where an attribute may not be set.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pr control test_agent_failure_isolation daily_regression

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@github-actions github-actions bot added the priority Ticket has high priority (automatically managed) label Oct 4, 2024
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/42/execution/node/800/log

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pr control test_agent_failure_isolation daily_regression

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/43/execution/node/825/log

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pr control test_agent_failure_isolation daily_regression

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/44/execution/node/1158/log

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/44/execution/node/1112/log

@phender
Copy link
Contributor Author

phender commented Oct 14, 2024

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pr control test_agent_failure_isolation daily_regression

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/45/execution/node/1116/log

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/45/execution/node/1100/log

@phender phender marked this pull request as ready for review October 22, 2024 20:26
@phender phender requested a review from daltonbohning October 22, 2024 20:26
@phender phender marked this pull request as draft October 22, 2024 20:33
daltonbohning
daltonbohning previously approved these changes Oct 22, 2024
Adding SubprocessManager.get_journalctl() method to ensure command is
run with the correct user.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pr control test_agent_failure_isolation daily_regression AgentFailure CriticalIntegrationWithServers CriticalIntegrationWithoutServers ContinuesAfterStop TestWithScrubberTargetEviction soak_smoke

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: pr control test_agent_failure_isolation daily_regression AgentFailure CriticalIntegrationWithServers CriticalIntegrationWithoutServers ContinuesAfterStop TestWithScrubberTargetEviction soak_smoke

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
@@ -444,7 +448,7 @@ def get_host_data(hosts, command, text, error, timeout=None):
data_error = "[ERROR]"

# Find the data for each specified servers
log.info(" Obtaining %s data on %s", text, hosts)
log.info(" Obtaining %s data on %s using: %s", text, hosts, command)
Copy link
Contributor Author

@phender phender Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to compensate for the loss of logging the journalctl command in src/tests/ftest/util/soak_utils.py old line 224.

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/47/execution/node/1025/log

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium Verbs Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14937/47/execution/node/1169/log

@daosbuild1
Copy link
Collaborator

Test stage Functional Hardware Medium completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14937/47/testReport/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority Ticket has high priority (automatically managed)
Development

Successfully merging this pull request may close these issues.

3 participants