Git Product home page Git Product logo

Comments (9)

vladimirvivien avatar vladimirvivien commented on September 24, 2024

@dhadukk thanks!

I think what you are asking is a way to fail fast in some situations. That way the test runtime will not reach Finish steps and avoid any clean up.

Workaround

Until that is implemented, one workaround would be to store a value in the context (say, completed). Then only run your specified Finish if completed is true, otherwise skip completion.

from e2e-framework.

dhadukk avatar dhadukk commented on September 24, 2024

Hi @vladimirvivien
Thank you for suggesting the workaround.
If I understand it correctly, I can save one variable in contaxt called completed which is common for all the feature sets(test functions). Before each test I should do completed=false and aftereachtest completed=true. Finish should execute only if completed=true.

from e2e-framework.

vladimirvivien avatar vladimirvivien commented on September 24, 2024

@dhadukk Yes, hope this made sense.
This would be a workaround until we can figure out a better way.

from e2e-framework.

dhadukk avatar dhadukk commented on September 24, 2024

Thank you @vladimirvivien This make sense.

from e2e-framework.

vladimirvivien avatar vladimirvivien commented on September 24, 2024

@dhadukk please let us know, here, if this workaround works for you.

Thanks.

from e2e-framework.

dhadukk avatar dhadukk commented on September 24, 2024

Hi Vladimir, We have not implemented this logic as every time something fails, we can not afford to clean up manually.
Currently, if something fails and if we want to debug the failure we manually comment the finish function and skip the cleanup. Thank you.

from e2e-framework.

vladimirvivien avatar vladimirvivien commented on September 24, 2024

@dhadukk we are actively looking at this to provide and escape hatch if something goes wrong. See #118

from e2e-framework.

k8s-triage-robot avatar k8s-triage-robot commented on September 24, 2024

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

from e2e-framework.

vladimirvivien avatar vladimirvivien commented on September 24, 2024

This issue can be closed, feature was implemented in #118 .

from e2e-framework.

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.