microsoft / microsoft/codespace-features

install-devtool.sh encounters interactive auth flow blocking postCreateCommand flow

Open
#98 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
26
Forks
20
Avg merge
9m
Merged PRs (30d)
1

Description

I have been having intermittent issues with the DevTools postCreateCommand install script (install-devtool.sh)

It sometimes works without issue bot there times it blocks the postCreateCommand flow by requesting interactive auth:

Running the postCreateCommand from Feature 'ghcr.io/microsoft/codespace-features/devtool:1'...

/usr/local/share/install-devtool.sh
::step::Waiting for AzDO Authentication Helper...
Waiting for AzDO Authentication Helper...
::step::Installing DevTool...
Installing DevTool...
Downloading the installer...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:-  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 16 48.5M   16 8418k    0     0  10.5M      0  0:00:04 --:--:--  0:00:0100 48.5M  100 48.5M    0     0  29.7M      0  0:00:01  0:00:01 --:--:-- 47.4M
Running installer..
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code BCLJSHJLW to authenticate.

I am on ghcr.io/microsoft/codespace-features/devtool:1

Here are the install logs:

#19 [dev_containers_target_stage 10/12] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=devtool_6,target=/tmp/build-features-src/devtool_6     cp -ar /tmp/build-features-src/devtool_6 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/devtool_6  && cd /tmp/dev-container-features/devtool_6  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/devtool_6
#19 0.221 ===========================================================================
#19 0.221 Feature       : DevTool
#19 0.221 Description   : Install DevTool
#19 0.221 Id            : ghcr.io/microsoft/codespace-features/devtool
#19 0.221 Version       : 1.0.3
#19 0.221 Documentation : 
#19 0.221 Options       :
#19 0.221 
#19 0.221 ===========================================================================
#19 0.234 find: ‘/var/lib/apt/lists/*’: No such file or directory
#19 0.234 Running apt-get update...
#19 0.297 Get:1 https://packages.microsoft.com/repos/azure-cli noble InRelease [3564 B]
#19 0.304 Get:2 https://packages.microsoft.com/repos/microsoft-ubuntu-noble-prod noble InRelease [3600 B]
#19 0.354 Get:3 https://packages.microsoft.com/repos/azure-cli noble/main amd64 Packages [2163 B]
#19 0.393 Get:4 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
#19 0.400 Get:5 https://packages.microsoft.com/repos/microsoft-ubuntu-noble-prod noble/main all Packages [650 B]
#19 0.404 Get:6 https://packages.microsoft.com/repos/microsoft-ubuntu-noble-prod noble/main amd64 Packages [91.9 kB]
#19 0.404 Get:7 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable InRelease [3961 B]
#19 0.481 Get:8 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable/main amd64 Packages [4557 B]
#19 0.519 Get:9 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1199 kB]
#19 0.535 Get:10 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
#19 0.595 Get:11 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1822 kB]
#19 0.616 Get:12 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [34.8 kB]
#19 0.617 Get:13 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [3106 kB]
#19 1.000 Get:14 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
#19 1.115 Get:15 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
#19 1.231 Get:16 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [117 kB]
#19 1.259 Get:17 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [19.3 MB]
#19 1.901 Get:18 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [331 kB]
#19 1.903 Get:19 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1808 kB]
#19 1.932 Get:20 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1978 kB]
#19 1.977 Get:21 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [38.1 kB]
#19 1.978 Get:22 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [2201 kB]
#19 2.014 Get:23 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [3287 kB]#19 2.083 Get:24 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [34.6 kB]
#19 2.083 Get:25 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [49.5 kB]
#19 2.829 Fetched 36.1 MB in 3s (14.1 MB/s)
#19 2.829 Reading package lists...#19 3.578 Reading package lists...#19 4.325 Building dependency tree...
#19 4.477 Reading state information...
#19 4.615 curl is already the newest version (8.5.0-2ubuntu10.6).
#19 4.615 ca-certificates is already the newest version (20240203).
#19 4.615 Recommended packages:
#19 4.615   libfile-mimeinfo-perl libnet-dbus-perl libx11-protocol-perl x11-utils
#19 4.615   x11-xserver-utils
#19 4.635 The following NEW packages will be installed:
#19 4.635   xdg-utils
#19 4.822 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
#19 4.822 Need to get 62.0 kB of archives.
#19 4.822 After this operation, 331 kB of additional disk space will be used.
#19 4.822 Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 xdg-utils all 1.1.3-4.1ubuntu3 [62.0 kB]
#19 5.888 Fetched 62.0 kB in 0s (165 kB/s)
#19 5.917 Selecting previously unselected package xdg-utils.

#19 5.917 (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 89490 files and directories currently installed.)

#19 5.960 Preparing to unpack .../xdg-utils_1.1.3-4.1ubuntu3_all.deb ...

#19 5.964 Unpacking xdg-utils (1.1.3-4.1ubuntu3) ...

#19 6.029 Setting up xdg-utils (1.1.3-4.1ubuntu3) ...

#19 6.045 update-alternatives: using /usr/bin/xdg-open to provide /usr/bin/open (open) in auto mode

#19 6.053 Processing triggers for man-db (2.12.0-4build2) ...

#19 6.899 Adding DevTool to PATH for vscode
#19 DONE 7.0s

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with install-devtool.sh and reproduce the intermittent postCreateCommand installation using the shown devtool:1 feature and logs. Trace the “Waiting for AzDO Authentication Helper” and installer steps; done means installation completes without an interactive authentication prompt blocking postCreateCommand.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.