diff --git a/.github/workflows/actions_docker_test.yml b/.github/workflows/actions_docker_test.yml new file mode 100644 index 00000000..be0deb2c --- /dev/null +++ b/.github/workflows/actions_docker_test.yml @@ -0,0 +1,42 @@ +name: Actions Docker Test + +on: + pull_request: + branches: + - master + +jobs: + Docker-Test: + runs-on: ubuntu-latest + steps: + - name: UID outside of Docker + run: | + echo "Outside of Docker I am $(id)" + pwd + touch testfile + ls -l + cat /etc/os-release + apt-get -y update + apt-get -y install bind9-dnsutils iproute2 net-tools + cat /etc/resolv.conf + nslookup artifactory.dc.hpdd.intel.com + which docker + dpkg -S $(which docker) + ip route ls + ip addr ls + ifconfig -a + + - name: UID inside of Docker + run: | + docker run -v "$PWD":"$PWD" -w "$PWD" --rm ubuntu:latest \ + bash -c 'echo "Inside of Docker I am $(id)"; pwd; ls -l; + cat /etc/os-release + apt-get -y update + apt-get -y install bind9-dnsutils iproute2 net-tools + ip route ls + ip addr ls + ifconfig -a + cat /etc/resolv.conf + echo "nameserver 169.254.0.1" > /etc/resolv.conf + cat /etc/resolv.conf + nslookup artifactory.dc.hpdd.intel.com' diff --git a/.github/workflows/rpm-build-and-test.yml b/.github/workflows/rpm-build-and-test.yml index 86c2f0b1..7ac4f1da 100644 --- a/.github/workflows/rpm-build-and-test.yml +++ b/.github/workflows/rpm-build-and-test.yml @@ -11,7 +11,9 @@ env: LEAP15_VERSION: 15.5 # Which distros to build for DISTROS: el8 el9 leap15 - TEST_TAG: pr + # DO NOT LAND -- just to speed up testing + # TEST_TAG: pr + TEST_TAG: always_passes,vm PACKAGING_DIR: . NAME: argobots @@ -41,7 +43,7 @@ permissions: {} jobs: Variables: - # What a dumb job this is. + # What a dumb jobs this is # Needed because of https://github.com/orgs/community/discussions/26671 # Ideally want to be able to use: # with: @@ -68,7 +70,7 @@ jobs: if: inputs.rpm-test-version == '' permissions: statuses: write - uses: daos-stack/actions-lib/.github/workflows/rpm-build.yml@v1 + uses: daos-stack/actions-lib/.github/workflows/rpm-build.yml@bmurrell/initial secrets: inherit with: NAME: ${{ needs.Variables.outputs.NAME }} @@ -82,7 +84,7 @@ jobs: # TODO: investigate how cancelling this can cancel the downstream job name: Test RPMs with DAOS needs: [Variables, Call-RPM-Build] - uses: daos-stack/actions-lib/.github/workflows/rpm-test.yml@v1 + uses: daos-stack/actions-lib/.github/workflows/rpm-test.yml@bmurrell/initial secrets: inherit with: NAME: ${{ needs.Variables.outputs.NAME }} diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 20b4dcd6..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/groovy -/* Copyright (C) 2019-2022 Intel Corporation - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted for any purpose (including commercial purposes) - * provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions, and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions, and the following disclaimer in the - * documentation and/or materials provided with the distribution. - * - * 3. In addition, redistributions of modified forms of the source or binary - * code must carry prominent notices stating that the original code was - * changed and the date of the change. - * - * 4. All publications or advertising materials mentioning features or use of - * this software are asked, but not required, to acknowledge that it was - * developed by Intel Corporation and credit the contributors. - * - * 5. Neither the name of Intel Corporation, nor the name of any Contributor - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -// To use a test branch (i.e. PR) until it lands to master -// I.e. for testing library changes -//@Library(value="pipeline-lib@your_branch") _ - -/* groovylint-disable-next-line CompileStatic */ -packageBuildingPipelineDAOSTest(['distros' : ['centos7', 'el8', 'el9', 'leap15', 'ubuntu20.04']])