-
Notifications
You must be signed in to change notification settings - Fork 298
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-13886 test: Fix system name validation #12570
Conversation
Bug-tracker data: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Test stage Functional on EL 8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-12570/1/testReport/ |
9fc7233
to
571e013
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
571e013
to
2ac3633
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
2ac3633
to
9790013
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
9790013
to
5601fae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Test stage Functional on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12570/5/execution/node/1097/log |
5601fae
to
eed5046
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Test stage Functional on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12570/6/execution/node/1097/log |
eed5046
to
f84e1d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Test stage Functional on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12570/7/execution/node/1097/log |
f84e1d5
to
b17991f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
b17991f
to
3041157
Compare
…/daos-13886 Features: control Required-githooks: true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Restart CI build as it was stuck in functional HW test with the wolf network issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
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-12570/19/execution/node/1242/log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
@@ -33,7 +33,7 @@ control_config_val: !mux | |||
config_val: | |||
- "name" | |||
- "! @#$%^&*()_+{}|:<>?-=[];',./" | |||
- "PASS" | |||
- "FAIL" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should expand the coverage to cover special characters and over length, the reason this now fails is because there is a new length requirement introduced by 0b5cdc0 which limits to 15 chars.
I suggest reducing the value in this test case to 15 chars (which should pass even with special characters) and leaving the expectation as "PASS". Then add another name_links_exceeded
test case with the original value which should result in a failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Features: control Required-githooks: true Signed-off-by: Tom Nabarro <tom.nabarro@intel.com>
3ba1ce2
to
ce83191
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
# Remove configuration files | ||
cleanup_cmds = [ | ||
"sudo find /etc/daos/certs -type f -delete -print", | ||
"sudo rm -fv /etc/daos/daos_server.yml /etc/daos/daos_control.yml" | ||
" /etc/daos/daos_agent.yml", | ||
] | ||
for cmd in cleanup_cmds: | ||
run_pcmd(hosts=self.hostlist_servers, command=cmd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we need to run this test w/o certificates, the preferred method is to use the following test yaml entries:
server_config:
transport_config:
allow_insecure: true
agent_config:
transport_config:
allow_insecure: true
dmg:
transport_config:
allow_insecure: true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add these config parameters in a follow up PR as this one has been already merged.
Otherwise, I would prefer to keep the cleanup cmds as it seems that the /etc/daos is not properly cleanned between test runs.
- Add insecure yaml config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with PR #12615
# Don't waste time starting servers and agents. | ||
self.setup_start_servers = False | ||
self.setup_start_agents = False | ||
|
||
self.errors = [] | ||
|
||
def report_result(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tearDown()
and setUp()
methods provide markers to help find the beginning and end of the test - a sequence of 80 =
characters. We typically just end each test_*
method with self.log.info("Test passed")
to indicate test passing (in addition to avocado's own messaging) and rely on self.fail()
or assertions to indicate the test failure before calling tearDown()
. If we need more than this it should be standardized so we can use the same search string for all test job.log results. That said, it can be addressed in a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I have done it this way, to keep the same behavior as it was originally done in the PR.
However, if there is some standard to respect I will fix this in a follow up PR as this one has been already merged.
- Use standardized test result message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with PR #12615
Description
Fix test regression with system name introduce with PR #12509:
Fix regression introduce with PR #12508: issue with dmg and configuration files parsing.
Miscellaneous small improvements of the src/tests/ftest/control/version.py test.
Validation
Test-tag is used to limit the tests to the functional ones updated by this PR.
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: