Skip to content

Commit 8756950

Browse files
authored
Merge branch 'main' into nagilson-breaking-auto-update
2 parents 762fe27 + 80b4383 commit 8756950

File tree

65 files changed

+9680
-10534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+9680
-10534
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Copilot Setup Steps
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
permissions:
15+
contents: read
16+
17+
env:
18+
# Allow Copilot to access Visual Studio assets URLs needed for NuGet restore
19+
COPILOT_AGENT_FIREWALL_ALLOW_LIST_ADDITIONS: "vsblob.vsassets.io"
20+
21+
jobs:
22+
copilot-setup-steps:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- name: Do an initial build to ensure all dependencies are restored
27+
run: |
28+
./build.sh

1es-azure-pipeline.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ parameters:
5454
type: string
5555
default: Test
5656
values: [ 'Test', 'Real' ]
57+
- name: PRERELEASE
58+
displayName: Prerelease
59+
type: boolean
60+
default: false
5761

5862
extends:
5963
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
@@ -94,9 +98,9 @@ extends:
9498
- template: pipeline-templates/lint.yaml@self
9599
parameters:
96100
pool:
97-
name: Azure Pipelines
98-
image: macOS-latest
99-
os: macOS
101+
name: NetCore1ESPool-Internal
102+
image: 1es-windows-2022
103+
os: windows
100104
useOneEngineeringPool: true
101105
- template: pipeline-templates/package-vsix.yaml@self
102106
parameters:
@@ -106,6 +110,7 @@ extends:
106110
os: windows
107111
useOneEngineeringPool: true
108112
SignType: ${{ parameters.SignType }}
113+
PREELEASE: ${{ parameters.PRERELEASE }}
109114
- template: pipeline-templates/sbom.yaml@self
110115
parameters:
111116
pool:

1pr-azure-pipeline.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ variables:
2020
value: true
2121

2222
# The public PR pool schema is different from the 1ES one. We use 'vmImage' which is a default azure pipeline schema. 'os' and 'name' have nothing to do with image selection here.
23-
# 1ES uses 'image' but defining an image this way using our public pools duseOneEngineeringPool not work as they aren't configured this way.
23+
# 1ES uses 'image' but defining an image this way using our public pools useOneEngineeringPool not work as they aren't configured this way.
2424
# We can later add the flag 'useOneEngineeringPool' or one engineering system: false or true in all tasks to determine if we use vmImage or a 1es pool object.
2525
parameters:
2626
- name: pools
2727
type: object
2828
default:
2929
- name: NetCore-Public
30-
vmImage: windows-latest
30+
demands: ImageOverride -equals 1es-windows-2022-open
3131
os: windows
3232
emoji: 🪟
3333
- name: NetCore-Public
34-
vmImage: ubuntu-latest
34+
demands: ImageOverride -equals 1es-ubuntu-2004-open
3535
os: linux
3636
emoji: 🐧
37-
- name: NetCore-Public
37+
- name: Azure Pipelines
3838
vmImage: macOS-latest
3939
os: macOS
4040
emoji: 🍎
@@ -46,7 +46,11 @@ stages:
4646
- template: pipeline-templates/build-test.yaml
4747
parameters:
4848
pool:
49-
vmImage: ${{ image.vmImage }}
49+
name: ${{ image.name }}
50+
${{ if image.demands }}:
51+
demands: ${{ image.demands }}
52+
${{ if image.vmImage }}:
53+
vmImage: ${{ image.vmImage }}
5054
os: ${{ image.os }}
5155
emoji: ${{ image.emoji }}
5256
useOneEngineeringPool: false
@@ -59,13 +63,16 @@ stages:
5963
- template: pipeline-templates/lint.yaml
6064
parameters:
6165
pool:
62-
vmImage: macOS-latest
63-
os: macOS
66+
name: NetCore-Public
67+
demands: ImageOverride -equals 1es-windows-2022-open
68+
os: windows
6469
useOneEngineeringPool: false
6570
- template: pipeline-templates/package-vsix.yaml
6671
parameters:
6772
pool:
68-
vmImage: windows-latest
73+
name: NetCore-Public
74+
demands: ImageOverride -equals 1es-windows-2022-open
6975
os: windows
7076
useOneEngineeringPool: false
7177
SignType: Test
78+
PRERELEASE: true

Documentation/contributing-workflow.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ We use and recommend the following workflow:
2222
- Please follow our [Commit Messages](contributing.md#commit-messages) guidance.
2323
5. Add new tests corresponding to your change, if applicable.
2424

25-
If you are having difficulty debugging changes to the library, you may want to incorporate the logging messages into your test session. To do so, set the debugOn flag to true [Here](../vscode-dotnet-runtime-library/src/Utils/Debugging.ts).
2625
Note that the runtime and sdk extensions can be tested (with breakpoints as well, through the .js files) using their corresponding workspace and launch profiles by opening their root folders in vscode.
2726
For the library, those tests are reachable by going through the runtime extension workspace and adding the runtime-library folder to the workspace. But logging may be a better approach to debug this code.
2827

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ $successColor = "Green"
44

55
#################### Download backup install scripts ####################
66
function DownloadInstallScripts() {
7-
Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile "./vscode-dotnet-runtime-library/install scripts/dotnet-install.ps1"
8-
Invoke-WebRequest https://dot.net/v1/dotnet-install.sh -OutFile "./vscode-dotnet-runtime-library/install scripts/dotnet-install.sh"
7+
Invoke-WebRequest https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1 -OutFile "./vscode-dotnet-runtime-library/install scripts/dotnet-install.ps1"
8+
Invoke-WebRequest https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh -OutFile "./vscode-dotnet-runtime-library/install scripts/dotnet-install.sh"
99
}
1010

1111
try

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ NC=`tput sgr0`
66
echo ""
77
echo "----------- Bundling Install Scripts -----------"
88
echo ""
9-
curl https://dot.net/v1/dotnet-install.ps1 --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.ps1"
10-
curl https://dot.net/v1/dotnet-install.sh --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.sh"
9+
curl https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1 --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.ps1"
10+
curl https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.sh"
1111
if [ $? -eq 0 ];
1212
then
1313
echo ""

mock-webpack.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# The library doesn't get webpacked, but it needs the copy of items that would normally be webpacked
22
# ... into the SDK or Runtime Extension for it to run in local dev scenarios.
33
Copy-Item ".\vscode-dotnet-runtime-library\distro-data\" -Destination ".\vscode-dotnet-runtime-library\dist\Acquisition\" -Recurse -Force
4-
Copy-Item ".\vscode-dotnet-runtime-library\install scripts\" -Destination ".\vscode-dotnet-runtime-library\dist\utils\" -Recurse -Force
4+
Copy-Item ".\vscode-dotnet-runtime-library\install scripts\" -Destination ".\vscode-dotnet-runtime-library\dist\" -Recurse -Force

mock-webpack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ echo ""
22
echo "----------- Copying Library Webpacked Dependencies -----------"
33
echo "" # See the build.ps1 for more details on why we do this
44
cp -r ./vscode-dotnet-runtime-library/distro-data ./vscode-dotnet-runtime-library/dist/Acquisition
5-
cp -r "./vscode-dotnet-runtime-library/install scripts" ./vscode-dotnet-runtime-library/dist/Utils
5+
cp -r "./vscode-dotnet-runtime-library/install scripts" ./vscode-dotnet-runtime-library/dist

0 commit comments

Comments
 (0)