about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-12-15 14:57:17 +0100
committerPietro Albini <pietro@pietroalbini.org>2018-12-15 14:57:17 +0100
commite771a7d3533664b5b0c6e8430d1d8e41cdfb8d68 (patch)
tree7e2c9ebc07bd6a30722923697b94fefd82ec3a81 /src
parent0a1b2267e45ed0a5bdbfcbe522024729c8bd1387 (diff)
downloadrust-e771a7d3533664b5b0c6e8430d1d8e41cdfb8d68.tar.gz
rust-e771a7d3533664b5b0c6e8430d1d8e41cdfb8d68.zip
Revert "Rollup merge of #56758 - Manishearth:emoji-status-toolstate, r=kennytm"
This reverts commit 050bb10dc3e1d1c6a0aee3c50955d401658dece5, reversing
changes made to c530e31245ba10b2587bc908a65bd6e7910bc50f.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/publish_toolstate.py32
1 files changed, 7 insertions, 25 deletions
diff --git a/src/tools/publish_toolstate.py b/src/tools/publish_toolstate.py
index a65d263d2e3..4ade87f5d65 100755
--- a/src/tools/publish_toolstate.py
+++ b/src/tools/publish_toolstate.py
@@ -34,16 +34,6 @@ MAINTAINERS = {
     'rust-by-example': '@steveklabnik @marioidival @projektir',
 }
 
-EMOJI = {
-    'miri': '🛰️',
-    'clippy-driver': '📎',
-    'rls': '💻',
-    'rustfmt': '📝',
-    'book': '📖',
-    'nomicon': '👿',
-    'reference': '📚',
-    'rust-by-example': '👩‍🏫',
-}
 
 def read_current_status(current_commit, path):
     '''Reads build status of `current_commit` from content of `history/*.tsv`
@@ -73,12 +63,13 @@ def update_latest(
         }
 
         slug = 'rust-lang/rust'
-        long_message = textwrap.dedent('''\
+        message = textwrap.dedent('''\
+            📣 Toolstate changed by {}!
+
             Tested on commit {}@{}.
             Direct link to PR: <{}>
 
-        ''').format(slug, current_commit, relevant_pr_url)
-        emoji_status = []
+        ''').format(relevant_pr_number, slug, current_commit, relevant_pr_url)
         anything_changed = False
         for status in latest:
             tool = status['tool']
@@ -90,18 +81,12 @@ def update_latest(
                 status[os] = new
                 if new > old:
                     changed = True
-                    long_message += '🎉 {} on {}: {} → {}.\n' \
-                        .format(tool, os, old, new)
-                    emoji = "{}🎉".format(EMOJI.get(tool))
-                    if msg not in emoji_status:
-                        emoji_status += [msg]
+                    message += '🎉 {} on {}: {} → {} (cc {}, @rust-lang/infra).\n' \
+                        .format(tool, os, old, new, MAINTAINERS.get(tool))
                 elif new < old:
                     changed = True
-                    long_message += '💔 {} on {}: {} → {} (cc {}, @rust-lang/infra).\n' \
+                    message += '💔 {} on {}: {} → {} (cc {}, @rust-lang/infra).\n' \
                         .format(tool, os, old, new, MAINTAINERS.get(tool))
-                    emoji = "{}💔".format(EMOJI.get(tool))
-                    if msg not in emoji_status:
-                        emoji_status += [msg]
 
             if changed:
                 status['commit'] = current_commit
@@ -111,9 +96,6 @@ def update_latest(
         if not anything_changed:
             return ''
 
-        short_message = "📣 Toolstate changed by {}! ({})"
-            .format(relevant_pr_number, '/'.join(emoji_status))
-        message = short_message + "\n\n" + long_message
         f.seek(0)
         f.truncate(0)
         json.dump(latest, f, indent=4, separators=(',', ': '))