#272 Add releng commands to template
Closed 7 months ago by kparal. Opened a year ago by frantisekz.

@@ -380,7 +380,7 @@ 

  

      response = make_response(render_template(

          'requests.txt', blocker_updates=blocker_updates, fe_updates=fe_updates,

-         milestone=milestone.id, bugs_with_deps=bugs_with_deps))

+         milestone=milestone.id, bugs_with_deps=bugs_with_deps, release_num=num))

      response.mimetype = 'text/plain'

      return response

  

@@ -11,6 +11,18 @@ 

  * [{{ update.title or update.updateid }}]({{ update.url }}) for {%- for bug in update.bugs if bug.milestone_id == milestone and (bug.accepted_blocker or bug.accepted_0day or bug.accepted_fe) %} [#{{ bug.bugid }}]({{ bug.url }}){% endfor %}

  {%- endfor %}

  

+ == Releng commands ==

+ {% if blocker_updates or fe_updates -%}

+ Remeber to untag all builds in fN-compose:

+ for i in `koji list-tagged f{{ release_num }}-compose --quiet | awk '{print $1}'`

+ do

+     untag_builds="${untag_builds} ${i}"

+ done

+ koji untag-pkg f{{ release_num }}-compose $untag_builds && unset untag_builds

+ 

+ and then tag the new builds:

+ koji tag-build f{{ release_num }}-compose {% for update in fe_updates %}{{ update.title or update.updateid }}{{ " " if not loop.last else "" }}{%- endfor %}{{ " " if blocker_updates else "" }}{% for update in blocker_updates %}{{ update.title or update.updateid }}{{ " " if not loop.last else "" }}{%- endfor %}

+ {% endif %}

  

  ### FREEZE PUSH ###

  
@@ -25,6 +37,11 @@ 

  {%- endfor %}

  {% endautoescape %}

  

+ == Releng commands ==

+ {% if blocker_updates or fe_updates -%}

+ Make sure all builds are pending stable

+ sudo -u apache bodhi-push --builds {% for update in fe_updates if update.request == 'stable' %}{{ update.title or update.updateid }}{{ "," if not loop.last else "" }}{%- endfor %}{{ "," if blocker_updates else "" }}{% for update in blocker_updates if update.request == 'stable' %}{{ update.title or update.updateid }}{{ "," if not loop.last else "" }}{%- endfor %}

+ {% endif %}

  

  {% if bugs_with_deps -%}

  ### THE ABOVE MIGHT NOT BE COMPLETE - CHECK BUG DEPENDENCIES ###

@kparal according to git blame, you wrote the now failing tests for requests. Can you please adjust them to pass with the updated template?

Thanks!

rebased onto 73e22f3

a year ago

according to git blame, you wrote the now failing tests for requests

Made my day.

Pull-Request has been closed by kparal

7 months ago