-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 [WIP] Windows nightly ci #32
Open
midays
wants to merge
161
commits into
main
Choose a base branch
from
windows-nightly-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
161 commits
Select commit
Hold shift + click to select a range
b8f5a93
initial commit
midays e8f0217
Merge remote-tracking branch 'origin/windows-nightly-ci' into windows…
midays 18766e6
initial commit
midays 9e13fb6
added execute tests command
midays 7f1e8f9
fixed wrong name
midays 3badd74
changed github token secret name to GH_RUNNER_API_TOKEN
midays 96034ef
install vscode script
midays d800015
run `remove-ec2-runner` even if the run-tests failed
midays a700c01
fix token name
midays 600267d
change script
midays 0d3d3a2
change script again
midays 1eaa307
add shell specification
midays 8e7c2b2
try different installation way
midays 6ecd9eb
added max retries
midays ef106ab
install winget and try to use it to install vscode
midays 5ee2b32
remove winget installation, assuming vscode is already installed
midays f7f2720
print the env variable name to test if vscode is found and recognizab…
midays d8a0863
change pwsh to powershell
midays 70af6f4
don't remove the vm [temp, will be removed manually, to test vscode i…
midays d913f77
Revert "don't remove the vm [temp, will be removed manually, to test …
midays c7c4e45
don't remove the vm [temp, will be removed manually, to test vscode i…
midays c45068a
stop instance after use, do initial installation
midays c889e5b
move installation
midays a0e3ade
Revert "move installation"
midays a549029
move installation
midays a2e23c1
verify env path
midays fe8dac1
Add VSCode to PATH
midays e42b759
check if installing vscode has affects
midays 83178fc
refresh environment
midays 4a412b6
remove installation, directly check vscode and nodeJS
midays 37db596
check if the full path of the VSCODE works
midays 5655726
install vscode and check full path
midays 3f07c80
install node and check full path
midays bd6a6bf
check without installation
midays 923d527
refresh env PATH var
midays 6c91e75
Add Node.js and VSCode to PATH manually in GitHub Actions workflow
midays 7761d20
refresh environment by importing module first
midays 8410474
static paths for vscode, nodejs, and npm
midays 40d2257
set ENV PATH VAR
midays 51df935
remove unwanted code
midays ce65b91
add "./" before directory name`
midays 8251663
add working directory, and copy upload code from linux-nightly-ci
midays f44601d
continue running workflow even if tests fail
midays 6c75f68
close all vscode running instances
midays a23ebf9
change `npm install` to `npm ci`, and copy the .env.example to .env
midays 7458a80
re-added npm install before npm ci
midays c1ecf2a
Add working directory before copying .env.example
midays 3135458
update executable path to match for windows
midays 7e9076f
Change executable path for vscode to match `Version 1.19.2` changes
midays b4d082c
remove `/bin` from executable directory
midays fb2abf2
updated the cleanup repo to work for windows
midays 3c6254c
remove change
midays 87cd4f2
added if: always()
midays 6630844
Merge branch 'main' into windows-nightly-ci
midays 5b45f7a
Change step name
midays 8ee121f
use ami-01fa2492704e48175, and comment installation blocks
midays fe70831
un-comment the installation code blocks
midays 00673cb
try to run script as non-admin user without the installation steps
midays f93f38e
try with static password
midays 3899d0f
try with configure-instance block
midays 9209982
Revert "try with configure-instance block"
midays 6322a75
try with configure-instance block
midays ded55b2
make the run-tests block require configure-instance to complete
midays b984ad1
change needs
midays fdec814
Update the workflow to include a step that explicitly switches the se…
midays d915c0c
revert
midays 12af0f4
Merge branch 'main' into windows-nightly-ci
midays 8bf6d53
configure the runner to default to non-admin user when executing in t…
midays caf18e5
change approach
midays 2143757
remove non-admin runner configuration for now
midays 1629e05
re add installations
midays 7cfe604
Change working directory to avoid permission error
midays a26aa59
try to update test results
midays bd45bbd
don't remove instance after starting the job
midays bb9069b
run again with new password secret
midays e1cc52d
no installation
midays 48f56f3
remove setting default admin, print the current user, check if vscode…
midays 0495c54
use existing VSCode.exe
midays b0d4dd0
try to switch to non-admin
midays 0b6bb88
try to debug why user is not being switched
midays 384b6c6
debug the runner
midays 978de18
change service debug
midays 2dab960
fix vscode installation path
midays efb2dfa
ignore non-admin user, test execution
midays a007ce1
replace default extension download URL with the windows default
midays 58d7ed1
set full path for uploading screenshots and report
midays a33742b
remove try{} clause
midays 1edb90a
checkout windows-vm branch
midays 4c6ba36
cd kai-ci before switching branch
midays f66d5b8
continue on error
midays 7945af2
chang title, remove comments
midays 0c06baa
change vscode execution path to nonadmin
midays 1967fc1
revert execution path
midays 656bf17
try to login as non-admin
midays 4f60928
remove user creation as user already exists, add timeout before tryin…
midays 679dab0
different approach
midays bfbec5c
add more delay to give the service more time to initialize properly
midays 9b06aff
Added a step to print all available services when the runner service …
midays 567f83b
try looking into temp directory
midays 2c15837
try looking into temp directory
midays dd32833
try looking into temp directory
midays 0fd7da7
comment code
midays f7c395d
configure the runner to start as non-admin user forcefully
midays c678da5
execute the entire installation and configuration process under the n…
midays bcd8116
Run the Entire Configuration Process as a Non-Admin User.
midays 2ddce5b
removing the use of remote PowerShell sessions (New-PSSession). Inste…
midays 914a338
This new approach aims to be straightforward and reduce the need for …
midays 1e239fa
simple approach
midays 0309075
make the non-admin takeover the runner
midays 9b92713
try to switch to non-admin user in a single session
midays c67ad62
diff appr
midays 5fa1dc2
change user-data to pre-runner-script
midays b60ea6b
fix var name
midays 6d71e4b
comment checking specific branch
midays a3ea6a1
try to start a new non-admin session inside the admin session.
midays 5494be8
Create directory before creating the script
midays 8726783
change user from `testuser` to `nonadmin`
midays c518bd1
Redirect output to a log file
midays 2f24441
applied to redirect the script's output and commands to a log file an…
midays 29a3212
updated the script in the canvas to ensure separate log files are use…
midays d2b666e
updated the script in the canvas to ensure separate log files are use…
midays 634e460
change Redirection method for logs
midays 2800ddc
add checks
midays e9156a5
switch to PSExec instead of the start-process
midays 4b0def0
comment removal of ec2 instance
midays 07d15ed
commands to just print the versions
midays 64ddb62
install nodeJS, and check versions
midays 441dc17
use start-process
midays 95f589f
remove `-wait` flag
midays 666af82
remove `-wait` flag
midays a49de46
use `Transcript` command to redirect all output streams
midays 1b181f7
try to directly print the logs within the script
midays f746a15
more debugging
midays 34c2686
more debugging
midays ed1cbcb
more debugging
midays 0ec89ea
more debugging
midays f2d6954
more debugging
midays 363f646
added `LoadUserProfile` flag
midays 18f6085
debug
midays 2eabfe3
use PSExec
midays 7d8cc3a
use PSExec
midays 8621735
use PSExec
midays 7e1adef
use PSExec
midays de526e9
use PSExec
midays 8158721
use PSExec
midays a5f2050
use PSExec
midays 29217df
use PSExec
midays 4313b6b
use PSExec
midays f28359e
use PSExec
midays 5acb371
use PSExec
midays 656c775
use PSExec
midays 16c2ce6
use PSExec
midays 3bec942
use PSExec
midays 317b761
use PSExec
midays b818128
use PSExec
midays d0d2989
use PSExec
midays a3fa5d9
use start-process
midays 0b72f8c
use start-process
midays 191f78a
use start-process
midays 670421a
use start-process
midays ea9a4c9
use PSExec
midays File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@midays The VM should have vscode installed on it . @msajidmansoori12 Please correct me if I am wrong .
We don't have to install vscode on it .