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

Use pipefail in dry-run workflow #1688

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Mar 7, 2025

@Kobzol Kobzol requested a review from marcoieni March 7, 2025 08:02
Copy link

github-actions bot commented Mar 7, 2025

Dry-run check results

[2025-03-07T08:03:38Z WARN  sync_team] sync-team is running in dry mode, no changes will be applied.
[2025-03-07T08:03:38Z INFO  sync_team] synchronizing github
[2025-03-07T08:04:43Z ERROR sync_team] failed: Failed to decode response body on GET request to 'https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative'
[2025-03-07T08:04:43Z ERROR sync_team] caused by: Cannot deserialize type `sync_team::github::api::Repo` from the following response body:
    {
      "allow_forking": true,
      "archive_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/{archive_format}{/ref}",
      "archived": false,
      "assignees_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/assignees{/user}",
      "blobs_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/git/blobs{/sha}",
      "branches_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/branches{/branch}",
      "clone_url": "https://github.com/rust-lang/async-crashdump-debugging-initiative.git",
      "collaborators_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/collaborators{/collaborator}",
      "comments_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/comments{/number}",
      "commits_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/commits{/sha}",
      "compare_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/compare/{base}...{head}",
      "contents_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/contents/{+path}",
      "contributors_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/contributors",
      "created_at": "2021-09-20T17:07:57Z",
      "custom_properties": {},
      "default_branch": "master",
      "deployments_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/deployments",
      "description": null,
      "disabled": false,
      "downloads_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/downloads",
      "events_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/events",
      "fork": false,
      "forks": 3,
      "forks_count": 3,
      "forks_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/forks",
      "full_name": "rust-lang/async-crashdump-debugging-initiative",
      "git_commits_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/git/commits{/sha}",
      "git_refs_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/git/refs{/sha}",
      "git_tags_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/git/tags{/sha}",
      "git_url": "git://github.com/rust-lang/async-crashdump-debugging-initiative.git",
      "has_discussions": false,
      "has_downloads": true,
      "has_issues": true,
      "has_pages": true,
      "has_projects": true,
      "has_wiki": true,
      "homepage": null,
      "hooks_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/hooks",
      "html_url": "https://github.com/rust-lang/async-crashdump-debugging-initiative",
      "id": 408531263,
      "is_template": false,
      "issue_comment_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/issues/comments{/number}",
      "issue_events_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/issues/events{/number}",
      "issues_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/issues{/number}",
      "keys_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/keys{/key_id}",
      "labels_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/labels{/name}",
      "language": null,
      "languages_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/languages",
      "license": {
        "key": "apache-2.0",
        "name": "Apache License 2.0",
        "node_id": "MDc6TGljZW5zZTI=",
        "spdx_id": "Apache-2.0",
        "url": "https://api.github.com/licenses/apache-2.0"
      },
      "merges_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/merges",
      "milestones_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/milestones{/number}",
      "mirror_url": null,
      "name": "async-crashdump-debugging-initiative",
      "network_count": 3,
      "node_id": "MDEwOlJlcG9zaXRvcnk0MDg1MzEyNjM=",
      "notifications_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/notifications{?since,all,participating}",
      "open_issues": 3,
      "open_issues_count": 3,
      "organization": {
        "avatar_url": "https://avatars.githubusercontent.com/u/5430905?v=4",
        "events_url": "https://api.github.com/users/rust-lang/events{/privacy}",
        "followers_url": "https://api.github.com/users/rust-lang/followers",
        "following_url": "https://api.github.com/users/rust-lang/following{/other_user}",
        "gists_url": "https://api.github.com/users/rust-lang/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/rust-lang",
        "id": 5430905,
        "login": "rust-lang",
        "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0MzA5MDU=",
        "organizations_url": "https://api.github.com/users/rust-lang/orgs",
        "received_events_url": "https://api.github.com/users/rust-lang/received_events",
        "repos_url": "https://api.github.com/users/rust-lang/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/rust-lang/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/rust-lang/subscriptions",
        "type": "Organization",
        "url": "https://api.github.com/users/rust-lang",
        "user_view_type": "public"
      },
      "owner": {
        "avatar_url": "https://avatars.githubusercontent.com/u/5430905?v=4",
        "events_url": "https://api.github.com/users/rust-lang/events{/privacy}",
        "followers_url": "https://api.github.com/users/rust-lang/followers",
        "following_url": "https://api.github.com/users/rust-lang/following{/other_user}",
        "gists_url": "https://api.github.com/users/rust-lang/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/rust-lang",
        "id": 5430905,
        "login": "rust-lang",
        "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0MzA5MDU=",
        "organizations_url": "https://api.github.com/users/rust-lang/orgs",
        "received_events_url": "https://api.github.com/users/rust-lang/received_events",
        "repos_url": "https://api.github.com/users/rust-lang/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/rust-lang/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/rust-lang/subscriptions",
        "type": "Organization",
        "url": "https://api.github.com/users/rust-lang",
        "user_view_type": "public"
      },
      "permissions": {
        "admin": false,
        "maintain": false,
        "pull": false,
        "push": false,
        "triage": false
      },
      "private": false,
      "pulls_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/pulls{/number}",
      "pushed_at": "2022-01-31T15:16:49Z",
      "releases_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/releases{/id}",
      "security_and_analysis": {
        "dependabot_security_updates": {
          "status": "disabled"
        },
        "secret_scanning": {
          "status": "disabled"
        },
        "secret_scanning_non_provider_patterns": {
          "status": "disabled"
        },
        "secret_scanning_push_protection": {
          "status": "disabled"
        },
        "secret_scanning_validity_checks": {
          "status": "disabled"
        }
      },
      "size": 1139,
      "ssh_url": "[email protected]:rust-lang/async-crashdump-debugging-initiative.git",
      "stargazers_count": 20,
      "stargazers_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/stargazers",
      "statuses_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/statuses/{sha}",
      "subscribers_count": 13,
      "subscribers_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/subscribers",
      "subscription_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/subscription",
      "svn_url": "https://github.com/rust-lang/async-crashdump-debugging-initiative",
      "tags_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/tags",
      "teams_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/teams",
      "temp_clone_token": "",
      "template_repository": {
        "allow_forking": true,
        "archive_url": "https://api.github.com/repos/rust-lang/initiative-template/{archive_format}{/ref}",
        "archived": false,
        "assignees_url": "https://api.github.com/repos/rust-lang/initiative-template/assignees{/user}",
        "blobs_url": "https://api.github.com/repos/rust-lang/initiative-template/git/blobs{/sha}",
        "branches_url": "https://api.github.com/repos/rust-lang/initiative-template/branches{/branch}",
        "clone_url": "https://github.com/rust-lang/initiative-template.git",
        "collaborators_url": "https://api.github.com/repos/rust-lang/initiative-template/collaborators{/collaborator}",
        "comments_url": "https://api.github.com/repos/rust-lang/initiative-template/comments{/number}",
        "commits_url": "https://api.github.com/repos/rust-lang/initiative-template/commits{/sha}",
        "compare_url": "https://api.github.com/repos/rust-lang/initiative-template/compare/{base}...{head}",
        "contents_url": "https://api.github.com/repos/rust-lang/initiative-template/contents/{+path}",
        "contributors_url": "https://api.github.com/repos/rust-lang/initiative-template/contributors",
        "created_at": "2021-08-25T18:06:12Z",
        "default_branch": "master",
        "deployments_url": "https://api.github.com/repos/rust-lang/initiative-template/deployments",
        "description": "A template for lang-team initiatives",
        "disabled": false,
        "downloads_url": "https://api.github.com/repos/rust-lang/initiative-template/downloads",
        "events_url": "https://api.github.com/repos/rust-lang/initiative-template/events",
        "fork": false,
        "forks": 4,
        "forks_count": 4,
        "forks_url": "https://api.github.com/repos/rust-lang/initiative-template/forks",
        "full_name": "rust-lang/initiative-template",
        "git_commits_url": "https://api.github.com/repos/rust-lang/initiative-template/git/commits{/sha}",
        "git_refs_url": "https://api.github.com/repos/rust-lang/initiative-template/git/refs{/sha}",
        "git_tags_url": "https://api.github.com/repos/rust-lang/initiative-template/git/tags{/sha}",
        "git_url": "git://github.com/rust-lang/initiative-template.git",
        "has_discussions": false,
        "has_downloads": true,
        "has_issues": true,
        "has_pages": true,
        "has_projects": true,
        "has_wiki": true,
        "homepage": "https://nikomatsakis.github.io/initiative-template/",
        "hooks_url": "https://api.github.com/repos/rust-lang/initiative-template/hooks",
        "html_url": "https://github.com/rust-lang/initiative-template",
        "id": 399913910,
        "is_template": true,
        "issue_comment_url": "https://api.github.com/repos/rust-lang/initiative-template/issues/comments{/number}",
        "issue_events_url": "https://api.github.com/repos/rust-lang/initiative-template/issues/events{/number}",
        "issues_url": "https://api.github.com/repos/rust-lang/initiative-template/issues{/number}",
        "keys_url": "https://api.github.com/repos/rust-lang/initiative-template/keys{/key_id}",
        "labels_url": "https://api.github.com/repos/rust-lang/initiative-template/labels{/name}",
        "language": null,
        "languages_url": "https://api.github.com/repos/rust-lang/initiative-template/languages",
        "license": {
          "key": "apache-2.0",
          "name": "Apache License 2.0",
          "node_id": "MDc6TGljZW5zZTI=",
          "spdx_id": "Apache-2.0",
          "url": "https://api.github.com/licenses/apache-2.0"
        },
        "merges_url": "https://api.github.com/repos/rust-lang/initiative-template/merges",
        "milestones_url": "https://api.github.com/repos/rust-lang/initiative-template/milestones{/number}",
        "mirror_url": null,
        "name": "initiative-template",
        "node_id": "MDEwOlJlcG9zaXRvcnkzOTk5MTM5MTA=",
        "notifications_url": "https://api.github.com/repos/rust-lang/initiative-template/notifications{?since,all,participating}",
        "open_issues": 2,
        "open_issues_count": 2,
        "owner": {
          "avatar_url": "https://avatars.githubusercontent.com/u/5430905?v=4",
          "events_url": "https://api.github.com/users/rust-lang/events{/privacy}",
          "followers_url": "https://api.github.com/users/rust-lang/followers",
          "following_url": "https://api.github.com/users/rust-lang/following{/other_user}",
          "gists_url": "https://api.github.com/users/rust-lang/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/rust-lang",
          "id": 5430905,
          "login": "rust-lang",
          "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0MzA5MDU=",
          "organizations_url": "https://api.github.com/users/rust-lang/orgs",
          "received_events_url": "https://api.github.com/users/rust-lang/received_events",
          "repos_url": "https://api.github.com/users/rust-lang/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/rust-lang/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/rust-lang/subscriptions",
          "type": "Organization",
          "url": "https://api.github.com/users/rust-lang",
          "user_view_type": "public"
        },
        "permissions": {
          "admin": false,
          "maintain": false,
          "pull": false,
          "push": false,
          "triage": false
        },
        "private": false,
        "pulls_url": "https://api.github.com/repos/rust-lang/initiative-template/pulls{/number}",
        "pushed_at": "2021-10-11T21:15:08Z",
        "releases_url": "https://api.github.com/repos/rust-lang/initiative-template/releases{/id}",
        "size": 1235,
        "ssh_url": "[email protected]:rust-lang/initiative-template.git",
        "stargazers_count": 6,
        "stargazers_url": "https://api.github.com/repos/rust-lang/initiative-template/stargazers",
        "statuses_url": "https://api.github.com/repos/rust-lang/initiative-template/statuses/{sha}",
        "subscribers_url": "https://api.github.com/repos/rust-lang/initiative-template/subscribers",
        "subscription_url": "https://api.github.com/repos/rust-lang/initiative-template/subscription",
        "svn_url": "https://github.com/rust-lang/initiative-template",
        "tags_url": "https://api.github.com/repos/rust-lang/initiative-template/tags",
        "teams_url": "https://api.github.com/repos/rust-lang/initiative-template/teams",
        "temp_clone_token": "",
        "topics": [],
        "trees_url": "https://api.github.com/repos/rust-lang/initiative-template/git/trees{/sha}",
        "updated_at": "2023-07-27T22:56:47Z",
        "url": "https://api.github.com/repos/rust-lang/initiative-template",
        "visibility": "public",
        "watchers": 6,
        "watchers_count": 6,
        "web_commit_signoff_required": false
      },
      "topics": [],
      "trees_url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative/git/trees{/sha}",
      "updated_at": "2024-07-30T16:42:57Z",
      "url": "https://api.github.com/repos/rust-lang/async-crashdump-debugging-initiative",
      "visibility": "public",
      "watchers": 20,
      "watchers_count": 20,
      "web_commit_signoff_required": false
    }
[2025-03-07T08:04:43Z ERROR sync_team] caused by: invalid type: null, expected a string at line 1 column 1253

@marcoieni marcoieni merged commit 9e6d700 into rust-lang:master Mar 7, 2025
1 check passed
@Kobzol Kobzol deleted the dry-run-fail-pipefail branch March 7, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants