From 8793a30a055b9b496fded68ca6372089dcdcdeec Mon Sep 17 00:00:00 2001 From: Ry Jones Date: Tue, 31 Oct 2023 10:02:57 -0700 Subject: [PATCH] Remove Azure Signed-off-by: Ry Jones --- ci/azure-pipelines-daily.yml | 121 ------- ci/azure-pipelines-interop.yml | 299 ------------------ ci/azure-pipelines.yml | 73 ----- .../ci/azure-pipelines-release.yml | 15 - .../ci/azure-pipelines.yml | 54 ---- 5 files changed, 562 deletions(-) delete mode 100644 ci/azure-pipelines-daily.yml delete mode 100644 ci/azure-pipelines-interop.yml delete mode 100644 ci/azure-pipelines.yml delete mode 100644 tools/chaincode-integration/ci/azure-pipelines-release.yml delete mode 100644 tools/chaincode-integration/ci/azure-pipelines.yml diff --git a/ci/azure-pipelines-daily.yml b/ci/azure-pipelines-daily.yml deleted file mode 100644 index 3c9883f1d..000000000 --- a/ci/azure-pipelines-daily.yml +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright the Hyperledger Fabric contributors. All rights reserved. -# -# SPDX-License-Identifier: Apache-2.0 - - -name: Fabric-Test-Daily-$(Date:yyyyMMdd) -trigger: none -pr: none -schedules: - # 3 AM UTC/10 PM EST - - cron: "0 3 * * *" - displayName: 'Fabric Test Daily Job' - branches: - include: - - main - - release-2.5 - - release-2.4 - - release-2.2 - always: true - -variables: - FABRIC_CFG_PATH: $(Agent.BuildDirectory)/go/src/github.com/hyperledger/fabric-test/config/ - GO_BIN: $(Agent.BuildDirectory)/go/bin - GO_PATH: $(Agent.BuildDirectory)/go - GO_VER: 1.18.7 - NODE_VER: 18.14.2 - PATH: $(Agent.BuildDirectory)/go/bin:$(Agent.BuildDirectory)/go/src/github.com/hyperledger/fabric-test/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin - -stages: - - stage: Barebones - dependsOn: [] - displayName: Barebones Network - pool: - vmImage: ubuntu-20.04 - jobs: - - job: - displayName: Run Scenario - timeoutInMinutes: 360 - steps: - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: make regression/barebones - displayName: Run Test - - task: PublishTestResults@2 - condition: always() - inputs: - testResultsFormat: 'JUnit' - testResultsFiles: 'regression/**/results*.xml' - - - stage: BasicNetwork - dependsOn: [] - displayName: Basic Network - pool: - vmImage: ubuntu-20.04 - jobs: - - job: - displayName: Run Scenario - steps: - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: make regression/basicnetwork - displayName: Run Test - - task: PublishTestResults@2 - condition: always() - inputs: - testResultsFormat: 'JUnit' - testResultsFiles: 'regression/**/results*.xml' - - - stage: Smoke - dependsOn: [] - displayName: Smoke Network - pool: - vmImage: ubuntu-20.04 - jobs: - - job: - displayName: Run Scenario - steps: - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: make regression/smoke - displayName: Run Test - - task: PublishTestResults@2 - condition: always() - inputs: - testResultsFormat: 'JUnit' - testResultsFiles: 'regression/**/results*.xml' - - - stage: Upgrade1_4to2_2 - dependsOn: [] - displayName: Upgrade Network From 1.4 Directly to 2.2 - pool: - vmImage: ubuntu-20.04 - jobs: - - job: Upgrade1_4to2_2 - displayName: Run Scenario - steps: - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: make upgrade1.4to2.2 - displayName: Run Test - - - stage: HSM - dependsOn: [] - displayName: HSM Network - pool: - vmImage: ubuntu-20.04 - jobs: - - job: - displayName: Run Scenario - steps: - - template: templates/install_deps.yml - - script: make regression/hsm - displayName: Run Test diff --git a/ci/azure-pipelines-interop.yml b/ci/azure-pipelines-interop.yml deleted file mode 100644 index e15ab352b..000000000 --- a/ci/azure-pipelines-interop.yml +++ /dev/null @@ -1,299 +0,0 @@ -# Copyright the Hyperledger Fabric contributors. All rights reserved. -# -# SPDX-License-Identifier: Apache-2.0 - -name: InterOpLite-$(Date:yyyyMMdd) -trigger: none -pr: none -schedules: - # Midnight UTC - - cron: "0 0 * * *" - displayName: InterOp Testing - branches: - include: - - main - - release-2.5 - - release-2.4 - - release-2.2 - always: true - -variables: - - group: artifactory - - name: ARTIFACT_DIRECTORY - value: $(Pipeline.Workspace) - - name: BRANCH - value: main - - name: FABRIC_CFG_PATH - value: $(Agent.BuildDirectory)/go/src/github.com/hyperledger/fabric-test/config/ - - name: GO_BIN - value: $(Agent.BuildDirectory)/go/bin - - name: GO_PATH - value: $(Agent.BuildDirectory)/go - - name: GO_VER - value: 1.18.7 - - name: NODE_VER - value: 18.14.2 - - name: PATH - value: $(Agent.BuildDirectory)/go/bin:$(Agent.BuildDirectory)/go/src/github.com/hyperledger/fabric-test/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin - - name: RELEASE - value: 3.0-stable - - name: WORKING_DIRECTORY - value: $(System.DefaultWorkingDirectory) - -stages: - # We have to deal with Fabric separately. Since it's build is a matrix, - # work has to be separated into it's own stages and jobs so it is - # not performed multiple times. In particular we can't publish the - # source code and docker images multiple times. - - stage: FabricSource - dependsOn: [] - displayName: Package Source Code - pool: - vmImage: ubuntu-20.04 - jobs: - - job: PackageFabricSource - pool: - vmImage: ubuntu-20.04 - steps: - - script: | - git clone -b "${BRANCH}" https://github.com/hyperledger/fabric --single-branch fabric - cd fabric - tar -czvf "${WORKING_DIRECTORY}/fabric-source.tgz" . - displayName: Package Fabric - - publish: fabric-source.tgz - artifact: fabric-source - displayName: Publish Binary Tarball - - - stage: BuildImages - dependsOn: - - FabricSource - displayName: Build Images - pool: - vmImage: ubuntu-20.04 - jobs: - - job: BuildChaincodeNode - pool: - vmImage: ubuntu-20.04 - steps: - - template: templates/install_deps.yml - - script: mkdir -p $(GO_BIN) - displayName: Create GOBIN - - script: make build/fabric-chaincode-node - displayName: Build Docker Images - - publish: $(System.DefaultWorkingDirectory)/nodeenv-docker.tgz - artifact: nodeenv-docker - displayName: Publish Docker Tarball - - publish: $(System.DefaultWorkingDirectory)/nodeenv-source.tgz - artifact: nodeenv-source - displayName: Publish Source Code Tarball - - - job: BuildChaincodeJava - pool: - vmImage: ubuntu-20.04 - steps: - - template: templates/install_deps.yml - - script: mkdir -p $(GO_BIN) - displayName: Create GOBIN - - script: make build/fabric-chaincode-java - displayName: Build Docker Images - - publish: $(System.DefaultWorkingDirectory)/javaenv-docker.tgz - artifact: javaenv-docker - displayName: Publish Docker Tarball - - publish: $(System.DefaultWorkingDirectory)/javaenv-source.tgz - artifact: javaenv-source - displayName: Publish Source Code Tarball - - - job: BuildFabric - pool: - vmImage: ubuntu-20.04 - strategy: - matrix: - BaseOS: - TARGET: baseos - CCEnv: - TARGET: ccenv - Orderer: - TARGET: orderer - Peer: - TARGET: peer - Tools: - TARGET: tools - steps: - - download: current - patterns: 'fabric-source.tgz' - displayName: Download Docker Tarballs - - template: templates/install_deps.yml - - script: mkdir -p $(GO_BIN) - displayName: Create GOBIN - - script: make build/fabric - env: - TARGET: $(TARGET) - displayName: Build Docker Images - - script: docker save -o $(TARGET)-docker.tgz hyperledger/fabric-$(TARGET):latest - - publish: $(System.DefaultWorkingDirectory)/$(TARGET)-docker.tgz - artifact: $(TARGET)-docker - displayName: Publish Docker Tarball - - - job: BuildFabricCA - pool: - vmImage: ubuntu-20.04 - steps: - - template: templates/install_deps.yml - - script: mkdir -p $(GO_BIN) - displayName: Create GOBIN - - script: make build/fabric-ca - displayName: Build Docker Images - - publish: $(System.DefaultWorkingDirectory)/ca-docker.tgz - artifact: ca-docker - displayName: Publish Docker Tarball - - publish: ca-source.tgz - artifact: ca-source - displayName: Publish Source Tarball - - - stage: InterOp - dependsOn: - - BuildImages - displayName: Interop Testing - pool: - vmImage: ubuntu-20.04 - jobs: - - job: TestNodeChaincode - pool: - vmImage: ubuntu-20.04 - steps: - - download: current - patterns: '*-docker.tgz' - displayName: Download Docker Tarballs - - download: current - artifact: nodeenv-source - displayName: Download Source Code Tarball - - template: templates/install_deps.yml - - script: ./ci/scripts/interop/common/load-docker-images.sh - displayName: Load Docker Images - - script: ./ci/scripts/interop/driver/fabric-chaincode-node.sh - displayName: Run Integration Tests - - - job: TestJavaChaincode - pool: - vmImage: ubuntu-20.04 - steps: - - download: current - patterns: '*-docker.tgz' - displayName: Download Docker Tarballs - - download: current - artifact: javaenv-source - displayName: Download Source Code Tarballs - - template: templates/install_deps.yml - - script: ./ci/scripts/interop/common/load-docker-images.sh - displayName: Load Docker Images - - script: ./ci/scripts/interop/driver/fabric-chaincode-java.sh - displayName: Run Integration Tests - - - job: TestNodeSDK - pool: - vmImage: ubuntu-20.04 - steps: - - download: current - patterns: '*-docker.tgz' - displayName: Download Docker Tarballs - - template: templates/install_deps.yml - - script: ./ci/scripts/interop/common/install-softhsm.sh - displayName: Install SoftHSM - - script: ./ci/scripts/interop/common/load-docker-images.sh - displayName: Load Docker Images - - script: ./ci/scripts/interop/driver/fabric-sdk-node.sh - displayName: Run Integration Tests - - - job: TestJavaSDK - pool: - vmImage: ubuntu-20.04 - steps: - - download: current - patterns: '*-docker.tgz' - displayName: Download Docker Tarballs - - template: templates/install_deps.yml - - script: ./ci/scripts/interop/common/load-docker-images.sh - displayName: Load Docker Images - - script: ./ci/scripts/interop/driver/fabric-sdk-java.sh - displayName: Run Integration Tests - - - stage: Functional - dependsOn: - - BuildImages - displayName: Functional Testing - pool: - vmImage: ubuntu-20.04 - jobs: - - job: FunctionalTests - pool: - vmImage: ubuntu-20.04 - steps: - - download: current - patterns: '*-docker.tgz' - displayName: Download Docker Tarballs - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: ./ci/scripts/interop/common/load-docker-images.sh - displayName: Load Docker Images - - script: mkdir -p ${GO_BIN} - displayName: Create GOBIN - - script: make regression/publish - displayName: Run Tests - - - stage: Publish - dependsOn: - - Functional - displayName: Publish - pool: - vmImage: ubuntu-20.04 - jobs: - - job: PublishArtifacts - pool: - vmImage: ubuntu-20.04 - steps: - - download: current - patterns: '*-docker.tgz' - displayName: Download Docker Tarballs - - download: current - patterns: '*-source.tgz' - displayName: Download Docker Tarballs - - template: templates/install_deps.yml - - script: ./ci/scripts/interop/common/load-docker-images.sh - displayName: Load Docker Images - - script: ./ci/scripts/interop/publish/docker-images.sh - env: - ARTIFACTORY_USERNAME: $(ARTIFACTORY_USERNAME) - ARTIFACTORY_PASSWORD: $(ARTIFACTORY_PASSWORD) - displayName: Publish Docker Images - - script: ./ci/scripts/interop/publish/fabric-binary.sh - env: - ARTIFACTORY_USERNAME: $(ARTIFACTORY_USERNAME) - ARTIFACTORY_PASSWORD: $(ARTIFACTORY_PASSWORD) - displayName: Publish Fabric Binaries - - script: ./ci/scripts/interop/publish/fabric-ca-binary.sh - env: - ARTIFACTORY_USERNAME: $(ARTIFACTORY_USERNAME) - ARTIFACTORY_PASSWORD: $(ARTIFACTORY_PASSWORD) - displayName: Publish Fabric-CA Binaries - -# TODO: Implement testing for the Gateways and Contracts - -# - job: TestGateway -# pool: -# vmImage: ubuntu-20.04 -# steps: -# - download: current -# patterns: '*-docker.tgz' -# displayName: Download Docker Tarballs -# - script: -# -# - job: TestContractAPIGo -# pool: -# vmImage: ubuntu-20.04 -# steps: -# - download: current -# patterns: '*-docker.tgz' -# displayName: Download Docker Tarballs -# - script: diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml deleted file mode 100644 index d6d97524b..000000000 --- a/ci/azure-pipelines.yml +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright the Hyperledger Fabric contributors. All rights reserved. -# -# SPDX-License-Identifier: Apache-2.0 - - -name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr) -trigger: - branches: - include: - - main - paths: - exclude: - - tools/chaincode-integration/* -pr: - branches: - include: - - main - paths: - exclude: - - tools/chaincode-integration/* - -variables: - FABRIC_CFG_PATH: $(Agent.BuildDirectory)/go/src/github.com/hyperledger/fabric-test/config/ - GO_BIN: $(Agent.BuildDirectory)/go/bin - GO_PATH: $(Agent.BuildDirectory)/go - GO_VER: 1.18.7 - NODE_VER: 18.14.2 - PATH: $(Agent.BuildDirectory)/go/bin:$(Agent.BuildDirectory)/go/src/github.com/hyperledger/fabric-test/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin -stages: - - stage: TestPullRequest - dependsOn: [] - displayName: Test Pull Request - pool: - vmImage: ubuntu-20.04 - jobs: - - job: VerifyBuild - steps: - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: make lint - displayName: Lint Code - - script: make unit-tests - displayName: Run Go Tests - - - job: SmokeTest - steps: - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: make regression/smoke - displayName: Run Smoke Tests - - task: PublishTestResults@2 - condition: always() - inputs: - testResultsFormat: 'JUnit' - testResultsFiles: 'regression/smoke/results*.xml' - - - job: BasicNetworkTest - steps: - - checkout: self - path: 'go/src/github.com/hyperledger/fabric-test' - displayName: Checkout Fabric Test Code - - template: templates/install_deps.yml - - script: make regression/basicnetwork - displayName: Run Basic Network - - task: PublishTestResults@2 - condition: always() - inputs: - testResultsFormat: 'JUnit' - testResultsFiles: 'regression/smoke/results*.xml' diff --git a/tools/chaincode-integration/ci/azure-pipelines-release.yml b/tools/chaincode-integration/ci/azure-pipelines-release.yml deleted file mode 100644 index bab04336c..000000000 --- a/tools/chaincode-integration/ci/azure-pipelines-release.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright the Hyperledger Fabric contributors. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -trigger: none -pr: none - -jobs: - - job: NpmReleasePublish - displayName: 'Publish release' - steps: - - task: Npm@1 - inputs: - command: publish - workingDir: $(Agent.BuildDirectory)/tools/chaincode-integration - publishEndpoint: 'npm' \ No newline at end of file diff --git a/tools/chaincode-integration/ci/azure-pipelines.yml b/tools/chaincode-integration/ci/azure-pipelines.yml deleted file mode 100644 index 95f2fe848..000000000 --- a/tools/chaincode-integration/ci/azure-pipelines.yml +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright the Hyperledger Fabric contributors. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr) -trigger: - branches: - include: - - main - paths: - include: - - tools/chaincode-integration/* -pr: - branches: - include: - - main - paths: - include: - - tools/chaincode-integration/* - -jobs: - - job: Tests - pool: - vmImage: 'ubuntu-20.04' - container: 'node:16' - steps: - - script: npm install - workingDirectory: tools/chaincode-integration - displayName: Install NPM Dependencies - - script: npm run licchk - workingDirectory: tools/chaincode-integration - displayName: Run license checking - - job: NpmUnstablePublish - dependsOn: Tests - condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) - displayName: 'Publish unstable' - steps: - - script: | - touch $(Agent.TempDirectory)/.npmrc - echo '##vso[task.setvariable variable=NPM_CONFIG_USERCONFIG]$(Agent.TempDirectory)/.npmrc' - displayName: 'create user .npmrc file' - - script: | - npm config set registry https://registry.npmjs.org/ - npm config ls - displayName: 'set npmjs registry' - - task: npmAuthenticate@0 - inputs: - workingFile: '$(Agent.TempDirectory)/.npmrc' - customEndpoint: 'npm' - - script: | - npm install - ./ci/scripts/package-stamp.js - npm publish --tag unstable - workingDirectory: tools/chaincode-integration - displayName: 'npm publish'