2024-08-02 14:16:42 +03:00
|
|
|
parameters:
|
|
|
|
- name: verbose_log
|
|
|
|
displayName: 'Verbose Log'
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
|
2024-08-02 14:23:44 +03:00
|
|
|
|
2024-08-02 13:56:54 +03:00
|
|
|
stages:
|
|
|
|
- stage: KernelBuild
|
|
|
|
jobs:
|
|
|
|
# Ubuntu Tests
|
|
|
|
- job: Set_1
|
2024-08-03 06:53:09 +03:00
|
|
|
timeoutInMinutes: 900
|
2024-08-02 13:56:54 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Ubuntu-22:
|
2024-08-23 08:12:34 +03:00
|
|
|
containerName: 'validation'
|
2024-08-02 13:56:54 +03:00
|
|
|
pool:
|
2024-08-23 08:12:34 +03:00
|
|
|
name: "blobfuse-validation-pool"
|
2024-08-02 13:56:54 +03:00
|
|
|
|
|
|
|
variables:
|
|
|
|
- group: NightlyBlobFuse
|
|
|
|
- name: ROOT_DIR
|
|
|
|
value: "/usr/pipeline/workv2"
|
|
|
|
- name: WORK_DIR
|
|
|
|
value: "/usr/pipeline/workv2/go/src/azure-storage-fuse"
|
|
|
|
- name: MOUNT_DIR
|
|
|
|
value: "/usr/pipeline/workv2/blob_mnt"
|
|
|
|
- name: TEMP_DIR
|
|
|
|
value: "/usr/pipeline/workv2/temp"
|
|
|
|
- name: BLOBFUSE2_CFG
|
|
|
|
value: "/usr/pipeline/workv2/blobfuse2.yaml"
|
|
|
|
- name: GOPATH
|
|
|
|
value: "/usr/pipeline/workv2/go"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: 'azure-pipeline-templates/setup.yml'
|
|
|
|
parameters:
|
|
|
|
tags: $(tags)
|
|
|
|
installStep:
|
|
|
|
script: |
|
|
|
|
sudo apt-get update --fix-missing
|
|
|
|
sudo apt update
|
|
|
|
sudo apt-get install cmake gcc libfuse3-dev git parallel -y
|
|
|
|
sudo apt-get install fuse3 -y
|
|
|
|
displayName: 'Install fuse'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison -y
|
|
|
|
displayName: 'Install kernel build dependencies'
|
|
|
|
|
|
|
|
- script: |
|
2024-08-22 14:18:52 +03:00
|
|
|
cd $(WORK_DIR)
|
2024-08-23 09:23:22 +03:00
|
|
|
$(WORK_DIR)/blobfuse2 gen-test-config --config-file=azure_block_bench.yaml --container-name=$(containerName) --temp-path=$(TEMP_DIR) --output-file=$(BLOBFUSE2_CFG)
|
2024-08-22 14:18:52 +03:00
|
|
|
displayName: "Create Config File"
|
|
|
|
env:
|
2024-08-23 08:12:34 +03:00
|
|
|
NIGHTLY_STO_ACC_NAME: $(BLOBFUSE_BENCHMARK_ACCOUNT)
|
|
|
|
NIGHTLY_STO_ACC_KEY: $(BLOBFUSE_BENCHMARK_ACC_KEY)
|
|
|
|
ACCOUNT_TYPE: "block"
|
|
|
|
ACCOUNT_ENDPOINT: https://$(BLOBFUSE_BENCHMARK_ACCOUNT).blob.core.windows.net
|
2024-08-22 14:18:52 +03:00
|
|
|
continueOnError: false
|
|
|
|
|
2024-08-22 14:02:55 +03:00
|
|
|
- script: |
|
2024-08-22 14:18:52 +03:00
|
|
|
cat $(BLOBFUSE2_CFG)
|
|
|
|
displayName: 'Print config file'
|
2024-08-22 14:02:55 +03:00
|
|
|
|
2024-08-22 13:36:15 +03:00
|
|
|
- template: 'azure-pipeline-templates/blobfuse2-kernel-test.yml'
|
2024-08-02 13:56:54 +03:00
|
|
|
parameters:
|
|
|
|
mount_dir: $(MOUNT_DIR)
|
|
|
|
temp_dir: $(TEMP_DIR)
|
|
|
|
kversion: "6.10.2"
|
2024-08-22 14:18:52 +03:00
|
|
|
idstring: 'File-Cache'
|
|
|
|
config_file: $(BLOBFUSE2_CFG)
|
2024-08-02 13:56:54 +03:00
|
|
|
|
2024-08-23 09:23:22 +03:00
|
|
|
- stage: StripedWrite
|
|
|
|
jobs:
|
|
|
|
# Ubuntu Tests
|
|
|
|
- job: Set_1
|
|
|
|
timeoutInMinutes: 900
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Ubuntu-22:
|
|
|
|
containerName: 'validation'
|
|
|
|
pool:
|
|
|
|
name: "blobfuse-validation-pool"
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- group: NightlyBlobFuse
|
|
|
|
- name: ROOT_DIR
|
|
|
|
value: "/usr/pipeline/workv2"
|
|
|
|
- name: WORK_DIR
|
|
|
|
value: "/usr/pipeline/workv2/go/src/azure-storage-fuse"
|
|
|
|
- name: MOUNT_DIR
|
|
|
|
value: "/usr/pipeline/workv2/blob_mnt"
|
|
|
|
- name: TEMP_DIR
|
|
|
|
value: "/usr/pipeline/workv2/temp"
|
|
|
|
- name: BLOBFUSE2_CFG
|
|
|
|
value: "/usr/pipeline/workv2/blobfuse2.yaml"
|
|
|
|
- name: GOPATH
|
|
|
|
value: "/usr/pipeline/workv2/go"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: 'azure-pipeline-templates/setup.yml'
|
|
|
|
parameters:
|
|
|
|
tags: $(tags)
|
|
|
|
installStep:
|
|
|
|
script: |
|
|
|
|
sudo apt-get update --fix-missing
|
|
|
|
sudo apt update
|
|
|
|
sudo apt-get install cmake gcc libfuse3-dev git parallel -y
|
|
|
|
sudo apt-get install fuse3 -y
|
|
|
|
displayName: 'Install fuse'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
cd $(WORK_DIR)
|
|
|
|
$(WORK_DIR)/blobfuse2 gen-test-config --config-file=azure_block_bench.yaml --container-name=$(containerName) --temp-path=$(TEMP_DIR) --output-file=$(BLOBFUSE2_CFG)
|
|
|
|
displayName: Create Key Config File
|
|
|
|
env:
|
|
|
|
AZURE_STORAGE_ACCOUNT: $(BLOBFUSE_BENCHMARK_ACCOUNT)
|
|
|
|
AZURE_STORAGE_ACCESS_KEY: $(BLOBFUSE_BENCHMARK_ACC_KEY)
|
|
|
|
continueOnError: false
|
|
|
|
|
|
|
|
- script: cat $(BLOBFUSE2_CFG)
|
|
|
|
displayName: Print config file
|
|
|
|
|
|
|
|
- script:
|
|
|
|
mkdir -p $(MOUNT_DIR)
|
|
|
|
mkdir -p $(TEMP_DIR)
|
|
|
|
displayName: "Create directory structure"
|
|
|
|
|
|
|
|
- template: 'azure-pipeline-templates/mount.yml'
|
|
|
|
parameters:
|
|
|
|
working_dir: $(WORK_DIR)
|
|
|
|
mount_dir: $(MOUNT_DIR)
|
|
|
|
temp_dir: $(TEMP_DIR)
|
|
|
|
ro_mount: false
|
|
|
|
mountStep:
|
|
|
|
script: |
|
|
|
|
$(WORK_DIR)/blobfuse2 mount $(MOUNT_DIR) --config-file=$(BLOBFUSE2_CFG) --default-working-dir=$(WORK_DIR)
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
rm -rf $(MOUNT_DIR)/striped
|
|
|
|
mkdir -p $(MOUNT_DIR)/striped
|
|
|
|
cd $(MOUNT_DIR)/striped
|
|
|
|
$(WORK_DIR)/test/scripts/striped_write.sh
|
|
|
|
displayName: 'Run striped write script'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
rm -rf $(MOUNT_DIR)/striped
|
|
|
|
displayName: 'Cleanup data'
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
- template: 'azure-pipeline-templates/cleanup.yml'
|
|
|
|
parameters:
|
|
|
|
working_dir: $(WORK_DIR)
|
|
|
|
mount_dir: $(MOUNT_DIR)
|
|
|
|
temp_dir: $(TEMP_DIR)
|
|
|
|
|
2024-08-07 14:34:30 +03:00
|
|
|
- stage: VScodeBuild
|
|
|
|
jobs:
|
|
|
|
# Ubuntu Tests
|
|
|
|
- job: Set_1
|
|
|
|
timeoutInMinutes: 900
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Ubuntu-22:
|
2024-08-23 08:12:34 +03:00
|
|
|
containerName: 'validation'
|
2024-08-07 14:34:30 +03:00
|
|
|
pool:
|
2024-08-23 08:12:34 +03:00
|
|
|
name: "blobfuse-validation-pool"
|
2024-08-07 14:34:30 +03:00
|
|
|
|
|
|
|
variables:
|
|
|
|
- group: NightlyBlobFuse
|
|
|
|
- name: ROOT_DIR
|
|
|
|
value: "/usr/pipeline/workv2"
|
|
|
|
- name: WORK_DIR
|
|
|
|
value: "/usr/pipeline/workv2/go/src/azure-storage-fuse"
|
|
|
|
- name: MOUNT_DIR
|
|
|
|
value: "/usr/pipeline/workv2/blob_mnt"
|
|
|
|
- name: TEMP_DIR
|
|
|
|
value: "/usr/pipeline/workv2/temp"
|
|
|
|
- name: BLOBFUSE2_CFG
|
|
|
|
value: "/usr/pipeline/workv2/blobfuse2.yaml"
|
|
|
|
- name: GOPATH
|
|
|
|
value: "/usr/pipeline/workv2/go"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: 'azure-pipeline-templates/setup.yml'
|
|
|
|
parameters:
|
|
|
|
tags: $(tags)
|
|
|
|
installStep:
|
|
|
|
script: |
|
|
|
|
sudo apt-get update --fix-missing
|
|
|
|
sudo apt update
|
|
|
|
sudo apt-get install cmake gcc libfuse3-dev git parallel -y
|
|
|
|
sudo apt-get install fuse3 -y
|
|
|
|
displayName: 'Install fuse'
|
|
|
|
|
|
|
|
- script: |
|
2024-08-19 10:09:36 +03:00
|
|
|
cd $(WORK_DIR)
|
2024-08-23 08:12:34 +03:00
|
|
|
$(WORK_DIR)/blobfuse2 gen-test-config --config-file=azure_block_bench.yaml --container-name=$(containerName) --temp-path=$(TEMP_DIR) --output-file=$(BLOBFUSE2_CFG)
|
2024-08-19 10:09:36 +03:00
|
|
|
displayName: Create Key Config File
|
|
|
|
env:
|
2024-08-23 08:12:34 +03:00
|
|
|
AZURE_STORAGE_ACCOUNT: $(BLOBFUSE_BENCHMARK_ACCOUNT)
|
|
|
|
AZURE_STORAGE_ACCESS_KEY: $(BLOBFUSE_BENCHMARK_ACC_KEY)
|
2024-08-23 08:13:32 +03:00
|
|
|
continueOnError: false
|
2024-08-19 10:09:36 +03:00
|
|
|
|
|
|
|
- script: cat $(BLOBFUSE2_CFG)
|
|
|
|
displayName: Print config file
|
|
|
|
|
|
|
|
- script:
|
|
|
|
mkdir -p $(MOUNT_DIR)
|
|
|
|
mkdir -p $(TEMP_DIR)
|
|
|
|
displayName: "Create directory structure"
|
|
|
|
|
2024-08-22 13:36:15 +03:00
|
|
|
- template: 'azure-pipeline-templates/mount.yml'
|
2024-08-19 10:09:36 +03:00
|
|
|
parameters:
|
|
|
|
working_dir: $(WORK_DIR)
|
|
|
|
mount_dir: $(MOUNT_DIR)
|
|
|
|
temp_dir: $(TEMP_DIR)
|
|
|
|
ro_mount: false
|
|
|
|
mountStep:
|
|
|
|
script: |
|
|
|
|
$(WORK_DIR)/blobfuse2 mount $(MOUNT_DIR) --config-file=$(BLOBFUSE2_CFG) --default-working-dir=$(WORK_DIR)
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
cd $(MOUNT_DIR)
|
2024-08-07 14:34:30 +03:00
|
|
|
git clone https://github.com/microsoft/vscode.git
|
|
|
|
displayName: 'Clone VScode'
|
|
|
|
|
|
|
|
- script: |
|
2024-08-19 10:09:36 +03:00
|
|
|
cd $(MOUNT_DIR)/vscode
|
2024-08-07 14:34:30 +03:00
|
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
|
|
|
sudo apt-get install -y nodejs
|
|
|
|
displayName: 'Install dependencies'
|
|
|
|
|
|
|
|
- script: |
|
2024-08-19 10:09:36 +03:00
|
|
|
cd $(MOUNT_DIR)/vscode
|
2024-08-19 12:52:57 +03:00
|
|
|
sudo npm install -g yarn
|
2024-08-07 14:34:30 +03:00
|
|
|
displayName: 'Install yarn'
|
|
|
|
|
2024-08-19 09:38:39 +03:00
|
|
|
- script: |
|
2024-08-19 10:09:36 +03:00
|
|
|
cd $(MOUNT_DIR)/vscode
|
2024-08-19 09:38:39 +03:00
|
|
|
yarn add ternary-stream json-stable-stringify-without-jsonify
|
|
|
|
displayName: 'Add modules'
|
|
|
|
|
2024-08-07 14:34:30 +03:00
|
|
|
- script: |
|
2024-08-19 10:09:36 +03:00
|
|
|
cd $(MOUNT_DIR)/vscode
|
2024-08-07 14:34:30 +03:00
|
|
|
sudo yarn
|
|
|
|
displayName: 'Build VScode'
|
|
|
|
|
|
|
|
- script: |
|
2024-08-19 10:09:36 +03:00
|
|
|
cd $(MOUNT_DIR)/vscode
|
2024-08-07 14:34:30 +03:00
|
|
|
yarn compile
|
|
|
|
displayName: 'Compile VScode'
|
2024-08-23 09:23:22 +03:00
|
|
|
|
|
|
|
- script: |
|
|
|
|
cd $(MOUNT_DIR)/
|
|
|
|
rm -rf vscode
|
|
|
|
rm -rf vscode
|
|
|
|
rm -rf vscode
|
|
|
|
displayName: 'Cleanup Mount'
|
2024-08-19 09:38:39 +03:00
|
|
|
|
2024-08-19 12:52:57 +03:00
|
|
|
# Cleanup
|
2024-08-19 10:09:36 +03:00
|
|
|
- template: 'azure-pipeline-templates/cleanup.yml'
|
|
|
|
parameters:
|
|
|
|
working_dir: $(WORK_DIR)
|
|
|
|
mount_dir: $(MOUNT_DIR)
|
|
|
|
temp_dir: $(TEMP_DIR)
|
2024-08-02 13:56:54 +03:00
|
|
|
|
2024-08-19 12:52:57 +03:00
|
|
|
- stage: FineTuningTests
|
|
|
|
jobs:
|
|
|
|
# Ubuntu Tests
|
|
|
|
- job: Set_1
|
|
|
|
timeoutInMinutes: 900
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Ubuntu-22:
|
2024-08-23 09:45:10 +03:00
|
|
|
containerName: 'finetuning'
|
2024-08-19 12:52:57 +03:00
|
|
|
pool:
|
2024-08-23 08:12:34 +03:00
|
|
|
name: "blobfuse-validation-pool"
|
2024-08-19 12:52:57 +03:00
|
|
|
|
|
|
|
variables:
|
|
|
|
- group: NightlyBlobFuse
|
|
|
|
- name: ROOT_DIR
|
|
|
|
value: "/usr/pipeline/workv2"
|
|
|
|
- name: WORK_DIR
|
|
|
|
value: "/usr/pipeline/workv2/go/src/azure-storage-fuse"
|
|
|
|
- name: MOUNT_DIR
|
|
|
|
value: "/mnt/blobfusemount"
|
|
|
|
- name: TEMP_DIR
|
|
|
|
value: "/usr/pipeline/workv2/temp"
|
|
|
|
- name: BLOBFUSE2_CFG
|
|
|
|
value: "/usr/pipeline/workv2/blobfuse2.yaml"
|
|
|
|
- name: GOPATH
|
|
|
|
value: "/usr/pipeline/workv2/go"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: 'azure-pipeline-templates/setup.yml'
|
|
|
|
parameters:
|
|
|
|
tags: $(tags)
|
|
|
|
installStep:
|
|
|
|
script: |
|
|
|
|
sudo apt-get update --fix-missing
|
|
|
|
sudo apt update
|
|
|
|
sudo apt-get install cmake gcc libfuse3-dev git parallel -y
|
|
|
|
sudo apt-get install fuse3 -y
|
|
|
|
displayName: 'Install fuse'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
sudo apt-get install python3 -y
|
|
|
|
python3 --version
|
|
|
|
displayName: 'Installing Python'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
cd $(WORK_DIR)
|
2024-08-23 08:12:34 +03:00
|
|
|
$(WORK_DIR)/blobfuse2 gen-test-config --config-file=azure_block_bench.yaml --container-name=$(containerName) --temp-path=$(TEMP_DIR) --output-file=$(BLOBFUSE2_CFG)
|
2024-08-19 12:52:57 +03:00
|
|
|
displayName: Create Key Config File
|
|
|
|
env:
|
2024-08-23 08:12:34 +03:00
|
|
|
AZURE_STORAGE_ACCOUNT: $(BLOBFUSE_BENCHMARK_ACCOUNT)
|
|
|
|
AZURE_STORAGE_ACCESS_KEY: $(BLOBFUSE_BENCHMARK_ACC_KEY)
|
2024-08-19 12:52:57 +03:00
|
|
|
continueOnError: false
|
|
|
|
|
|
|
|
- script: cat $(BLOBFUSE2_CFG)
|
|
|
|
displayName: Print config file
|
|
|
|
|
|
|
|
- script:
|
|
|
|
mkdir -p $(MOUNT_DIR)
|
|
|
|
mkdir -p $(TEMP_DIR)
|
|
|
|
displayName: "Create directory structure"
|
|
|
|
|
2024-08-22 13:38:12 +03:00
|
|
|
- template: 'azure-pipeline-templates/mount.yml'
|
2024-08-19 12:52:57 +03:00
|
|
|
parameters:
|
|
|
|
working_dir: $(WORK_DIR)
|
|
|
|
mount_dir: $(MOUNT_DIR)
|
|
|
|
temp_dir: $(TEMP_DIR)
|
|
|
|
ro_mount: false
|
|
|
|
mountStep:
|
|
|
|
script: |
|
|
|
|
$(WORK_DIR)/blobfuse2 mount $(MOUNT_DIR) --config-file=$(BLOBFUSE2_CFG) --default-working-dir=$(WORK_DIR)
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
cd $(MOUNT_DIR)
|
|
|
|
python3 finetuning/finetuning.py
|
|
|
|
displayName: 'Run FineTuning Tests'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
cd $(MOUNT_DIR)
|
|
|
|
python3 finetuning/loadcheckpoint.py
|
|
|
|
expect -c 'spawn python3 loadcheckpoint.py; send "3\r"; interact'
|
|
|
|
displayName: 'Load checkpoints'
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
- template: 'azure-pipeline-templates/cleanup.yml'
|
|
|
|
parameters:
|
|
|
|
working_dir: $(WORK_DIR)
|
|
|
|
mount_dir: $(MOUNT_DIR)
|
|
|
|
temp_dir: $(TEMP_DIR)
|
2024-08-19 10:09:36 +03:00
|
|
|
|