Closed Bug 1394391 Opened 7 years ago Closed 7 years ago

vcs.py does not seem to handle listing changes to hg repositories correctly

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: jhford, Assigned: ahal)

References

Details

Attachments

(1 file)

It looks like the HgHelper files_changed method is not splitting the output into newlines and as such is treating the listing of files as a string instead of a list of strings.

https://dxr.mozilla.org/mozilla-central/source/tools/tryselect/vcs.py#149
Assignee: nobody → ahalberstadt
Blocks: 1384593
Status: NEW → ASSIGNED
Component: Build Config → General
Product: Core → Testing
See Also: → 1185599
Comment on attachment 8901800 [details]
Bug 1394391 - [tryselect] Split hg implementation of files_changed to a list,

https://reviewboard.mozilla.org/r/173236/#review178598

Looks good to me!  I did try to run ./mach try -p linux with this applied manually, but I get the following error:

Specified path "/Users/jhford/taskcluster/mozilla-central/tools/tryselect/test/**" is not a directory under the srcdir, unable to specify tests outside of the srcdir

Not sure if that's related to this change or to me applying this patch manually without merging in your branch.
This still happens if I commit the change locally, so I suspect that there's some path calculations going wrong here.  Should that be a new bug?
I'm seeing this too. I'm not sure if this second failure is also a regression, if it's always been broken, or if the message is just misleading.

I looked into this a little, and this code path is only hit when *not* passing in -u, paths or tags (e.g ./mach try -b o -p linux) and it attempts to find default tests to run. I'm almost tempted to just remove this whole thing entirely because it's assuming people *want* to run tests in the first place.

If you're just trying to run builds, you might be able to work around this issue by running ./mach try -b o -p linux -u none

I'm happy re-using this bug or filing a new one either way.
Digging into this, I'm fairly sure this has been broken for a long time and no one has noticed/said anything as they use '-u none' when wanting to only submit builds. So I'd recommend landing this fix for now and filing a follow-up. At the very least there will be some discussion on how to fix it. (Though to be honest I'm unlikely to be the one to volunteer as A) I already consider try syntax to be unofficially deprecated, and B) I have no idea what that code is trying to accomplish).

I don't think your specific patch series has anything to do with this. Try pushing with something like './mach try -b do -p linux -u none' (using your desired -b/-p). Or better yet, use './mach try fuzzy'
sounds good to me!
Attachment #8901800 - Flags: review?(jhford) → review+
Comment on attachment 8901800 [details]
Bug 1394391 - [tryselect] Split hg implementation of files_changed to a list,

https://reviewboard.mozilla.org/r/173238/#review179038
Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3942e9db3da3
[tryselect] Split hg implementation of files_changed to a list, r=jhford
https://hg.mozilla.org/mozilla-central/rev/3942e9db3da3
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: