Skip to content
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

Enabled windows build #460

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
784d167
Update the vscode-extension-tester version to 8.10.0
aparnamichael Dec 19, 2024
69428a7
updated typescript version to latest to fix the error.
aparnamichael Dec 31, 2024
7c2243d
Enabled the Windows GHA build
aparnamichael Dec 16, 2024
bdde968
Updated the yal file to run in only latest version
aparnamichael Dec 18, 2024
567a599
Remove commented code
aparnamichael Jan 6, 2025
b740f9d
Updated package-lock.json with new typescript version
aparnamichael Jan 6, 2025
d1f18c0
Adding node js
aparnamichael Jan 7, 2025
565e3e9
Reverting the typescript changes and installation of node js
aparnamichael Jan 7, 2025
70f15eb
Reverting all the unwanted changes from package-lock.json
aparnamichael Jan 7, 2025
1b1adb9
ignoring type checking for third-party libraries
aparnamichael Jan 8, 2025
798367b
update typescript version in package-lock.json
aparnamichael Jan 8, 2025
09d5b00
Increased delay for starting server
aparnamichael Jan 9, 2025
4d42fb7
Added more delay in executing from history test case
aparnamichael Jan 9, 2025
43d1683
Changed the mac os version from latest to macos-13
aparnamichael Jan 9, 2025
48b8be5
Revert "Changed the mac os version from latest to macos-13"
aparnamichael Jan 9, 2025
1d64c5f
Added previous and latest as targetvscode version
aparnamichael Jan 10, 2025
edefaa0
Merge branch 'OpenLiberty:main' into issue-265_WindowsBuild
aparnamichael Jan 17, 2025
f6e377b
Merge branch 'OpenLiberty:main' into issue-265_WindowsBuild
aparnamichael Jan 23, 2025
08a6200
Adding delay before running test
aparnamichael Jan 23, 2025
8e0056e
Reduced the timeout
aparnamichael Jan 23, 2025
d7854a5
Adding timeout delay before custom start
aparnamichael Jan 23, 2025
89ed835
Adding more delay in custom start
aparnamichael Jan 23, 2025
d9d71e1
Added delay after custom start
aparnamichael Jan 23, 2025
f92794c
Merge remote-tracking branch 'upstream/main' into issue-265_WindowsBuild
aparnamichael Jan 24, 2025
4845d7b
Added comments for the delay
aparnamichael Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions .github/workflows/run-regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,25 @@ on:

jobs:
build:
name: Build Plugin
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
runtime: [ linux, mac ]
# Removing windows as a standard run flavor runtime: [ linux, mac, windows ]
# As Vscode 1.79 and 1.78 are the only support version for current release, running test with only latest,previous
#Enable it in future for multiple releases as applicable targetVSCode: [ previousMinusOne, previous, latest ]
targetVSCode: [previous, latest ]
# As Vscode 1.79 and 1.78 are the only support version for current release, running test with only latest,previous
#Enable it in future for multiple releases as applicable targetVSCode: [ previousMinusOne, previous, latest ]
runtime: [ linux, mac, windows ]
include:
- runtime: linux
os: ubuntu-latest

- runtime: mac
os: macOS-13

# - runtime: windows
# os: windows-latest

name: Build Plugin
runs-on: ${{ matrix.os }}
- runtime: linux
os: ubuntu-latest
reportName: linux-test-report
- runtime: mac
os: macOS-latest
reportName: mac-test-report
- runtime: windows
os: windows-latest
reportName: windows-test-report

steps:
# Checkout the eclipse plugin repository.
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@
"gulp-download2": "^1.1.0",
"mocha": "^9.2.2",
"ts-loader": "^9.3.1",
"typescript": "^4.8.4",
"vscode-extension-tester": "^7.3.0",
"typescript": "^5.7.2",
"vscode-extension-tester": "^8.10.0",
"vscode-test": "^1.3.0",
"webpack": "^5.96.1",
"webpack-cli": "^4.10.0",
Expand Down
18 changes: 13 additions & 5 deletions src/test/GradleTestDevModeActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ it('start gradle with docker from liberty dashboard', async () => {
}).timeout(350000);

it('Run tests for gradle project', async () => {


/* Adding delay before executing command in the terminal, to ensure
the directory path loads completely in macOS terminal before the command is printed.*/
await utils.delay(30000);
await utils.launchDashboardAction(item, constants.START_DASHBOARD_ACTION, constants.START_DASHBOARD_MAC_ACTION);
await utils.delay(30000);
const serverStartStatus = await utils.checkTerminalforServerState(constants.SERVER_START_STRING);
Expand Down Expand Up @@ -126,13 +129,16 @@ it('Run tests for gradle project', async () => {


it('start gradle with options from liberty dashboard', async () => {

const reportPath = path.join(utils.getGradleProjectPath(),"build", "reports", "tests", "test", "index.html");
const deleteReport = await utils.deleteReports(reportPath);
await utils.delay(30000);
expect (deleteReport).to.be.true;
/* Adding delay before executing command in the terminal, to ensure
the directory path loads completely in macOS terminal before the command is printed.*/
await utils.delay(30000);
await utils.launchDashboardAction(item, constants.START_DASHBOARD_ACTION_WITH_PARAM, constants.START_DASHBOARD_MAC_ACTION_WITH_PARAM);
await utils.setCustomParameter("--hotTests");
await utils.delay(30000);
await utils.delay(100000);
const serverStartStatus = await utils.checkTerminalforServerState(constants.SERVER_START_STRING);
if(!serverStartStatus)
console.log("Server started with params message not found in terminal ");
Expand All @@ -155,15 +161,17 @@ it('start gradle with options from liberty dashboard', async () => {
}).timeout(550000);

it('start gradle with history from liberty dashboard', async () => {

/* Adding delay before executing command in the terminal, to ensure
the directory path loads completely in macOS terminal before the command is printed.*/
await utils.delay(30000);
const reportPath = path.join(utils.getGradleProjectPath(),"build", "reports", "tests", "test", "index.html");
const deleteReport = await utils.deleteReports(reportPath);
expect (deleteReport).to.be.true;
await utils.launchDashboardAction(item, constants.START_DASHBOARD_ACTION_WITH_PARAM, constants.START_DASHBOARD_MAC_ACTION_WITH_PARAM);
const foundCommand = await utils.chooseCmdFromHistory("--hotTests");
console.log("foundcmd:" + foundCommand);
expect (foundCommand).to.be.true;
await utils.delay(30000);
await utils.delay(100000);
const serverStartStatus = await utils.checkTerminalforServerState(constants.SERVER_START_STRING);
if(!serverStartStatus)
console.log("Server started with params message not found in the terminal ");
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
],
"sourceMap": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
"strict": true, /* enable all strict type-checking options */
"skipLibCheck": true /* ignoring type checking for third-party libraries */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
Expand Down
Loading