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

Sync production changes back to git #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

xfade
Copy link
Contributor

@xfade xfade commented Aug 17, 2017

Changes from production systems

@larstiq
Copy link
Contributor

larstiq commented Aug 17, 2017

As I've said on irc, I think this is good as a branch to document current state, but not for merging into master. I'll leave a couple of more specific comments for the person who is going to selectively take the good bits.

Copy link
Contributor

@larstiq larstiq left a comment

Choose a reason for hiding this comment

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

Some hints for a cherrypicker.

@@ -0,0 +1,22 @@
[program:defineimage]
Copy link
Contributor

Choose a reason for hiding this comment

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

This and the other two participants should not go in. defineimage and do_build_trial got removed in git history. wait_for_repo_published is unused (perhaps it shares ancestry with is_repo_published?)

with open(os.path.join(bugzilla["template_store"], wid.params.template)) as fileobj:
comment = prepare_comment(fileobj.read(), wid.fields.as_dict(), extra_data)
elif wid.fields.reports and wid.fields.reports.bz_comment_template:
with open(os.path.join(bugzilla["template_store"], wid.fields.reports.bz_comment_template)) as fileobj:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably fine, where did it open(wid.params.template) before?

@@ -374,6 +378,7 @@ def handle_action(self, action, wid, bugs):
matches = set([(match.group(), match.group('key')) for match in bugzilla['compiled_re'].finditer(entry)])
for remote_re in bugzilla['remote_tags_re']:
for match in remote_re.finditer(entry):
print match.group()
Copy link
Contributor

Choose a reason for hiding this comment

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

Debugging, don't necessarily need it.

# skip requests marked as revert
if "revert" in wid.fields.ev.description.lower():
wid.result = True
return

Copy link
Contributor

Choose a reason for hiding this comment

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

Guess that's ok?

"%s" % (package,
bugzilla['regexp']))
"%s or %s" % (package,
bugzilla['regexp'], bugzilla['remote_tags']))
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good.

ReportUploader, get_results_files_list, move_results_dir
)

from qarep.upload import *
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I consider the qareports in dister code to be authorative. More checking required.

allow_recursive(bool) TODO: NOT YET IMPLEMENTED!
shall the patterns expanding be recursive: True recusive, False do not
allow_recursive(bool):
shall the patterns expanding be recursive: True recusive, False do not
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still use this? Non functional changes anyway.

@@ -305,6 +305,8 @@ def construct_trial(self, trial_project, actions, extra_path=None, extra_links=N
for act in actions:
Copy link
Contributor

Choose a reason for hiding this comment

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

I trust this file to be basically correct, though doesn't hurt to check.

@@ -73,7 +73,7 @@ def handle_wi(self, wid):
for upload in uploaded])
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as for setup_build_trial.py

@@ -117,6 +117,7 @@ def __update_patterns(self, project, package, target, binary):
if errors:
return uploaded, errors
# Extract pattern (xml) files from the rpm
print lab.real_path(binary)
Copy link
Contributor

Choose a reason for hiding this comment

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

Debugging, don't need.

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