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

Deprecate CLI runtimer #415

Merged
merged 1 commit into from
Aug 23, 2022
Merged

Deprecate CLI runtimer #415

merged 1 commit into from
Aug 23, 2022

Conversation

sm-shaw
Copy link
Contributor

@sm-shaw sm-shaw commented Aug 17, 2022

Pull request addresses issues #387 #403 and fixes #414 allowing a simpler command line script such as the following to run a basic timed workload automating loadscript, vucreate and runtimer.

dbset db maria
dbset bm TPROC-C
diset tpcc maria_driver timed
diset tpcc maria_rampup 1
diset tpcc maria_duration 2
vuset vu vcpu
vurun

The PR automates loadscript for the CLI as per #403 however only if there is no script loaded at all. The script could be refreshed for each run when vucreate is run however if customscript has been used then it would always be overwritten, therefore any existing script will be retained.
if loadscript, vucreate and runtimer are used they continue to work as before apart from runtimer and waittocomplete that print messages that the command is deprecated.
As the timers are now automated Ctrl-C will be permitted in interactive mode as well as scripted.

@sm-shaw sm-shaw linked an issue Aug 17, 2022 that may be closed by this pull request
@sm-shaw sm-shaw removed a link to an issue Aug 17, 2022
This was linked to issues Aug 17, 2022
@sm-shaw sm-shaw added this to To do in HammerDB 5.0 via automation Aug 17, 2022
@sm-shaw
Copy link
Contributor Author

sm-shaw commented Aug 17, 2022

Pull request also changes the default workload to timed from test as this is often the default especially when running from the CLI.

@@ -54,7 +54,8 @@ proc TclReadLine::setup_prompt_requirements {} {
package require Expect
interp alias {} stty {} exp_stty
# Prevent sigint from killing our shell:
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is now out of date.

@abondvt89
Copy link
Contributor

Merging after reviews and approval of the three members of the code maintenance team.

@abondvt89 abondvt89 merged commit 5757a6c into TPC-Council:master Aug 23, 2022
HammerDB 5.0 automation moved this from In Progress to Done Aug 23, 2022
@sm-shaw sm-shaw deleted the 387 branch November 23, 2022 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
HammerDB 5.0
  
Done
Development

Successfully merging this pull request may close these issues.

ERROR: no such table: JOBMAIN Automate CLI loadscript Deprecate CLI runtimer command
3 participants