Closed Bug 895721 Opened 11 years ago Closed 11 years ago

Harness changes in bug 894980 broke Talos for older revisions on Try

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: MattN, Unassigned)

References

()

Details

(Keywords: regression, Whiteboard: [workaround for new pushes by including bb0b437e60c7])

Attachments

(1 file, 1 obsolete file)

Any queued or future talos runs on Try seem to break because of this change. This makes it harder to bisect performance regressions using Try server.

18:29:55    FATAL - Uncaught exception: Traceback (most recent call last):
18:29:55    FATAL -   File "C:\slave\test\scripts\mozharness\base\script.py", line 1048, in run
18:29:55    FATAL -     self.run_action(action)
18:29:55    FATAL -   File "C:\slave\test\scripts\mozharness\base\script.py", line 990, in run_action
18:29:55    FATAL -     self._possibly_run_method(method_name, error_if_missing=True)
18:29:55    FATAL -   File "C:\slave\test\scripts\mozharness\base\script.py", line 931, in _possibly_run_method
18:29:55    FATAL -     return getattr(self, method_name)()
18:29:55    FATAL -   File "C:\slave\test\scripts\mozharness\mozilla\testing\talos.py", line 449, in download_and_extract
18:29:55    FATAL -     self._populate_webroot()
18:29:55    FATAL -   File "C:\slave\test\scripts\mozharness\mozilla\testing\talos.py", line 390, in _populate_webroot
18:29:55    FATAL -     talos_repo = self.query_talos_repo()
18:29:55    FATAL -   File "C:\slave\test\scripts\mozharness\mozilla\testing\talos.py", line 256, in query_talos_repo
18:29:55    FATAL -     return self.talos_json_config['global']['talos_repo']
18:29:55    FATAL - KeyError: 'talos_repo'
18:29:55    FATAL - Exiting -1
Whiteboard: [workaround for new pushes by including bb0b437e60c7]
I think we can work around this by adding a default of http://hg.mozilla.org/build/talos .
Attached patch talos.diff (obsolete) (deleted) — Splinter Review
Attachment #778435 - Flags: review?(yshun)
Attachment #778435 - Flags: review?(aki)
Comment on attachment 778435 [details] [diff] [review]
talos.diff

Review of attachment 778435 [details] [diff] [review]:
-----------------------------------------------------------------

::: mozharness/mozilla/testing/talos.py
@@ +254,5 @@
>          """
> +        default_repo = "http://hg.mozilla.org/build/talos"
> +        try:
> +            if self.query_talos_json_config():
> +                return self.talos_json_config['global']['talos_repo']

Not sure about the usage of "try...except" here. I would prefer

return self.talos_json_config['global'].get('talos_repo', default_repo)

@@ +256,5 @@
> +        try:
> +            if self.query_talos_json_config():
> +                return self.talos_json_config['global']['talos_repo']
> +            else:
> +                return self.config.get('talos_repo')

Same here. self.config.get('talos_repo', default_repo)
Attachment #778435 - Flags: review?(yshun) → review-
Attached patch talos.diff (deleted) — Splinter Review
I used the try/except clause to avoid having to write this (which I think we should) and saw as ugly:
self.talos_json_config.get('global', {}).get('talos_repo', default_repo)

I am getting worried about the case where the talos.json's would not contain "global" in it.
Attachment #778453 - Flags: review?(yshun)
Attachment #778453 - Flags: review?(aki)
Attachment #778453 - Flags: review?(yshun) → review+
Blocks: 713055
No longer blocks: 894980
Comment on attachment 778453 [details] [diff] [review]
talos.diff

If you're worried about global going away, your comment string is fine, too.
Attachment #778453 - Flags: review?(aki) → review+
Attachment #778435 - Flags: review?(aki)
Attachment #778435 - Attachment is obsolete: true
This is live now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Thanks for the quick fix!
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: