Skip to content

Feature/support disabling screen_file argument#40

Merged
goodboy merged 1 commit into
SIPp:masterfrom
y-luis-rojo:feature/support-disabling-logs
Aug 21, 2018
Merged

Feature/support disabling screen_file argument#40
goodboy merged 1 commit into
SIPp:masterfrom
y-luis-rojo:feature/support-disabling-logs

Conversation

@y-luis-rojo
Copy link
Copy Markdown
Contributor

@y-luis-rojo y-luis-rojo commented Aug 11, 2018

Allow disabling screen_file argument.

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Aug 12, 2018

@y-luis do you mind squashing this history down to a single commit.
Lot of noise in that commit chain ;)

@y-luis-rojo y-luis-rojo force-pushed the feature/support-disabling-logs branch from 8fc712e to a298e63 Compare August 12, 2018 13:29
@y-luis-rojo
Copy link
Copy Markdown
Contributor Author

Done ;)

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Aug 12, 2018

@y-luis awesome 👍

I'm just trying to remember (will look at the code later) exposing this in Agent.__init__() means the public apis in pysipp/__init__.py also have direct exposure right?

I guess what I'm asking is what is the code you are using right now to disable logs (with these changes in)? Also we should probably have a test for this I'm thinking at least to verify the api?

@y-luis-rojo
Copy link
Copy Markdown
Contributor Author

y-luis-rojo commented Aug 12, 2018

This comes from using pysipp with sipp version 3.3 which does not support log files. The way this change can be used is passing the logs argument to scenario creation:

scen = pysipp.scenario(dirpath=temp_dir, enable_screen_file=False)

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Aug 13, 2018

@y-luis hmm I wonder if it's sipp version specific maybe we should have some logic to detect that and automatically disable logs - or at the least document this option in the readme.

@y-luis-rojo
Copy link
Copy Markdown
Contributor Author

I agree @tgoodlet. I can document that in the README, but I do not know which is the minimum version supporting log files. Will have to research it.

@y-luis-rojo
Copy link
Copy Markdown
Contributor Author

Seems -screen_file argument was added at version 3.5.0: https://sourceforge.net/p/sipp/mailman/message/34041962/

@y-luis-rojo y-luis-rojo changed the title Feature/support disabling logs Feature/support disabling trace arguments Aug 13, 2018
@y-luis-rojo y-luis-rojo changed the title Feature/support disabling trace arguments Feature/support disabling trace related arguments Aug 13, 2018
@goodboy
Copy link
Copy Markdown
Member

goodboy commented Aug 14, 2018

@y-luis hmm yeah maybe worth documenting as well.
sipp versions was not something that was scrutinized too much with this project - it was built on whatever the latest version was at the time.

@y-luis-rojo y-luis-rojo force-pushed the feature/support-disabling-logs branch from 7b137ee to 448857d Compare August 17, 2018 10:44
@y-luis-rojo y-luis-rojo changed the title Feature/support disabling trace related arguments Feature/support disabling screen_file argument Aug 17, 2018
@y-luis-rojo
Copy link
Copy Markdown
Contributor Author

@tgoodlet, feature fixed to only disable -screen_file which is the only non-supported argument in SIPp < 3.5.0. Also, the description was included in the README.

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Aug 20, 2018

@y-luis awesome nice work 👍
Mind rebasing this onto master now that #41 is in - get a clean run and this is likely good to go!

@goodboy goodboy requested a review from vodik August 20, 2018 21:22
@goodboy goodboy self-assigned this Aug 20, 2018
@y-luis-rojo
Copy link
Copy Markdown
Contributor Author

Thanks, @tgoodlet. Merged #41.

@goodboy
Copy link
Copy Markdown
Member

goodboy commented Aug 21, 2018

@y-luis yeah see my similar quiff in #38 but you should rebase out the history from the CI fix branch so they don't show up here.

Thanks!

Copy link
Copy Markdown
Member

@vodik vodik left a comment

Choose a reason for hiding this comment

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

I see nothing wrong with merging this once @tgoodlet is happy.

Nice work.

@y-luis-rojo y-luis-rojo force-pushed the feature/support-disabling-logs branch from 5622b93 to d3b3cca Compare August 21, 2018 08:12
@y-luis-rojo
Copy link
Copy Markdown
Contributor Author

git rebase done.

@y-luis-rojo y-luis-rojo force-pushed the feature/support-disabling-logs branch 3 times, most recently from e08b4f4 to b01bf79 Compare August 21, 2018 09:04
Added description in README.
@y-luis-rojo y-luis-rojo force-pushed the feature/support-disabling-logs branch from b01bf79 to 06bff09 Compare August 21, 2018 09:11
@goodboy goodboy merged commit b2cd54d into SIPp:master Aug 21, 2018
@y-luis-rojo y-luis-rojo deleted the feature/support-disabling-logs branch August 22, 2018 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants