Bug 1643273 - Disable consistency check for Opcodes.h in SM(nu) job. r=jandem
authorTooru Fujisawa <arai_a@mac.com>
Thu, 04 Jun 2020 10:19:01 +0000
changeset 597949 dd65196892ffa181e0a68b78d64cf672c0d2dd44
parent 597948 3ecc718f88e08583f2fdb1d04299cd50a37b14cd
child 597950 d6b75801e9043c8d79ca760f707a419cbf3d0e4d
push id13310
push userffxbld-merge
push dateMon, 29 Jun 2020 14:50:06 +0000
treeherdermozilla-beta@15a59a0afa5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1643273
milestone79.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1643273 - Disable consistency check for Opcodes.h in SM(nu) job. r=jandem Differential Revision: https://phabricator.services.mozilla.com/D78245
js/src/devtools/automation/variants/nonunified
js/src/frontend/smoosh/build.rs
--- a/js/src/devtools/automation/variants/nonunified
+++ b/js/src/devtools/automation/variants/nonunified
@@ -1,10 +1,13 @@
 {
     "configure-args": "--enable-warnings-as-errors --enable-rust-simd",
     "debug": true,
+    "env": {
+        "JS_SMOOSH_DISABLE_OPCODE_CHECK": "1"
+    },
     "conditional-configure-args": {
         "linux64": "--enable-smoosh"
     },
     "skip-tests": {
         "all": ["jstests", "jittest", "checks"]
     }
 }
--- a/js/src/frontend/smoosh/build.rs
+++ b/js/src/frontend/smoosh/build.rs
@@ -1,21 +1,28 @@
 use jsparagus::stencil::opcode_info;
 
 fn compare(name: &str, orig: &str, copied: &str) {
     if copied != orig {
         panic!(
             "{} is out of sync. \
                 It's possible that the bytecode generated by jsparagus is \
                 based on older opcodes. Please run \
-                crates/emitter/scripts/update_opcodes.py in jsparagus.",
+                update_stencil.py in jsparagus. \
+                You can disable this check by setting \
+                JS_SMOOSH_DISABLE_OPCODE_CHECK environment variable.",
             name
         );
     }
 }
 
 fn main() {
+    match std::env::var("JS_SMOOSH_DISABLE_OPCODE_CHECK") {
+        Ok(_) => { return; },
+        Err(_) => {}
+    };
+
     compare(
         "Opcodes.h",
         include_str!("../../vm/Opcodes.h"),
         opcode_info::get_opcodes_source(),
     );
 }