Closed Bug 900605 Opened 11 years ago Closed 11 years ago

Clean up code duplication introduced by bug 900545

Categories

(Release Engineering :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Assigned: jyeo)

References

Details

Attachments

(2 files, 2 obsolete files)

I duplicated the code from here:
http://hg.mozilla.org/build/buildbotcustom/file/170c45c657c0/misc.py#l1850
into here:
http://hg.mozilla.org/build/buildbotcustom/file/170c45c657c0/misc.py#l1922

Could you please help with this?

I would also prefer if some of extraArgs logic moves into PLATFORMS in here:
http://hg.mozilla.org/build/buildbot-configs/file/default/mozilla-tests/config.py#l85
Blocks: 713055
Depends on: 900545
Summary: Clean up code duplication introduces with bug 900545 → Clean up code duplication introduced by bug 900545
Attached patch bb_conf_mh_conf.diff (deleted) — Splinter Review
Attachment #785010 - Flags: review?(armenzg)
Attached patch bb_cust_mh.diff (obsolete) (deleted) — Splinter Review
Is there any way to make sure that everything is okay? How do I test misc.py?
Attachment #785012 - Flags: review?(armenzg)
Attachment #785010 - Flags: review?(armenzg) → review+
Comment on attachment 785012 [details] [diff] [review]
bb_cust_mh.diff

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

<3 <3 <3

Thanks for the clean up!

::: misc.py
@@ +1860,5 @@
> +                        system_bits = mh_conf['system_bits']
> +                        conf_file = mh_conf['config_file']
> +
> +                        extra_args.extend(['--system-bits', system_bits])
> +                        extra_args.extend(['--cfg', conf_file])

Jason, could you please fold these 5 lines into the definition of extra args? e.g.:
  '--branch-name', opt_talos_branch,
  '--system-bits', platform_config['mozharness_config']['system_bits'],
  '--cfg', platform_config['mozharness_config']['config_file']
]

I think that system_bit should live inside of the mozharness configs; what do you think? Do you have time to tackle it if you agree with it?
Attachment #785012 - Flags: review?(armenzg) → review+
Attached patch bb_cust_mh.diff (obsolete) (deleted) — Splinter Review
Attachment #785012 - Attachment is obsolete: true
Attachment #786913 - Flags: review?(armenzg)
(In reply to Armen Zambrano G. [:armenzg] (Release Enginerring) (EDT/UTC-4) from comment #3)
> I think that system_bit should live inside of the mozharness configs; what
> do you think? Do you have time to tackle it if you agree with it?

Yep I think it's better to move more of the stuff out of buildbot but maybe we should future this?
Comment on attachment 786913 [details] [diff] [review]
bb_cust_mh.diff

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

lgtm. Good to land.
Attachment #786913 - Flags: review?(armenzg) → review+
Mind if I land it? I want to land a fix for bug 901715.
Attachment #785010 - Flags: checked-in+
Attachment #786913 - Flags: checked-in+
Attached patch bb_cust_mh.diff (deleted) — Splinter Review
Attachment #786913 - Attachment is obsolete: true
Attachment #787105 - Flags: review?(armenzg)
I haven't tested it yet. I have no idea how to test the misc.py file. :-/
Attachment #786913 - Flags: checked-in+ → checked-in-
Comment on attachment 787105 [details] [diff] [review]
bb_cust_mh.diff

http://hg.mozilla.org/build/buildbotcustom/rev/12f30d27abd6
Attachment #787105 - Flags: review?(armenzg)
Attachment #787105 - Flags: review+
Attachment #787105 - Flags: checked-in+
The patch will be live in our next reconfig.

(In reply to Jason Yeo [:jyeo] from comment #9)
> I haven't tested it yet. I have no idea how to test the misc.py file. :-/

I would user setup-master.py to setup a master that would use such a code (in this case any test master) and run a "buildbot checkconfig ."
In production.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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: