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

Bring up previous session #487

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jedoku
Copy link
Contributor

@Jedoku Jedoku commented Oct 7, 2024

WIP

bin/auto_hck Fixed Show fixed Hide fixed
lib/project.rb Fixed Show fixed Hide fixed
lib/project.rb Fixed Show fixed Hide fixed
lib/project.rb Fixed Show fixed Hide fixed
lib/setupmanagers/qemuhck/qemu_machine.rb Fixed Show fixed Hide fixed
lib/setupmanagers/qemuhck/qemu_machine.rb Fixed Show fixed Hide fixed
@Jedoku Jedoku force-pushed the Add-ability-to-bring-up-previous-session branch 2 times, most recently from a94ca1f to 71d5c6c Compare October 8, 2024 22:29
@akihikodaki
Copy link
Contributor

I'm not a fan of this idea. It brings significant complexity similar to --dump, which adds an alternative way to run tests.
Its use case is also unclear; I often repeatedly run tests using the command line history and I'm satisfied with it.

@Jedoku Jedoku force-pushed the Add-ability-to-bring-up-previous-session branch from 71d5c6c to 7e1ff8a Compare October 18, 2024 15:48
lib/session.rb Outdated Show resolved Hide resolved
@@ -581,6 +582,8 @@ def save_run_script(file_name, file_content)

def run_config_commands
device_config_commands.each do |dirty_cmd|
next if dirty_cmd.include?('@swtpm_setup_bin@') && @run_opts[:reuse_tpm]
Copy link
Contributor

Choose a reason for hiding this comment

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

Figure out how to handle this in a generic manner instead of introducing a special handling.

lib/engines/hcktest/playlist.rb Outdated Show resolved Hide resolved
lib/engines/hcktest/tools.rb Outdated Show resolved Hide resolved
lib/project.rb Outdated Show resolved Hide resolved
lib/project.rb Outdated Show resolved Hide resolved
lib/project.rb Outdated Show resolved Hide resolved
@Jedoku Jedoku force-pushed the Add-ability-to-bring-up-previous-session branch from 7e1ff8a to 8a79a7e Compare November 27, 2024 13:14
@Jedoku Jedoku requested a review from akihikodaki December 1, 2024 00:10
@Jedoku Jedoku changed the title RFC: Bring up previous session Bring up previous session Dec 2, 2024
lib/project.rb Outdated Show resolved Hide resolved
lib/session.rb Outdated Show resolved Hide resolved
lib/models/session.rb Outdated Show resolved Hide resolved
@Jedoku Jedoku force-pushed the Add-ability-to-bring-up-previous-session branch from 8a79a7e to 0ba68bc Compare December 19, 2024 08:54
@Jedoku Jedoku requested a review from akihikodaki December 19, 2024 09:06
Comment on lines +17 to +39
cli.test.platform = session.test.platform
cli.test.drivers = session.test.drivers
cli.test.driver_path ||= session.test.driver_path
cli.test.commit ||= session.test.commit
cli.test.svvp = session.test.svvp
cli.test.dump ||= session.test.dump
cli.test.gthb_context_prefix ||= session.test.gthb_context_prefix
cli.test.gthb_context_suffix ||= session.test.gthb_context_suffix
cli.test.playlist ||= session.test.playlist
cli.test.select_test_names ||= session.test.select_test_names
cli.test.reject_test_names ||= session.test.reject_test_names
cli.test.reject_report_sections ||= session.test.reject_report_sections
cli.test.boot_device ||= session.test.boot_device
cli.test.allow_test_duplication ||= session.test.allow_test_duplication
cli.test.manual ||= true
cli.test.package_with_playlist |= session.test.package_with_playlist
cli.test.session = session_path(cli)
cli.test.latest_session ||= session.test.latest_session
cli.common.verbose ||= session.common.verbose
cli.common.config ||= session.common.config
cli.common.client_world_net ||= session.common.client_world_net
cli.common.id ||= session.common.id
cli.common.share_on_host_path ||= session.common.share_on_host_path
Copy link
Contributor

Choose a reason for hiding this comment

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

What about just assigning session.test to cli.test instead of listing every properties here?

Comment on lines +47 to +50
{
test: options.test.serialize,
common: options.common.serialize
}.to_json
Copy link
Contributor

Choose a reason for hiding this comment

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

Use Models::Session.

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.

2 participants