Giter Site home page Giter Site logo

googlecloudplatform / guest-test-infra Goto Github PK

View Code? Open in Web Editor NEW
25.0 24.0 44.0 10.42 MB

Compute Engine Guest OS - Test infrastructure

License: Apache License 2.0

Dockerfile 3.75% Shell 7.12% Go 42.57% Python 2.21% Jsonnet 44.35%
prow test-infrastructure

guest-test-infra's Introduction

Compute Engine Guest OS - Test infrastructure

This repository contains tools, configuration and documentation for the CI/CD infrastructure used by GCE Guest OS Images team.

guest-test-infra's People

Contributors

a-crate avatar adjackura avatar ajorg avatar bkatyl avatar chaitanyakulkarni28 avatar dependabot[bot] avatar dntczdx avatar dorileo avatar drewhli avatar elicriffield avatar ericedens avatar gaohannk avatar hopkiw avatar humbleshuttler avatar ikapelyukhin avatar jjerger avatar kajiya3141 avatar karnvadaliya avatar koln67 avatar lawrencehwang avatar linskeyd avatar patelne avatar quintonamore avatar rofuentes avatar sejalsharma-google avatar vivekkoya avatar vorakl avatar wrigri avatar zmarano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

guest-test-infra's Issues

daisy-builder should specify destination GCS path

When we built the daisy-builder image, we didn't have a standard for finding the bucket with appropriate permissions with package outputs. So as interim, we parsed the daisy scratch dir from its stdout. We have now updated all the packagebuild workflows to take destination paths as input, so daisy-builder:main.sh should now:

  • Check if GCS_OUT variable is set in metadata
  • If so, set the appropriate variable when running the workflow
  • If so, copy artifacts out of $GCS_OUT to artifacts/
    and, as today:
  • If postsubmit, also copy artifacts to new package bucket to trigger package repo updates.

selinux-tools build is failing

The build is failing with:

Step 4/10 : RUN bash /build_semodule_utils.sh
 ---> Running in f74689f7936f
Installing dependencies..
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/19) Installing libcap-ng (0.7.10-r0)
(2/19) Installing audit-libs (2.8.5-r0)
(3/19) Installing libbz2 (1.0.8-r1)
(4/19) Installing fts (1.2.7-r1)
(5/19) Installing pcre (8.44-r0)
(6/19) Installing libselinux (2.8-r0)
(7/19) Installing libsepol (2.8-r0)
(8/19) Installing libsemanage (2.8-r0)
(9/19) Installing libpcre16 (8.44-r0)
(10/19) Installing libpcre32 (8.44-r0)
(11/19) Installing libgcc (9.3.0-r2)
(12/19) Installing libstdc++ (9.3.0-r2)
(13/19) Installing libpcrecpp (8.44-r0)
(14/19) Installing pkgconf (1.7.2-r0)
(15/19) Installing pcre-dev (8.44-r0)
(16/19) Installing bsd-compat-headers (0.7.2-r3)
(17/19) Installing libsepol-dev (2.8-r0)
(18/19) Installing libselinux-dev (2.8-r0)
(19/19) Installing libsemanage-dev (2.8-r0)
Executing busybox-1.31.1-r16.trigger
OK: 17 MiB in 37 packages
ERROR: unsatisfiable constraints:
  python (missing):
    required by: world[python]
The command '/bin/sh -c bash /build_semodule_utils.sh' returned a non-zero code: 1

Example: https://pantheon.corp.google.com/cloud-build/builds/dca33b8d-53d2-4b61-b07d-bd0a56cf723f;step=4?organizationId=433637338589&project=gcp-guest

Ubuntu image tests failures

Hey all!

We've had this test suite in our internal pipelines for a while now when building/testing Ubuntu cloud images for GCE. However, there are a few tests that repeatedly fail, and on further inspection I believe they're either false positives or "not applicable" to Ubuntu. What we're doing internally at the moment is skipping these tests (using the --exclude flag on docker run gcr.io/gcp-guest/cloud-image-tests...) but the issue with this is that it skips the whole suite, which is a shame as there are good tests in these suites that are also being skipped. I've added details below of the failing tests - please let me know if you need any more info.

All the best!
Chlo

  • verifySSHConfig() fails due to PermitRootLogin apparently not being set (image_security_test.go:133: "PermitRootLogin" was not set to "no" or "without-password"). However, in Ubuntu the
    default is prohibit-password
    ?

  • TestHostsFile() fails due to /etc/hosts does not contain host record but I think this test should be skipped for Ubuntu? FWIW here's an example GCE Ubuntu /etc/hosts file:

    ubuntu@kajiya-testing:~$ cat /etc/hosts
    127.0.0.1 localhost
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    169.254.169.254 metadata.google.internal metadata
    
  • TestArePackagesLegal() surfaces a couple of errors: /usr/share/doc/libcanberra0/copyright,
    /usr/share/doc/libnspr4/copyright and /usr/share/doc/python3-serial/copyright - we may need to increase the scope of the var licenses strings globs?

  • TestGetentPasswdOsloginUser() and TestGetentPasswdOsloginUID() both surface: getent command failed exit status 2
    while TestGetentPasswdAllUsers() returns: getent passwd output does not contain sa_105020877179577573373:*:3651018652:3651018652::/home/sa_105020877179577573373 - I'll be honest I'm not sure
    why this one is failing at first glace, but FWIW we do test getent internally on GCE images ๐Ÿ˜„ (We verify "getent passwd {} | cut -d: -f6".format(user) for each user in the instance's metadata ssh keys).

  • testShutdownScriptTimeLinux() returns shut down time is 89 which is less than 110 seconds - I understand the sentiment for this test but we also test this internally as well. We run an instance with a shutdown-script and check that the correct file was created. However, our internal cutoff time is 30 seconds instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.