Giter Site home page Giter Site logo

Comments (5)

renas avatar renas commented on May 19, 2024 1

from flank.

renas avatar renas commented on May 19, 2024

We also add a hash code of the project name.

  • "_" + getConfigurator().getProjectNameHash()

from flank.

bootstraponline avatar bootstraponline commented on May 19, 2024

the project name is static so that's not helpful? Is there a reason for not adopting the same folder naming strategy as the official SDK?

from flank.

renas avatar renas commented on May 19, 2024

from flank.

bootstraponline avatar bootstraponline commented on May 19, 2024

I just need to understand the issue :)

here is the issue:

# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# code from api_lib/firebase/test/arg_validate.py
def _GenerateUniqueGcsObjectName():
  """Create a unique GCS object name to hold test results in the results bucket.

  The Testing back-end needs a unique GCS object name within the results bucket
  to prevent race conditions while processing test results. By default, the
  gcloud client uses the current time down to the microsecond in ISO format plus
  a random 4-letter suffix. The format is: "YYYY-MM-DD_hh:mm:ss.ssssss_rrrr".

  Returns:
    A string with the unique GCS object name.
  """
  return '{0}_{1}'.format(datetime.datetime.now().isoformat('_'),
                          ''.join(random.sample(string.letters, 4)))

I'm happy to submit a pull request if you'd like. The fix you submitted (new Random().nextInt(50000000) ) works but I would prefer to match the SDK in this case.

2017-05-31_17:19:36.431540_hRJD
2017-05-26_03:50:54.863502_AQmT
2017-05-30_13:33:02.233525_fTnd

I would rather not write scripts to handle a special naming convention just for flank. Hope that makes sense.

Thanks for all your work on the test runner. I appreciate the bug fixes and new features.

from flank.

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.