Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wdspec] fix extension tests for Chrome #51016

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

OrKoN
Copy link
Contributor

@OrKoN OrKoN commented Feb 28, 2025

This PR relaxes the ID assertions for unpacked extensions allowing browsers that support dynamic IDs to still pass the tests.

@OrKoN OrKoN force-pushed the orkon/more-chrome-fixes branch from 6aef13e to 92cb2b8 Compare February 28, 2025 11:31
@OrKoN OrKoN enabled auto-merge (squash) February 28, 2025 11:34
Copy link

Uh oh! Looks like an error!

Client ID static/taskcluster/github does not have sufficient scopes and is missing the following scopes:

{
  "AnyOf": [
    "queue:rerun-task:taskcluster-github/ZauBgS5KQjS6REIhPfLDog/HUoLc7p7TAu44DrxnS_qeQ",
    "queue:rerun-task-in-project:none",
    {
      "AllOf": [
        "queue:rerun-task",
        "assume:scheduler-id:taskcluster-github/ZauBgS5KQjS6REIhPfLDog"
      ]
    }
  ]
}

This request requires the client to satisfy the following scope expression:

{
  "AnyOf": [
    "queue:rerun-task:taskcluster-github/ZauBgS5KQjS6REIhPfLDog/HUoLc7p7TAu44DrxnS_qeQ",
    "queue:rerun-task-in-project:none",
    {
      "AllOf": [
        "queue:rerun-task",
        "assume:scheduler-id:taskcluster-github/ZauBgS5KQjS6REIhPfLDog"
      ]
    }
  ]
}

  • method: rerunTask
  • errorCode: InsufficientScopes
  • statusCode: 403
  • time: 2025-02-28T13:35:57.114Z

@OrKoN OrKoN closed this Feb 28, 2025
auto-merge was automatically disabled February 28, 2025 13:36

Pull request was closed

@OrKoN OrKoN reopened this Feb 28, 2025
Comment on lines +28 to +31
if extension_data["id"] is None:
assert isinstance(web_extension, str)
else:
assert web_extension == extension_data["id"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind creating a helper for it so that it can be shared with all the other tests doing the same assertion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be only used for the unpacked test. We could add a helper once there are more tests like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants