Skip to content

Conversation

@bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Aug 25, 2022

cc @anweshan @ikuleshov

I ran these locally and they failed, so I imagine they will fail on Kokoro as well. I believe this is because the property ID in our .kokoro/secrets.sh (222596558) is not configured for OUR test project. How is this being handled in the other languages? Can we:

  1. give our test project (php-docs-samples-kokoro) access to your property ID? OR
  2. configure the property ID for our test project?

The error:

1) Google\Cloud\Samples\Analytics\Data\Tests\analyticsDataTest::testRunReport
Google\ApiCore\ApiException: {
    "message": "User does not have sufficient permissions for this property. To learn more about Property ID, see https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/property-id.",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": "grpc-server-stats-bin",
            "data": "<Unknown Binary Data>"
        }
    ]
}

@bshaffer bshaffer requested a review from a team as a code owner August 25, 2022 18:47
@snippet-bot
Copy link

snippet-bot bot commented Aug 25, 2022

Here is the summary of changes.

You are about to add 5 region tags.
You are about to delete 8 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Aug 25, 2022
@ikuleshov
Copy link
Collaborator

cc @anweshan @ikuleshov

I ran these locally and they failed, so I imagine they will fail on Kokoro as well. I believe this is because the property ID in our .kokoro/secrets.sh (222596558) is not configured for OUR test project. How is this being handled in the other languages? Can we:

  1. give our test project (php-docs-samples-kokoro) access to your property ID? OR
  2. configure the property ID for our test project?

The error:

1) Google\Cloud\Samples\Analytics\Data\Tests\analyticsDataTest::testRunReport
Google\ApiCore\ApiException: {
    "message": "User does not have sufficient permissions for this property. To learn more about Property ID, see https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/property-id.",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": "grpc-server-stats-bin",
            "data": "<Unknown Binary Data>"
        }
    ]
}

Brent, what is the service account name used by the php-docs-samples-kokoro to run the tests?

@bshaffer
Copy link
Contributor Author

bshaffer commented Sep 6, 2022

@ikuleshov the service account we are using is [email protected]. Could you give it permission to access that property ID, along with myself and the other PHP admins (dwsupplee, vishwaraj, saransh)?

@bshaffer bshaffer force-pushed the update-run-report-samples branch from fd5cb57 to 7c0e015 Compare September 6, 2022 19:43
@ikuleshov ikuleshov self-requested a review September 6, 2022 20:39
@bshaffer bshaffer merged commit 1d6b3af into master Sep 6, 2022
@bshaffer bshaffer deleted the update-run-report-samples branch September 6, 2022 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants