GoogleCloudPlatform / python-docs-samples

Code samples used on cloud.google.com
Apache License 2.0
7.46k stars 6.45k forks source link

Update poll.js to include XML Header in fetch request #12544

Open riathakkar opened 2 months ago

riathakkar commented 2 months ago

Description

Fixes b/362304568

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

riathakkar commented 2 months ago

How do we close this PR? @jinglundong

jinglundong commented 2 months ago

I approved the PR. Let's wait for the Kokoro CI results.

jinglundong commented 2 months ago

I just clicked re-run all checks to see if those Kokoro CI can be completed.

jinglundong commented 2 months ago

I don't know why the Kokoro CIs are not triggered. We may need approval from iennae, the other reviewer, as well.

jinglundong commented 2 months ago

3 tests/checks failed. Could you please take a look and ideally fix them? Thanks!

riathakkar commented 1 month ago

@jinglundong I cant view the build results it says permisson denied. Im wondering if the linter is failing because its a js file with the python linter?

riathakkar commented 1 month ago

@jinglundong I rerean the linter and it passes for some python.

nox > py-2.7: failed nox > py-3.8: success nox > py-3.9: failed nox > py-3.10: failed nox > py-3.11: failed nox > py-3.12: success

What i dont understand is if the js file is ever going to pass a python linter? I dont know why this file is in this repository.

jinglundong commented 1 month ago

@kennethye1 At first glance, I was wondering if these integration tests failed due to the lifecycle policy enforcement. However, python-3.8 succeeded but python-3.11 failed. Are they really testing the modernized path?

Edit: seems like we are testing the modernized path. https://github.com/search?q=repo%3AGoogleCloudPlatform%2Fpython-docs-samples+ubuntu22&type=code, but we aren't really testing specific python minor versions from what I'm reading.

jinglundong commented 1 month ago

@SandeepTuniki Could you help triage this PR?

SandeepTuniki commented 1 month ago

@SandeepTuniki Could you help triage this PR?

harisam@ is looking into this PR.