[
https://issues.apache.org/jira/browse/TEZ-4572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874141#comment-17874141
]
Ayush Saxena commented on TEZ-4572:
-----------------------------------
Doesn't happen for me on tez master branch
{noformat}
ayushsaxena@ayushsaxena tez % mvn clean install -Dtar -Pgpg -Paws -Pazure
-Psources -DskipITs -DskipTests --pl :tez-ui
[INFO] Scanning for projects...
[WARNING] The requested profile "gpg" could not be activated because it does
not exist.
[INFO]
[INFO] -----------------------< org.apache.tez:tez-ui >------------------------
[INFO] Building tez-ui 0.10.4-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- clean:3.1.0:clean (default-clean) @ tez-ui ---
[INFO] Deleting /Users/ayushsaxena/code/tez/tez-ui/target
[INFO]
[INFO] --- enforcer:3.0.0:enforce (enforce-maven-version) @ tez-ui ---
[INFO]
[INFO] --- enforcer:3.0.0:enforce (clean) @ tez-ui ---
[INFO]
[INFO] --- buildnumber:1.1:create (default) @ tez-ui ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /Users/ayushsaxena/code/tez/tez-ui && git
rev-parse --verify HEAD
[INFO] Working directory: /Users/ayushsaxena/code/tez/tez-ui
[INFO] Storing buildNumber: cd6ceec3dfdf444470bdd94fa8be31602015a2f3 at
timestamp: 1723794170846
[INFO] Executing: /bin/sh -c cd /Users/ayushsaxena/code/tez/tez-ui && git
rev-parse --verify HEAD
[INFO] Working directory: /Users/ayushsaxena/code/tez/tez-ui
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- build-helper:1.8:maven-version (maven-version) @ tez-ui ---
[INFO]
[INFO] --- enforcer:3.0.0:enforce (banned-illegal-imports) @ tez-ui ---
[INFO]
[INFO] --- remote-resources:1.7.0:process (process-resource-bundles) @ tez-ui
---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO]
[INFO] --- frontend:1.8.0:install-node-and-yarn (install node and yarn) @
tez-ui ---
[INFO] Node v8.9.0 is already installed.
[INFO] Yarn 1.6.0 is already installed.
[INFO]
[INFO] --- frontend:1.8.0:yarn (yarn install) @ tez-ui ---
[INFO] Running 'yarn install' in
/Users/ayushsaxena/code/tez/tez-ui/src/main/webapp
[INFO] yarn install v1.6.0
[INFO] [1/5] Validating package.json...
[INFO] [2/5] Resolving packages...
[INFO] warning Resolution field "[email protected]" is incompatible with
requested version "lodash.merge@^3.3.2"
[INFO] warning Resolution field "[email protected]" is incompatible with
requested version "lodash.merge@^3.3.2"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with
requested version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with
requested version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "debug@~2.2.0"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "debug@~2.2.0"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "qs@~5.1.0"
[INFO] warning Resolution field "[email protected]" is incompatible with
requested version "lodash.merge@^3.0.2"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "minimist@~0.0.1"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "qs@~5.2.0"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "debug@~2.2.0"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] warning Resolution field "[email protected]" is incompatible with requested
version "[email protected]"
[INFO] [3/5] Fetching packages...
[INFO] [4/5] Linking dependencies...
[INFO] [5/5] Building fresh packages...
[INFO] Done in 3.07s.
[INFO]
[INFO] --- frontend:1.8.0:bower (bower install) @ tez-ui ---
[INFO] Running 'bower install --allow-root=false' in
/Users/ayushsaxena/code/tez/tez-ui/src/main/webapp
[INFO] bower moment#2.29.4 cached
https://github.com/moment/moment.git#2.29.4
[INFO] bower moment#2.29.4 validate 2.29.4 against
https://github.com/moment/moment.git#2.29.4
[INFO] bower moment#>= 2.6.0 cached
https://github.com/moment/moment.git#2.29.4
[INFO] bower moment#>= 2.6.0 validate 2.29.4 against
https://github.com/moment/moment.git#>= 2.6.0
[INFO] bower moment#2.29.4 install moment#2.29.4
[INFO]
[INFO] moment#2.29.4 bower_components/moment
[INFO]
[INFO] --- exec:1.3.2:exec (ember build) @ tez-ui ---
yarn run v1.6.0
$ TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod
(node:14485) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use
os.tmpdir() instead.
WARNING: Node v8.9.0 has currently not been tested against Ember CLI and may
result in unexpected behaviour.
version: 1.13.14
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
BuildingBuilding.Building..Building...broccoli-babel-transpiler is opting out
of caching due to a plugin that does not provide a caching strategy: `function
(babel) {
var t = babel.types;
var replaceNodeWithPrecompiledTemplate = function(node, template) {
var compiledTemplateString = "Ember.HTMLBars.template(" +
precompile(template) + ")";
// Prefer calling replaceWithSourceString if it is present.
// this prevents a deprecation warning in Babel 5.6.7+.
//
// TODO: delete the fallback once we only support babel >= 5.6.7.
if (node.replaceWithSourceString) {
node.replaceWithSourceString(compiledTemplateString);
} else {
return compiledTemplateString;
}
}
return new babel.Transformer('htmlbars-inline-precompile', {
ImportDeclaration: function(node, parent, scope, file) {
if (t.isLiteral(node.source, { value: "htmlbars-inline-precompile" })) {
var first = node.specifiers && node.specifiers[0];
if (t.isImportDefaultSpecifier(first)) {
file.importSpecifier = first.local.name;
} else {
var input = file.code;
var usedImportStatement = input.slice(node.start, node.end);
var msg = "Only `import hbs from 'htmlbars-inline-precompile'` is
supported. You used: `" + usedImportStatement + "`";
throw file.errorWithNode(node, msg);
}
// Prefer calling dangerouslyRemove instead of remove (if present) to
// suppress a deprecation warning.
//
// TODO: delete the fallback once we only support babel >= 5.5.0.
if (typeof this.dangerouslyRemove === 'function') {
this.dangerouslyRemove();
} else {
this.remove();
}
}
},
CallExpression: function(node, parent, scope, file) {
if (t.isIdentifier(node.callee, { name: file.importSpecifier })) {
var argumentErrorMsg = "hbs should be invoked with a single argument:
the template string";
if (node.arguments.length !== 1) {
throw file.errorWithNode(node, argumentErrorMsg);
}
var template = node.arguments[0].value;
if (typeof template !== "string") {
throw file.errorWithNode(node, argumentErrorMsg);
}
return replaceNodeWithPrecompiledTemplate(this, template);
}
},
TaggedTemplateExpression: function(node, parent, scope, file) {
if (t.isIdentifier(node.tag, { name: file.importSpecifier })) {
if (node.quasi.expressions.length) {
throw file.errorWithNode(node, "placeholders inside a tagged
template string are not supported");
}
var template = node.quasi.quasis.map(function(quasi) {
return quasi.value.cooked;
}).join("");
return replaceNodeWithPrecompiledTemplate(this, template);
}
}
});
}`.
BuildingBuilding.broccoli-babel-transpiler is opting out of caching due to a
plugin that does not provide a caching strategy: `function (babel) {
var t = babel.types;
var replaceNodeWithPrecompiledTemplate = function(node, template) {
var compiledTemplateString = "Ember.HTMLBars.template(" +
precompile(template) + ")";
// Prefer calling replaceWithSourceString if it is present.
// this prevents a deprecation warning in Babel 5.6.7+.
//
// TODO: delete the fallback once we only support babel >= 5.6.7.
if (node.replaceWithSourceString) {
node.replaceWithSourceString(compiledTemplateString);
} else {
return compiledTemplateString;
}
}
return new babel.Transformer('htmlbars-inline-precompile', {
ImportDeclaration: function(node, parent, scope, file) {
if (t.isLiteral(node.source, { value: "htmlbars-inline-precompile" })) {
var first = node.specifiers && node.specifiers[0];
if (t.isImportDefaultSpecifier(first)) {
file.importSpecifier = first.local.name;
} else {
var input = file.code;
var usedImportStatement = input.slice(node.start, node.end);
var msg = "Only `import hbs from 'htmlbars-inline-precompile'` is
supported. You used: `" + usedImportStatement + "`";
throw file.errorWithNode(node, msg);
}
// Prefer calling dangerouslyRemove instead of remove (if present) to
// suppress a deprecation warning.
//
// TODO: delete the fallback once we only support babel >= 5.5.0.
if (typeof this.dangerouslyRemove === 'function') {
this.dangerouslyRemove();
} else {
this.remove();
}
}
},
CallExpression: function(node, parent, scope, file) {
if (t.isIdentifier(node.callee, { name: file.importSpecifier })) {
var argumentErrorMsg = "hbs should be invoked with a single argument:
the template string";
if (node.arguments.length !== 1) {
throw file.errorWithNode(node, argumentErrorMsg);
}
var template = node.arguments[0].value;
if (typeof template !== "string") {
throw file.errorWithNode(node, argumentErrorMsg);
}
return replaceNodeWithPrecompiledTemplate(this, template);
}
},
TaggedTemplateExpression: function(node, parent, scope, file) {
if (t.isIdentifier(node.tag, { name: file.importSpecifier })) {
if (node.quasi.expressions.length) {
throw file.errorWithNode(node, "placeholders inside a tagged
template string are not supported");
}
var template = node.quasi.quasis.map(function(quasi) {
return quasi.value.cooked;
}).join("");
return replaceNodeWithPrecompiledTemplate(this, template);
}
}
});
}`.
Building..Building...BuildingBuilding.Building..Building...BuildingBuilding.Building..Built
project successfully. Stored in "dist/".
Done in 9.81s.
[INFO]
[INFO] --- resources:3.1.0:resources (default-resources) @ tez-ui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- compiler:3.8.1:compile (default-compile) @ tez-ui ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.1.0:testResources (default-testResources) @ tez-ui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/Users/ayushsaxena/code/tez/tez-ui/src/test/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- compiler:3.8.1:testCompile (default-testCompile) @ tez-ui ---
[INFO] No sources to compile
[INFO]
[INFO] --- surefire:3.0.0-M4:test (default-test) @ tez-ui ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- exec:1.3.2:exec (ember test) @ tez-ui ---
[INFO] skipping execute as per configuraion
[INFO]
[INFO] --- wro4j:1.7.9:run (default) @ tez-ui ---
[INFO] /Users/ayushsaxena/code/tez/tez-ui/src/main/webapp/dist/assets
[INFO] Executing the mojo:
[INFO] Wro4j Model path:
/Users/ayushsaxena/code/tez/tez-ui/src/main/webapp/WEB-INF/wro.xml
[INFO] targetGroups: tez-ui,vendor
[INFO] minimize: true
[INFO] ignoreMissingResources: null
[INFO] parallelProcessing: false
[INFO] buildDirectory: /Users/ayushsaxena/code/tez/tez-ui/target
[INFO] destinationFolder:
/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources/assets
[INFO] wroManagerFactory class:
ro.isdc.wro.extensions.manager.standalone.ExtensionsStandaloneManagerFactory
[INFO] The following groups will be processed: [tez-ui, vendor]
[INFO] folder:
/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources/assets
[INFO] processing group: tez-ui.css
[INFO] folder:
/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources/assets
[INFO] processing group: tez-ui.js
[INFO] file size: tez-ui.js -> 899365 bytes
[INFO]
/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources/assets/tez-ui.js
(899365 bytes)
[INFO] folder:
/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources/assets
[INFO] processing group: vendor.css
[INFO] folder:
/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources/assets
[INFO] processing group: vendor.js
[INFO] file size: vendor.js -> 2686090 bytes
[INFO]
/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources/assets/vendor.js
(2686090 bytes)
[INFO]
[INFO] --- war:3.2.2:war (default-war) @ tez-ui ---
[INFO] Packaging webapp
[INFO] Assembling webapp [tez-ui] in
[/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources
[/Users/ayushsaxena/code/tez/tez-ui/src/main/resources/] to
[/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT]
[INFO] Copying webapp webResources
[/Users/ayushsaxena/code/tez/tez-ui/target/minified-resources] to
[/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT]
[INFO] Copying webapp resources
[/Users/ayushsaxena/code/tez/tez-ui/src/main/webapp/dist]
[INFO] Webapp assembled in [392 msecs]
[INFO] Building war:
/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT.war
[INFO]
[INFO] --- site:3.7.1:attach-descriptor (attach-descriptor) @ tez-ui ---
[INFO] Skipping because packaging 'war' is not pom.
[INFO]
[INFO] --- jar:3.2.0:test-jar (default) @ tez-ui ---
[INFO] Building jar:
/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT-tests.jar
[INFO]
[INFO] >>> source:3.2.1:jar (attach-sources) > generate-sources @ tez-ui >>>
[INFO]
[INFO] --- enforcer:3.0.0:enforce (enforce-maven-version) @ tez-ui ---
[INFO]
[INFO] --- enforcer:3.0.0:enforce (clean) @ tez-ui ---
[INFO]
[INFO] --- buildnumber:1.1:create (default) @ tez-ui ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /Users/ayushsaxena/code/tez/tez-ui && git
rev-parse --verify HEAD
[INFO] Working directory: /Users/ayushsaxena/code/tez/tez-ui
[INFO] Storing buildNumber: cd6ceec3dfdf444470bdd94fa8be31602015a2f3 at
timestamp: 1723794198064
[INFO] Executing: /bin/sh -c cd /Users/ayushsaxena/code/tez/tez-ui && git
rev-parse --verify HEAD
[INFO] Working directory: /Users/ayushsaxena/code/tez/tez-ui
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- build-helper:1.8:maven-version (maven-version) @ tez-ui ---
[INFO]
[INFO] <<< source:3.2.1:jar (attach-sources) < generate-sources @ tez-ui <<<
[INFO]
[INFO]
[INFO] --- source:3.2.1:jar (attach-sources) @ tez-ui ---
[INFO] Building jar:
/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT-sources.jar
[INFO]
[INFO] --- install:2.5.2:install (default-install) @ tez-ui ---
[INFO] Installing
/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT.war to
/Users/ayushsaxena/.m2/repository/org/apache/tez/tez-ui/0.10.4-SNAPSHOT/tez-ui-0.10.4-SNAPSHOT.war
[INFO] Installing /Users/ayushsaxena/code/tez/tez-ui/pom.xml to
/Users/ayushsaxena/.m2/repository/org/apache/tez/tez-ui/0.10.4-SNAPSHOT/tez-ui-0.10.4-SNAPSHOT.pom
[INFO] Installing
/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT-tests.jar to
/Users/ayushsaxena/.m2/repository/org/apache/tez/tez-ui/0.10.4-SNAPSHOT/tez-ui-0.10.4-SNAPSHOT-tests.jar
[INFO] Installing
/Users/ayushsaxena/code/tez/tez-ui/target/tez-ui-0.10.4-SNAPSHOT-sources.jar to
/Users/ayushsaxena/.m2/repository/org/apache/tez/tez-ui/0.10.4-SNAPSHOT/tez-ui-0.10.4-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.323 s
[INFO] Finished at: 2024-08-16T13:13:18+05:30
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "gpg" could not be activated because it does
not exist.
ayushsaxena@ayushsaxena tez % {noformat}
We have precommit jobs which would have failed if something was broken on the
compilation front. I would say some setup issue or maybe try to build the
entire project without this --pl :tez-ui
> Compiling Error- Frontend Maven Plugin: Bower Install Failure
> --------------------------------------------------------------
>
> Key: TEZ-4572
> URL: https://issues.apache.org/jira/browse/TEZ-4572
> Project: Apache Tez
> Issue Type: Bug
> Components: UI
> Affects Versions: 0.10.2, 0.10.3
> Reporter: Basapuram Kumar
> Priority: Minor
>
> Running the below command to compile the master , 0.10.2,0.10.3 branches,
> command
> {code:java}
> mvn clean install -Dtar -Pgpg -Paws -Pazure -Psources -DskipITs -DskipTests
> --pl :tez-ui {code}
> hitting the below
> {code:java}
> [ERROR] Failed to execute goal
> com.github.eirslett:frontend-maven-plugin:1.8.0:bower (bower install) on
> project tez-ui: Failed to run task: 'bower install --allow-root=false'
> failed. {code}
> Complete trace:
> {noformat}
> [INFO] --- frontend-maven-plugin:1.8.0:bower (bower install) @ tez-ui ---
> [INFO] Running 'bower install --allow-root=false' in
> /root/basa/bk/tez/tez-ui/src/main/webapp
> [INFO] bower ESUDO Cannot be run with sudo
> [INFO]
> [INFO] Additional error details:
> [INFO] Since bower is a user command, there is no need to execute it with
> superuser permissions.
> [INFO] If you're having permission errors when using bower without sudo,
> please spend a few minutes learning more about how your system should work
> and make any necessary repairs.
> [INFO]
> [INFO] http://www.joyent.com/blog/installing-node-and-npm
> [INFO] https://gist.github.com/isaacs/579814
> [INFO]
> [INFO] You can however run a command with sudo using "--allow-root" option
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.041 s
> [INFO] Finished at: 2024-06-24T19:49:59+02:00
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] The requested profile "gpg" could not be activated because it does
> not exist.
> [ERROR] Failed to execute goal
> com.github.eirslett:frontend-maven-plugin:1.8.0:bower (bower install) on
> project tez-ui: Failed to run task: 'bower install --allow-root=false'
> failed. org.apache.commons.exec.ExecuteException: Process exited with an
> error: 1 (Exit value: 1) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)