Skip to content

Conversation

@portante
Copy link
Member

@portante portante commented Sep 22, 2020

Fixes issue #1751, where tools with multiple arguments only have the first argument passed to the tool command.

This PR is only for the b0.69 branch.

@portante portante added bug Agent tools Of and related to the operation and behavior of various tools (iostat, sar, etc.) labels Sep 22, 2020
@portante portante requested a review from ndokos September 22, 2020 19:17
@portante portante self-assigned this Sep 22, 2020
@portante portante changed the title Fix tool argument handling Fix tool argument handling (v0.69) Sep 22, 2020
ndokos
ndokos previously approved these changes Sep 22, 2020
Copy link
Member

@ndokos ndokos left a comment

Choose a reason for hiding this comment

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

LGTM - do we need to turn off black for this? The tests are failing because of it.

See PR distributed-system-analysis#1768, #d382a8da2b8bdac4e88fe0f6da24ec31fc6d1051.
@portante portante force-pushed the fix-postprocess-tools branch from b243fa1 to 7f0d31d Compare September 22, 2020 23:04
@portante
Copy link
Member Author

Do we need to turn off black for this? The tests are failing because of it.

I back-ported PR #1768 to this branch, which should fix that problem. The agent and server tests also failed, but they seem to be an ordering problem we have not locked down in the unit tests.

@portante portante force-pushed the fix-postprocess-tools branch from 7f0d31d to 4419bd7 Compare September 23, 2020 00:02
@portante portante requested a review from ndokos September 23, 2020 00:02
@portante
Copy link
Member Author

@ndokos, so I've had to add a couple more commits to address the test failures. Seems like we have a working environment now.

@portante portante dismissed ndokos’s stale review September 23, 2020 00:03

Made some major, but subtle, changes.

This is a back-port of #bf382c23f2ddd1a1a97a6c035fbff2cc6f3c9313, from
PR distributed-system-analysis#1733.
@portante portante force-pushed the fix-postprocess-tools branch 2 times, most recently from 0172419 to 6cb7649 Compare September 23, 2020 01:18
This is a back-port of #47edfa80d9 (PR distributed-system-analysis#1734).
When `pbench-register-tool` accepts command line arguments to add as
tool options, the order of those options received needs to be preserved.

The code needs to use indexed arrays properly to preserve order.  It was
trying to use associative arrays as indexed.

We also add a unit test for `pbench-start-tools`, using the `tcpdump`
command with two arguments registered.
Fixes issue distributed-system-analysis#1751, where tools with multiple arguments only have the
first argument passed to the tool command.
@portante portante force-pushed the fix-postprocess-tools branch from 6cb7649 to beeff24 Compare September 23, 2020 01:27
Copy link
Contributor

@zulcss zulcss left a comment

Choose a reason for hiding this comment

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

lgtm

@portante portante merged commit 88e9878 into distributed-system-analysis:b0.69 Sep 23, 2020
@portante portante added this to the v0.69 milestone May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Agent bug tools Of and related to the operation and behavior of various tools (iostat, sar, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When using tcpdump with 2 args like --interface=br1 --packets=1000 2nd arg is ignored

3 participants