tbpg
Repos
17
Followers
71

Sample apps and code written for Google Cloud in the Go programming language.

3661
1506

Go package for using Apache Tika

163
31

Visualizing Go programs

17
0

Events

tests.test_generate: test_setup_docfx failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and I will stop commenting.


commit: 49c67afe12d0c46cf6f016ae823092d62dba3825 buildURL: Build Status, Sponge status: failed

def test_setup_docfx(yaml_dir):
    test_bucket, storage_client = test_init()
  bucket, yaml_blob, html_blob = setup_testdata(yaml_dir, storage_client, test_bucket)

tests/test_generate.py:214:


cwd = local('/tmp/pytest-of-kbuilder/pytest-0/test_setup_docfx0') storage_client = <google.cloud.storage.client.Client object at 0x7f6a575bd3d0> test_bucket = 'doc-pipeline-test'

def setup_testdata(cwd, storage_client, test_bucket):
    latest_yaml_blob_name = "docfx-python-doc-pipeline-test-2.1.2.tar.gz"
    latest_html_blob_name = "python-doc-pipeline-test-2.1.2.tar.gz"
    yaml_blob_name = "docfx-python-doc-pipeline-test-2.1.1.tar.gz"
    html_blob_name = "python-doc-pipeline-test-2.1.1.tar.gz"
    bucket = storage_client.get_bucket(test_bucket)
    latest_yaml_blob = bucket.blob(latest_yaml_blob_name)
    latest_html_blob = bucket.blob(latest_html_blob_name)
    yaml_blob = bucket.blob(yaml_blob_name)
    html_blob = bucket.blob(html_blob_name)
    xref_blob = bucket.blob(f"{generate.XREFS_DIR_NAME}/{html_blob_name}.yml")

    # Clean up any previous test data in the bucket.
    if latest_yaml_blob.exists():
        latest_yaml_blob.delete()
    if latest_html_blob.exists():
        latest_html_blob.delete()
    if yaml_blob.exists():
        yaml_blob.delete()
    if html_blob.exists():
        html_blob.delete()
    if xref_blob.exists():
        xref_blob.delete()

    start_blobs = list(storage_client.list_blobs(test_bucket))

    upload_yaml(cwd, test_bucket)

    # Make sure docuploader succeeded.
  assert (
        len(list(storage_client.list_blobs(test_bucket))) == len(start_blobs) + 1
    ), "should create 1 new YAML blob"

E AssertionError: should create 1 new YAML blob E assert 9 == (9 + 1) E + where 9 = len([<Blob: doc-pipeline-test, docfx-python-doc-pipeline-test-2.1.1.tar.gz, 1669653110281931>, <Blob: doc-pipeline-test, x....tar.gz.yml, 1669308645462008>, <Blob: doc-pipeline-test, xrefs/dotnet-v-pkg-v3.0.0.tar.gz.yml, 1669308646331395>, ...]) E + where [<Blob: doc-pipeline-test, docfx-python-doc-pipeline-test-2.1.1.tar.gz, 1669653110281931>, <Blob: doc-pipeline-test, x....tar.gz.yml, 1669308645462008>, <Blob: doc-pipeline-test, xrefs/dotnet-v-pkg-v3.0.0.tar.gz.yml, 1669308646331395>, ...] = list(<google.api_core.page_iterator.HTTPIterator object at 0x7f6a575ff790>) E + where <google.api_core.page_iterator.HTTPIterator object at 0x7f6a575ff790> = <bound method Client.list_blobs of <google.cloud.storage.client.Client object at 0x7f6a575bd3d0>>('doc-pipeline-test') E + where <bound method Client.list_blobs of <google.cloud.storage.client.Client object at 0x7f6a575bd3d0>> = <google.cloud.storage.client.Client object at 0x7f6a575bd3d0>.list_blobs E + and 9 = len([<Blob: doc-pipeline-test, xrefs/dotnet-my-pkg-1.0.0.tar.gz.yml, 1669308645275649>, <Blob: doc-pipeline-test, xrefs/do....tar.gz.yml, 1669308645462008>, <Blob: doc-pipeline-test, xrefs/dotnet-v-pkg-v3.0.0.tar.gz.yml, 1669308646331395>, ...])

tests/test_generate.py:110: AssertionError

Created at 5 hours ago
issue comment
tests.test_generate: test_setup_docfx failed

Caused by a race condition between periodic and continuous.

