Coder Social home page Coder Social logo

Comments (2)

flaky-bot avatar flaky-bot commented on September 26, 2024

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (22aa320), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

from doc-pipeline.

flaky-bot avatar flaky-bot commented on September 26, 2024

Oops! Looks like this issue is still flaky. It failed again. 😬

I reopened the issue, but a human will need to close it again.


commit: 0e1d538
buildURL: Build Status, Sponge
status: failed

Test output
yaml_dir = PosixPath('/tmp/pytest-of-kbuilder/pytest-0/test_generate0')
tmpdir = PosixPath('/tmp/pytest-of-kbuilder/pytest-0/test_generate0')
def test_generate(yaml_dir, tmpdir):
    tmpdir = pathlib.Path(tmpdir)
    test_bucket, storage_client = init_test()

    bucket, yaml_blob, html_blob = setup_testdata(yaml_dir, storage_client, test_bucket)

    # Test for non-api directory content
    run_generate(storage_client, test_bucket)

    verify_content(html_blob, tmpdir)

    # Ensure xref file was properly uploaded. Also ensure download_xrefs gets
    # the right content.
    path = generate.get_xref("devsite://go/cloud.google.com/go/storage", bucket, tmpdir)
    assert path != ""
    assert pathlib.Path(path).exists()

    # Force regeneration and verify the timestamp is different.
    html_blob = bucket.get_blob(html_blob.name)
    t1 = html_blob.updated
    generate.build_all_docs(test_bucket, storage_client)
    html_blob = bucket.get_blob(html_blob.name)
    t2 = html_blob.updated
    assert t1 != t2, "HTML is updated"

    # Force regeneration of a single doc and verify timestamp.
    generate.build_one_doc(test_bucket, yaml_blob.name, storage_client)
    html_blob = bucket.get_blob(html_blob.name)
    t3 = html_blob.updated
    assert t2 != t3, "single doc gets updated"

    # Force generation of Go docs and verify timestamp.
    language = "go"
    generate.build_language_docs(test_bucket, language, storage_client)
    html_blob = bucket.get_blob(html_blob.name)
    t4 = html_blob.updated
    assert t3 != t4, "Go docs get updated"

    # Force generation of Python docs, verify Go HTML timestamp does not change.
    language = "python"
    generate.build_language_docs(test_bucket, language, storage_client)
    html_blob = bucket.get_blob(html_blob.name)
    t5 = html_blob.updated
  assert t4 == t5, "Go timestamp doesn't change"

E AssertionError: Go timestamp doesn't change
E assert datetime.datetime(2023, 11, 1, 3, 51, 6, 994000, tzinfo=datetime.timezone.utc) == datetime.datetime(2023, 11, 1, 3, 51, 14, 415000, tzinfo=datetime.timezone.utc)

tests/test_generate.py:293: AssertionError

from doc-pipeline.

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.