Giter Site home page Giter Site logo

Comments (6)

qu1queee avatar qu1queee commented on May 17, 2024

I spoke with @zhangtbj on this, I think being able to specify which strategies to run during e2e tests isn´t ideal, e2e tests should run everything. In the meantime, we can live with a minor patch from our side to disable the two strategies we cannot run successfully(buildah and s2i).

However, I think we would like to have the flexibility to avoid running the following pieces during e2e tests, due to our specific tenant environments and the way where we run components:

  • Avoid running the framework.AddToFrameworkScheme , see lines
  • Avoid running the ctx.InitializeClusterResources, see lines
  • Avoid running the e2eutil.WaitForOperatorDeployment, see lines
  • Avoid running the createClusterBuildStrategy calls for all strategies, see lines
  • Avoid running the tekton task verification , see lines , this is because we cannot check the tekton resource on the tenant namespace.

All of the above can be done with a new env variable, I can do this easily(I think), @sbose78 pls let us know what u think. With this we will only patch to skip those two strategies, and once we resolved the issues, we will not longer need to patch anything. Also, this will not break your setup.

from build.

qu1queee avatar qu1queee commented on May 17, 2024

@sbose78 let me know about the above.

from build.

sbose78 avatar sbose78 commented on May 17, 2024

If I understand this correctly,

  1. There are specific strategies that we would want skipped.

  2. There are specific things we would not want to validate. Example, tekton resources.

Can we make our tests resilient enough to understand that specific validations may be skipped?

Which user do you run these tests as in your internal environment?

  1. In my opinion we should create "environment templates" in our upsteam CI for running tests in such environments.
  2. Make our tests smarter to skip validating Specific things based on the environment.

from build.

zhangtbj avatar zhangtbj commented on May 17, 2024

Agree.

Because our Production system is ready and deployed at the beginning (build controller and cluster build strategies). So every time, we just need to update the controller and re-run the e2e tests.

  • So require to deploy the builder controller and cluster build strategies is not good for our production system upgrade.
  • If I deploy a test env and already deploy above required resources, I would like to run the e2e tests with a similar parameter --skip-deploy to JUST run the e2e tests directly.

from build.

zhangtbj avatar zhangtbj commented on May 17, 2024

But ....

It issues is used to extract the current test code as the common functions, so that each test can reuse and share together.

I think later, we can create a new issue to separate these two requirements.

from build.

zhangtbj avatar zhangtbj commented on May 17, 2024

This basic requirement is resolved by using this PR:
#120

Close this first and will open the advanced issue for the new requirement.

Thanks!

from build.

Related Issues (20)

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.