From eeb6d7ba0d52a5d61d73885469edf11988ec06e8 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Wed, 19 Jun 2024 15:40:32 -1000 Subject: [PATCH 1/9] Still trying to speed up the windows builds. --- .github/workflows/commit.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 32e28dcf..d9dc990d 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, macos-latest, windows-2019] + os: [windows-2019] # [ubuntu-20.04, macos-latest, windows-2019] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -43,6 +43,15 @@ jobs: $env:RUSTC_WRAPPER = (Get-Command sccache).Source $env:XET_GLOBAL_DEDUP_POLICY = "never" + # Set up the NFS server if possible. + git clone --depth=1 git@github.com:xetdata/nfsserve.git + cd nfsserve + cargo run --release --example demo --features demo + mount.exe -o anon,nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: + $env:TMP = "X:\\" + $env:TEMP = "X:\\" + + # Change directory and build the Rust project cd rust cargo build --verbose --profile=opt-test From fb766b17fa0896657beb1fdaab78f660ba0fb2a7 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Fri, 21 Jun 2024 17:31:02 -0700 Subject: [PATCH 2/9] Fixed path. --- .github/workflows/commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index d9dc990d..928492cc 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -44,7 +44,7 @@ jobs: $env:XET_GLOBAL_DEDUP_POLICY = "never" # Set up the NFS server if possible. - git clone --depth=1 git@github.com:xetdata/nfsserve.git + git clone --depth=1 https://github.com/xetdata/nfsserve.git cd nfsserve cargo run --release --example demo --features demo mount.exe -o anon,nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: From 80c9b3d9ef3cfa50966626478967667526c6fdc3 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Sun, 23 Jun 2024 15:44:36 -0700 Subject: [PATCH 3/9] Next try. --- .github/workflows/commit.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 928492cc..cbf0aa09 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -46,11 +46,15 @@ jobs: # Set up the NFS server if possible. git clone --depth=1 https://github.com/xetdata/nfsserve.git cd nfsserve - cargo run --release --example demo --features demo + cargo build --release --example demo --features demo + + $process = Start-Process -FilePath "./target/release/demo.exe" -PassThru -NoNewWindow + Start-Sleep -Seconds 5 + mount.exe -o anon,nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: + $env:TMP = "X:\\" $env:TEMP = "X:\\" - # Change directory and build the Rust project cd rust @@ -67,6 +71,7 @@ jobs: cd gitxet/ cargo build --verbose --profile=opt-test cargo test --profile=opt-test + Stop-Process -Id $process.Id - name: Lint (Linux only) if: runner.os == 'Linux' From b9354422dd7226a587f068b4f00c5ee1b898d872 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Mon, 24 Jun 2024 10:42:07 -0700 Subject: [PATCH 4/9] Next try. --- .github/workflows/commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index cbf0aa09..49627211 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -47,8 +47,8 @@ jobs: git clone --depth=1 https://github.com/xetdata/nfsserve.git cd nfsserve cargo build --release --example demo --features demo - - $process = Start-Process -FilePath "./target/release/demo.exe" -PassThru -NoNewWindow + + $process = Start-Process -FilePath "target/release/demo.exe" -PassThru -NoNewWindow Start-Sleep -Seconds 5 mount.exe -o anon,nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: From 5448efa4340ad6fe81b7c1fc2e2bf5b10bbf6527 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Mon, 24 Jun 2024 10:52:47 -0700 Subject: [PATCH 5/9] Query. --- .github/workflows/commit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 49627211..34d4d70c 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -47,6 +47,9 @@ jobs: git clone --depth=1 https://github.com/xetdata/nfsserve.git cd nfsserve cargo build --release --example demo --features demo + + # List the contents of the target/release directory + Get-ChildItem -Path "target/release" $process = Start-Process -FilePath "target/release/demo.exe" -PassThru -NoNewWindow Start-Sleep -Seconds 5 From 20d1a1349ef0c9c09b239dbda6c208a0d333ada9 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Mon, 24 Jun 2024 11:09:24 -0700 Subject: [PATCH 6/9] Update commit.yml --- .github/workflows/commit.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 34d4d70c..79c65b06 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -46,12 +46,13 @@ jobs: # Set up the NFS server if possible. git clone --depth=1 https://github.com/xetdata/nfsserve.git cd nfsserve - cargo build --release --example demo --features demo + cargo build --verbose --release --example demo --features demo # List the contents of the target/release directory Get-ChildItem -Path "target/release" + Get-ChildItem -Path "target/release/examples" - $process = Start-Process -FilePath "target/release/demo.exe" -PassThru -NoNewWindow + $process = Start-Process -FilePath "target/release/examples/demo.exe" -PassThru -NoNewWindow Start-Sleep -Seconds 5 mount.exe -o anon,nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: From e6c12f0f810ecf96a370cc146dc6dfcc2ee168a6 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Mon, 24 Jun 2024 11:20:08 -0700 Subject: [PATCH 7/9] Update commit.yml --- .github/workflows/commit.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 79c65b06..8fa81409 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -54,8 +54,14 @@ jobs: $process = Start-Process -FilePath "target/release/examples/demo.exe" -PassThru -NoNewWindow Start-Sleep -Seconds 5 + + # $mountPoint = "X:" # You can choose any available drive letter + # New-Item -Path $mountPoint -ItemType Directory -Force + + # Enable NFS optional features + Enable-WindowsOptionalFeature -Online -FeatureName ServicesForNFS-ClientOnly - mount.exe -o anon,nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: + mount.exe -o nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: $env:TMP = "X:\\" $env:TEMP = "X:\\" From a759f22b2fdd9e435790ec86be881bc5b5eeb36c Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Mon, 24 Jun 2024 11:28:06 -0700 Subject: [PATCH 8/9] Update commit.yml --- .github/workflows/commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 8fa81409..223906f3 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-2019] # [ubuntu-20.04, macos-latest, windows-2019] + os: [windows-2022] # [ubuntu-20.04, macos-latest, windows-2019] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -59,7 +59,7 @@ jobs: # New-Item -Path $mountPoint -ItemType Directory -Force # Enable NFS optional features - Enable-WindowsOptionalFeature -Online -FeatureName ServicesForNFS-ClientOnly + # Enable-WindowsOptionalFeature -Online -FeatureName ServicesForNFS-ClientOnly mount.exe -o nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: From b0b877d0d50641dabe6a74e539eddf0b6d9ac80b Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Mon, 24 Jun 2024 11:42:48 -0700 Subject: [PATCH 9/9] Update commit.yml --- .github/workflows/commit.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 223906f3..6a372aed 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -60,8 +60,16 @@ jobs: # Enable NFS optional features # Enable-WindowsOptionalFeature -Online -FeatureName ServicesForNFS-ClientOnly - - mount.exe -o nolock,mtype=soft,fileaccess=6,casesensitive,lang=ansi,rsize=128,wsize=128,timeout=60,retry=2,port=11111 \\127.0.0.1\\ X: + + # Define the mount point + $mountPoint = "X:" + + # Create the mount point directory if it doesn't exist + if (-Not (Test-Path $mountPoint)) { + New-Item -Path $mountPoint -ItemType Directory -Force + } + + mount.exe \\127.0.0.1\\ $mountPoint $env:TMP = "X:\\" $env:TEMP = "X:\\"