GithubHelp home page GithubHelp logo

Comments (15)

broady avatar broady commented on July 4, 2024

/cc @frankyn @bshaffer

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

I'll review errors after my next meeting. If you have time @bshaffer, I'd appreciate your help!

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

@broady I started trying to address the issues in PR#211, and haven't completed this task. I'll see if I can green the tests. I'd like to introduce kokoro into the repo, but I haven't prioritized that. I'll see how far I get with fixing tests before I venture down that path.

If you have tips on how to best deal with this state I'd appreciate your input. Thank you!

from ruby-docs-samples.

broady avatar broady commented on July 4, 2024

sounds good. i have a lot of things learned from deflaking the Go tests that I should share. a few things:

  • retries within the tests
  • using a project pool for proper resource segregation (I can help set this up)
  • aggressive cleanup, aided by the project pool
  • deterministic resource names, aided by the project pool

but it looks like there's a bunch of low hanging fruit for these ones. for example, it looks like the spanner db's aren't being cleaned up.

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

Thanks Chris,

  • Updated Spanner tests to be deterministic
  • Added waiting before asserting an expectation on a logging.
  • Updated Gemfile.lock files (need to do this automatically in the future as this is done locally and using a PR).
  • Added additional Ruby versions to test on.
  • Fixed a few small errors in a few other samples that made it into the repo.

I'm waiting for tests to finish to get an idea of where CircleCI is now. If you could help with proper resource segregation that would be awesome!

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

Added retries to the following sample tests:
Storage
Pubsub
Datastore
Logging

Next item will be to add kokoro support unless we should introduce project resource pools first? @broady

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

Status update: Master passed. Pubsub passed after retries kicked in when testing Ruby 2.4.2. Flaky test is pulls a message.

from ruby-docs-samples.

broady avatar broady commented on July 4, 2024

Nice! Let's leave it at that for now.

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

Sg!

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

@broady, I recalled that AppEngine e2e tests are not being tested at the moment. The tests currently timeout CircleCI before completing. Reviewing in a follow-up PR.

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

Ran e2e tests: https://circleci.com/gh/GoogleCloudPlatform/ruby-docs-samples/1225

I think this is a good reason to move over to kokoro as the e2e tests timeout CircleCI. An alternative is to split tests into multiple CircleCI nodes.

from ruby-docs-samples.

broady avatar broady commented on July 4, 2024

Do the e2e tests run in parallel?

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

from ruby-docs-samples.

broady avatar broady commented on July 4, 2024

@tbpg, could you provide an update here, or close if this is resolved? thanks!

from ruby-docs-samples.

frankyn avatar frankyn commented on July 4, 2024

@broady progress is being tracked here: #251

from ruby-docs-samples.

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.