Giter Club home page Giter Club logo

Comments (5)

jba avatar jba commented on May 22, 2024

Maybe we should generalize/make visible https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/logging/internal/testing/unique.go.

from golang-samples.

rakyll avatar rakyll commented on May 22, 2024

We need a very similar solution what unique.go does for generating names.

Our current naming format also includes a repo prefix.

"golang-samples-repo-" + prefix +  "-" +  timestamp
// e.g. golang-samples-repo-buckets-<timestamp>

from golang-samples.

broady avatar broady commented on May 22, 2024

We don't exactly need anything that complex because the tests are sharded
across multiple projects. Aggressive clean up by prefix or name is fine.

On Nov 21, 2016 1:42 PM, "Jaana Burcu Dogan" [email protected]
wrote:

We need a very similar solution what unique.go does for generating names.

Our current naming format also includes a repo prefix.

"golang-samples-repo-" + prefix + "-" + timestamp
// e.g. golang-samples-repo-buckets-


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#174 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABhlslxpJ0JmrE6q4ZEyeGRfbjuUbDDks5rAhAqgaJpZM4K4kDM
.

from golang-samples.

broady avatar broady commented on May 22, 2024

Likely superseded by #220. Other tests are fine, but may leave behind some garbage.

Maybe best to move to creating resources that always have the same name for a given test project.

If anyone wants to work on this, (@rakyll?) then the first thing would be to do an audit of existing resources created for each test.

from golang-samples.

tbpg avatar tbpg commented on May 22, 2024

This is mostly done on samples I've seen. So, I'm going to close it. As we rewrite samples to follow the style guide, we can make sure that resources are cleaned up. But, I don't think we need to proactively go through all samples and delete.

from golang-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.