Project

General

Profile

Actions

Bug #47572

closed

mgr/dashboard: stop Angular from pausing a non-interactive build

Added by Lenz Grimmer over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Build, CI, Dependencies & Tools
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This was reported via IRC:

In a fresh development environment, e.g. inside a container, the dashboard build process stops with the following output:

> @angular/cli@10.0.5 postinstall /home/brad/working/src/ceph-fedora-32-brad/src/pybind/mgr/dashboard/frontend/node_modules/@angular/cli
> node ./bin/postinstall/script.js

? Would you like to share anonymous usage data with the Angular Team at Google under
Google’s Privacy Policy at https://policies.google.com/privacy? For more details and
how to change this setting, see http://angular.io/analytics. No

According to the developer documentation there are several ways to suppress this message:

Setting an environment variable: export NG_CLI_ANALYTICS=ci

Disabling analytics via a command: ng analytics off

Adding a property to angular.json:

"cli": {
    "analytics": false
}
Actions #1

Updated by Brad Hubbard over 3 years ago

Let me know if I can provide further details and thanks.

Actions #2

Updated by Lenz Grimmer over 3 years ago

  • Description updated (diff)
Actions #3

Updated by Lenz Grimmer over 3 years ago

Brad Hubbard wrote:

Let me know if I can provide further details and thanks.

On what version of Ceph did you experience this behavior?

Actions #4

Updated by Brad Hubbard over 3 years ago

  • Affected Versions v16.0.0 added

e15e825f85edf0e0f4eba7926e179e666607b8eb master

Actions #5

Updated by Brad Hubbard over 3 years ago

Try this.

git clean -fdx
git submodule foreach git clean -fdx
./do_cmake.sh
cd build
make mgr-dashboard-frontend-build

Actions #6

Updated by Brad Hubbard over 3 years ago

Hmmm... there's more to it than the previous comment. It has something to do with the user's cache.

Try this.

$ podman run -it --rm centos:latest
# dnf -y install git
# git clone http://github.com/ceph/ceph.git
# cd ceph/
# ./install-deps.sh
# ./do_cmake.sh
# cd build/
# make mgr-dashboard-frontend-deps

You should see the anonymous usage prompt. Once you've seen it once it tends to disappear and be difficult to reproduce (something to do with ~/.config and/or ~/.npm*) so it's crucial to start with a "pristine" environment such as that provided by a container. This is one of the issue with storing state in users' home directories IMHO, it can have unforeseen consequences, but that's an issue for another tracker.

Actions #7

Updated by Brad Hubbard over 3 years ago

Ah, now I understand why I was seeing this so much as I was messing around with where these $HOME files were being stored.

In order to reproduce it's as simple as removing ~/.angular-config.json. Therefore, once ~/.angular-config.json is written once you won't see this.

# cat ~/.angular-config.json 
{
  "version": 1,
  "cli": {
    "analytics": false
  }
}

Following on from the previous commands to reproduce just do the following.

# rm -f ~/.angular-config.json && cd .. && git clean -fdx;git submodule foreach git clean -fdx && mkdir build && cd $_ && cmake .. && make mgr-dashboard-frontend-deps
Actions #8

Updated by Brad Hubbard over 3 years ago

  • Pull request ID set to 37325
  • Affected Versions deleted (v16.0.0)
Actions #9

Updated by Brad Hubbard over 3 years ago

  • Affected Versions v16.0.0 added
Actions #10

Updated by Lenz Grimmer over 3 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Brad Hubbard
Actions #11

Updated by Kefu Chai over 3 years ago

  • Status changed from Fix Under Review to Resolved
Actions #12

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 160 to Build, CI, Dependencies & Tools
Actions

Also available in: Atom PDF