Created at 5 hours ago
issue comment
tests.test_generate: test_get_xref[devsite: failed

Caused by a race condition between periodic and continuous.

Created at 5 hours ago
tests.test_generate: test_get_xref[devsite: failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and I will stop commenting.


commit: 49c67afe12d0c46cf6f016ae823092d62dba3825 buildURL: Build Status, Sponge status: failed

@pytest.mark.parametrize(
    "test_input,expected",
    [
        ("http://google.com", "http://google.com"),
        ("devsite://does/not/exist", ""),
        ("devsite://does/not/exist@latest", ""),
        ("devsite://dotnet/my-pkg@1.0.0", "xrefs/dotnet-my-pkg-1.0.0.tar.gz.yml"),
        ("devsite://dotnet/my-pkg", "xrefs/dotnet-my-pkg-2.0.0.tar.gz.yml"),
        ("devsite://dotnet/my-pkg@latest", "xrefs/dotnet-my-pkg-2.0.0.tar.gz.yml"),
        ("devsite://dotnet/v-pkg@latest", "xrefs/dotnet-v-pkg-v4.0.0.tar.gz.yml"),
    ],
)
def test_get_xref(test_input, expected, tmpdir, xref_test_blobs):
    test_bucket, storage_client = test_init()
    bucket = storage_client.get_bucket(test_bucket)

    tmpdir = pathlib.Path(tmpdir)
    got = generate.get_xref(test_input, bucket, tmpdir)

    if ":" in expected:
        assert got == expected
        return
    if expected == "":
        assert got == expected
        return
    expected_path = tmpdir.joinpath(expected)
  assert str(expected_path) == got

E AssertionError: assert '/tmp/pytest-....0.tar.gz.yml' == '' E + /tmp/pytest-of-kbuilder/pytest-0/test_get_xref_devsite___dotnet2/xrefs/dotnet-my-pkg-2.0.0.tar.gz.yml

tests/test_generate.py:414: AssertionError

Created at 5 hours ago
tests.test_generate: test_generate failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and I will stop commenting.


commit: 49c67afe12d0c46cf6f016ae823092d62dba3825 buildURL: Build Status, Sponge status: failed

def test_generate(yaml_dir, tmpdir):
    test_bucket, storage_client = test_init()
  bucket, yaml_blob, html_blob = setup_testdata(yaml_dir, storage_client, test_bucket)

tests/test_generate.py:252:


cwd = local('/tmp/pytest-of-kbuilder/pytest-0/test_generate0') storage_client = <google.cloud.storage.client.Client object at 0x7f6a574c0410> test_bucket = 'doc-pipeline-test'

def setup_testdata(cwd, storage_client, test_bucket):
    latest_yaml_blob_name = "docfx-python-doc-pipeline-test-2.1.2.tar.gz"
    latest_html_blob_name = "python-doc-pipeline-test-2.1.2.tar.gz"
    yaml_blob_name = "docfx-python-doc-pipeline-test-2.1.1.tar.gz"
    html_blob_name = "python-doc-pipeline-test-2.1.1.tar.gz"
    bucket = storage_client.get_bucket(test_bucket)
    latest_yaml_blob = bucket.blob(latest_yaml_blob_name)
    latest_html_blob = bucket.blob(latest_html_blob_name)
    yaml_blob = bucket.blob(yaml_blob_name)
    html_blob = bucket.blob(html_blob_name)
    xref_blob = bucket.blob(f"{generate.XREFS_DIR_NAME}/{html_blob_name}.yml")

    # Clean up any previous test data in the bucket.
    if latest_yaml_blob.exists():
        latest_yaml_blob.delete()
    if latest_html_blob.exists():
        latest_html_blob.delete()
    if yaml_blob.exists():
        yaml_blob.delete()
    if html_blob.exists():
        html_blob.delete()
    if xref_blob.exists():
        xref_blob.delete()

    start_blobs = list(storage_client.list_blobs(test_bucket))

    upload_yaml(cwd, test_bucket)

    # Make sure docuploader succeeded.
  assert (
        len(list(storage_client.list_blobs(test_bucket))) == len(start_blobs) + 1
    ), "should create 1 new YAML blob"

E AssertionError: should create 1 new YAML blob E assert 3 == (6 + 1) E + where 3 = len([<Blob: doc-pipeline-test, docfx-python-doc-pipeline-test-2.1.1.tar.gz, 1669653112094522>, <Blob: doc-pipeline-test, x...z.yml, 1669308645056128>, <Blob: doc-pipeline-test, xrefs/python-doc-pipeline-test-2.1.2.tar.gz.yml, 1669653100578465>]) E + where [<Blob: doc-pipeline-test, docfx-python-doc-pipeline-test-2.1.1.tar.gz, 1669653112094522>, <Blob: doc-pipeline-test, x...z.yml, 1669308645056128>, <Blob: doc-pipeline-test, xrefs/python-doc-pipeline-test-2.1.2.tar.gz.yml, 1669653100578465>] = list(<google.api_core.page_iterator.HTTPIterator object at 0x7f6a5746b550>) E + where <google.api_core.page_iterator.HTTPIterator object at 0x7f6a5746b550> = <bound method Client.list_blobs of <google.cloud.storage.client.Client object at 0x7f6a574c0410>>('doc-pipeline-test') E + where <bound method Client.list_blobs of <google.cloud.storage.client.Client object at 0x7f6a574c0410>> = <google.cloud.storage.client.Client object at 0x7f6a574c0410>.list_blobs E + and 6 = len([<Blob: doc-pipeline-test, xrefs/dotnet-my-pkg-unused-3.0.0.tar.gz.yml, 1669308646122925>, <Blob: doc-pipeline-test, x...z.yml, 1669308645056128>, <Blob: doc-pipeline-test, xrefs/python-doc-pipeline-test-2.1.2.tar.gz.yml, 1669653100578465>])

tests/test_generate.py:110: AssertionError

Created at 5 hours ago
issue comment
tests.test_generate: test_generate failed

Caused by a race condition between periodic and continuous.

Created at 5 hours ago
pull request opened
chore(ci): fix exit_code declaration
Created at 5 hours ago
create branch
tbpg create branch exit-code
Created at 5 hours ago
Flake8 test failing

Error stack:

Traceback (most recent call last):
  File "/h/.local/bin/flake8", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/h/.local/lib/python3.11/site-packages/flake8/main/cli.py", line 23, in main
    app.run(argv)
  File "/h/.local/lib/python3.11/site-packages/flake8/main/application.py", line 198, in run
    self._run(argv)
  File "/h/.local/lib/python3.11/site-packages/flake8/main/application.py", line 186, in _run
    self.initialize(argv)
  File "/h/.local/lib/python3.11/site-packages/flake8/main/application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
                                 ^^^^^^^^^^^^^^^^
  File "/h/.local/lib/python3.11/site-packages/flake8/options/parse_args.py", line 53, in parse_args
    opts = aggregator.aggregate_options(option_manager, cfg, cfg_dir, rest)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/h/.local/lib/python3.11/site-packages/flake8/options/aggregator.py", line 30, in aggregate_options
    parsed_config = config.parse_config(manager, cfg, cfg_dir)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/h/.local/lib/python3.11/site-packages/flake8/options/config.py", line 131, in parse_config
    raise ValueError(
ValueError: Error code '#' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'

according to Stackoverflow post, we can't have comments in the same line, must be in a separate line since flake>=6.

Created at 6 hours ago

fix: update flake8 formatting (#322)

Created at 6 hours ago
delete branch
tbpg delete branch fix_flake
Created at 6 hours ago
pull request closed
fix: update flake8 formatting

Required since V6 that we must separate comments into a separate line.

Fixes #321.

Created at 6 hours ago
generate: docfx--go-cloud.google.com failed

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and I will stop commenting.


commit: 7cd4f02648c81be2abfd96089636666b1e055e22 buildURL: Build Status, Sponge status: failed

Created at 6 days ago
issue comment
generate: docfx--go-cloud.google.com failed

Looks like a development blob. I deleted it.

Created at 6 days ago

Remove template_dir arguments

Created at 1 week ago
create branch
tbpg create branch golden
Created at 1 week ago
pull request opened
feat: copy templates into doc-pipeline

The templates were copied (unchanged) from https://github.com/googleapis/doc-templates/tree/4ef65c42b6358162356cbe4aa3cfea7cd97cfabc/third_party/docfx.

A future change will copy over the golden tests.

Created at 1 week ago

feat: copy templates into doc-pipeline

A future change will copy over the golden tests.

Created at 1 week ago

feat: copy templates into doc-pipeline

A future change will copy over the golden tests.

Created at 1 week ago

feat: copy templates into doc-pipeline

A future change will copy over the golden tests.

Created at 1 week ago

Remove doc-templates tests

Created at 1 week ago

Ignore test output

Iterating on tests.

Tests passing

Created at 1 week ago