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

Check whether ANDROID_SERIAL was set when working with multiple devices #1305

Merged
merged 5 commits into from
Jan 30, 2025

Conversation

naomipappe
Copy link
Contributor

Added a check whether the ANDROID_SERIAL was set.

This change is needed as when more than one device is connected, the script crashes if the selection is not explicitly specified. This change makes the error message more transparent and suggests the way to fix it.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 60238.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3373 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3373 failed.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 60443.

@lunarpapillo
Copy link
Contributor

The build failure in #3373 was due to an unexpected GPU crash. I've restarted the run. Sorry for the inconvenience.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3376 running.

1 similar comment
@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3376 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3376 passed.

@bradgrantham-lunarg bradgrantham-lunarg added the P2 A high-priority code maintenance issue or a functional problem that is recoverable or not a crash. label Oct 30, 2023
@fabian-lunarg fabian-lunarg self-assigned this Nov 6, 2024
if extras:
if args.push_file:
cmd = ' '.join([adb_push, args.push_file, args.file])
if selection is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like an error, where was selection defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, thank you for the catch. Not sure how exactly this PR was left in this state, but I guess I forgot to remove those remnants of the previous approach. I will change it in the next commit.

if extras:
if args.push_file:
cmd = ' '.join([adb_push, args.push_file, args.file])
if selection is not None:
cmd = InsertDeviceSelectionArgument(cmd, selection)
Copy link
Contributor

Choose a reason for hiding this comment

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

where is InsertDeviceSelectionArgument coming from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, thank you for the catch. Not sure how exactly this PR was left in this state, but I guess I forgot to remove those remnants of the previous approach. I will change it in the next commit.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 343668.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5770 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5770 failed.

…ere are multiple

This change is needed as when more than one device is connected, the script crashes if the selection is not explicitly specified. This change fixes it by adding a possibility to specify the device.

Change-Id: I053b6962c5026f5fc9e3c3b97934f37a30431114
This change is needed as when more than one device is connected, the script crashes if the selection is not explicitly specified. This change makes the error message more transparent and suggests the way to fix it.

Change-Id: I380bc619fe468dcbcd7f39e4171ab4146c2c8bab
Change-Id: I8d5ce4dd039a93a791fb079ea6ab709b732c39e0
If the adb server was not started yet, the output from adb devices would
contain the adb start log, which caused device selection failure
when single device attached. This change fixes that

Change-Id: If4f15729aa9bb2b3f5ae8d49cf77089079c4b2f0
Change-Id: Ie535ae17087f348bb0b053bc8b4df4212c300d1e
@MarkY-LunarG MarkY-LunarG force-pushed the feature-device-selection-option branch from ebb08a5 to 7b830a6 Compare January 29, 2025 22:49
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 360044.

@MarkY-LunarG
Copy link
Contributor

Rebased on dev

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5979 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 5979 passed.

@MarkY-LunarG MarkY-LunarG merged commit 5b995fb into LunarG:dev Jan 30, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A high-priority code maintenance issue or a functional problem that is recoverable or not a crash.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants