diff --git a/client/src/components/providers/UserHistories.test.js b/client/src/components/providers/UserHistories.test.js index ee809bb337d..83bca5d8e27 100644 --- a/client/src/components/providers/UserHistories.test.js +++ b/client/src/components/providers/UserHistories.test.js @@ -10,6 +10,10 @@ let historySummaries; let fullHistories; let currentHistoryId; +// These history tests can be flaky, so we allow a few retries while we work out +// what's going on. +jest.retryTimes(3, { logErrorsBeforeRetry: true }); + const resetTestData = () => { const ids = [1, 2, 3, 4]; currentHistoryId = ids[0]; diff --git a/client/src/config/development.js b/client/src/config/development.js index 04b763f0a47..58b4fb45d69 100644 --- a/client/src/config/development.js +++ b/client/src/config/development.js @@ -7,4 +7,6 @@ export default { revs_limit: 1, pageSize: 50, }, + /* global __buildTimestamp__ */ + buildTimestamp: __buildTimestamp__, }; diff --git a/client/src/config/production.js b/client/src/config/production.js index 617c605ecad..2b4dcd4f6b5 100644 --- a/client/src/config/production.js +++ b/client/src/config/production.js @@ -7,4 +7,6 @@ export default { revs_limit: 1, pageSize: 60, }, + /* global __buildTimestamp__ */ + buildTimestamp: __buildTimestamp__, }; diff --git a/client/src/onload/index.js b/client/src/onload/index.js index bd637657363..7630899a4c3 100644 --- a/client/src/onload/index.js +++ b/client/src/onload/index.js @@ -19,5 +19,6 @@ export { getRootFromIndexLink } from "./getRootFromIndexLink"; import config from "config"; if (!config.testBuild === true) { - console.log("Configs:", config.name, config); + console.log(`Galaxy Client '${config.name}' build, dated ${config.buildTimestamp}`); + console.debug("Full configuration:", config); } diff --git a/client/webpack.config.js b/client/webpack.config.js index 12124cf8adc..508cb322add 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -72,9 +72,7 @@ module.exports = (env = {}, argv = {}) => { }, libs: { name: "libs", - test: new RegExp( - `node_modules[\\/](?!(${modulesExcludedFromLibs})[\\/])|galaxy/scripts/libs` - ), + test: new RegExp(`node_modules[\\/](?!(${modulesExcludedFromLibs})[\\/])|galaxy/scripts/libs`), chunks: "all", priority: -10, }, @@ -193,6 +191,10 @@ module.exports = (env = {}, argv = {}) => { Buffer: ["buffer", "Buffer"], process: "process/browser", }), + new webpack.DefinePlugin({ + __targetEnv__: JSON.stringify(targetEnv), + __buildTimestamp__: JSON.stringify(new Date().toISOString()), + }), new VueLoaderPlugin(), new MiniCssExtractPlugin({ filename: "[name].css",