GitHub sync script had issues while applying permissions for project ee4j.jaf
Apparently it took several runs of the GitHub sync script to apply all permissions to the ee4j.jaf project and it's two GitHub repos (https://github.com/jakartaee/jaf-tck/ and https://github.com/jakartaee/jaf-api/) that have been moved from the ee4j org to the jakartaee org recently. Permissions should have been applied after the first run on Friday afternoon, but they weren't. After a second run on Friday evening (when the logs below were captured), only two teams were added to one of the repos. Today all permissions are correct.
Here is the relevant part of the logs:
2022-11-04T22:38:22 [main] INFO Project ID: ee4j.jaf
2022-11-04T22:38:22 [main] DEBUG Sync:processRepositories(repos = [{"url":"https://github.com/jakartaee/jaf-api","org":"jakartaee","repo":"jaf-api"},{"url":"https://github.com/jakartaee/jaf-tck","org":"jakartaee","repo":"jaf-tck"}], project = ee4j.jaf)
2022-11-04T22:38:22 [main] INFO Starting sync for org=jakartaee;repo=jaf-api
2022-11-04T22:38:22 [main] INFO Generating teams for jakartaee/jaf-api
2022-11-04T22:38:22 [main] DEBUG Sync:processProjectsOrg(org = jakartaee, project = ee4j.jaf)
2022-11-04T22:38:22 [GitWrapper] DEBUG prefetchTeams(org = jakartaee)
2022-11-04T22:38:22 [GitWrapper] DEBUG Org 'jakartaee' teams have been fetched previously, returning
2022-11-04T22:38:22 [GitWrapper] DEBUG prefetchRepos(org = jakartaee)
2022-11-04T22:38:22 [GitWrapper] DEBUG Org 'jakartaee' repos have been fetched previously, returning
2022-11-04T22:38:22 [GitWrapper] DEBUG updateOrgPermissions(org = jakartaee, permissions = {"default_repository_permission":"read","members_can_create_repositories":false,"members_can_create_private_repositories":false,"members_can_create_public_repositories":false,"members_allowed_repository_creation_type":"none"})
2022-11-04T22:38:23 [GitWrapper] DEBUG Done updating org (jakartaee) to set parameters: {"default_repository_permission":"read","members_can_create_repositories":false,"members_can_create_private_repositories":false,"members_can_create_public_repositories":false,"members_allowed_repository_creation_type":"none","org":"jakartaee","mediaType":{"previews":["surtur"]}}
2022-11-04T22:38:23 [main] DEBUG Sync:updateProjectTeam(org = jakartaee, project = ee4j.jaf, grouping = contributors)
2022-11-04T22:38:23 [main] DEBUG Sync:updateTeam(org = jakartaee, teamName = ee4j-jaf-contributors, designatedMembers = [{"username":"sstark013","full_name":"Scott M Stark","url":"https://api.eclipse.org/account/profile/sstark013"},{"username":"igrimstad","full_name":"Ivar Grimstad","url":"https://api.eclipse.org/account/profile/igrimstad"}])
2022-11-04T22:38:23 [main] INFO Syncing team 'ee4j-jaf-contributors' for organization jakartaee
2022-11-04T22:38:23 [GitWrapper] DEBUG addTeam(org = jakartaee, teamName = ee4j-jaf-contributors)
2022-11-04T22:38:23 [main] DEBUG Sync:updateProjectTeam(org = jakartaee, project = ee4j.jaf, grouping = committers)
2022-11-04T22:38:23 [main] DEBUG Sync:updateTeam(org = jakartaee, teamName = ee4j-jaf-committers, designatedMembers = [{"username":"grao5gp","full_name":"Gurunandan Rao","url":"https://api.eclipse.org/account/profile/grao5gp"},{"username":"ksutter","full_name":"Kevin Sutter","url":"https://api.eclipse.org/account/profile/ksutter"},{"username":"ebratt","full_name":"Ed Bratt","url":"https://api.eclipse.org/account/profile/ebratt"},{"username":"dkornilov","full_name":"Dmitry Kornilov","url":"https://api.eclipse.org/account/profile/dkornilov"}])
2022-11-04T22:38:23 [main] INFO Syncing team 'ee4j-jaf-committers' for organization jakartaee
2022-11-04T22:38:23 [GitWrapper] DEBUG addTeam(org = jakartaee, teamName = ee4j-jaf-committers)
2022-11-04T22:38:23 [main] DEBUG Sync:updateProjectTeam(org = jakartaee, project = ee4j.jaf, grouping = project_leads)
2022-11-04T22:38:23 [main] DEBUG Sync:updateTeam(org = jakartaee, teamName = ee4j-jaf-project-leads, designatedMembers = [{"username":"ljungmann","full_name":"Lukas Jungmann","url":"https://api.eclipse.org/account/profile/ljungmann"}])
2022-11-04T22:38:23 [main] INFO Syncing team 'ee4j-jaf-project-leads' for organization jakartaee
2022-11-04T22:38:23 [GitWrapper] DEBUG addTeam(org = jakartaee, teamName = ee4j-jaf-project-leads)
2022-11-04T22:38:23 [main] DEBUG Sync:removeRepoExternalContributors(project = ee4j.jaf, org = jakartaee, repo = jaf-api)
2022-11-04T22:38:23 [GitWrapper] DEBUG getRepoCollaborators(org = jakartaee, repo = jaf-api, affiliation = direct)
2022-11-04T22:38:23 [GitWrapper] VERBOSE Getting collaborators for key: jakartaee/jaf-api:collab
2022-11-04T22:38:23 [main] VERBOSE Updated external contributors: false
2022-11-04T22:38:23 [GitWrapper] DEBUG addRepoToTeam(org = jakartaee, teamName = ee4j.jaf-committers, repo = jaf-api, permissions = push, overwrite = true)
2022-11-04T22:38:24 [GitWrapper] ERROR API encountered errors processing current request (team:getByName). More information is available in log file
2022-11-04T22:38:24 [GitWrapper] ERROR HttpError: Not Found
2022-11-04T22:38:24 [GitWrapper] DEBUG addRepoToTeam(org = jakartaee, teamName = ee4j.jaf-contributors, repo = jaf-api, permissions = triage, overwrite = true)
2022-11-04T22:38:24 [GitWrapper] ERROR API encountered errors processing current request (team:getByName). More information is available in log file
2022-11-04T22:38:24 [GitWrapper] ERROR HttpError: Not Found
2022-11-04T22:38:24 [GitWrapper] DEBUG addRepoToTeam(org = jakartaee, teamName = ee4j.jaf-project-leads, repo = jaf-api, permissions = maintain, overwrite = false)
2022-11-04T22:38:24 [GitWrapper] WARN Retrieved an error, assuming team does not manage repo
2022-11-04T22:38:24 [GitWrapper] ERROR API encountered errors processing current request (team:getByName). More information is available in log file
2022-11-04T22:38:24 [GitWrapper] ERROR HttpError: Not Found
2022-11-04T22:38:24 [GitWrapper] ERROR API encountered errors processing current request (team:getByName). More information is available in log file
2022-11-04T22:38:24 [GitWrapper] ERROR HttpError: Not Found
2022-11-04T22:38:24 [main] VERBOSE Attempted update commit team: true
2022-11-04T22:38:24 [main] VERBOSE Attempted update contrib team: true
2022-11-04T22:38:24 [main] VERBOSE Attempted update pl team: true
2022-11-04T22:38:24 [main] INFO Starting sync for org=jakartaee;repo=jaf-tck
2022-11-04T22:38:24 [main] DEBUG Sync:removeRepoExternalContributors(project = ee4j.jaf, org = jakartaee, repo = jaf-tck)
2022-11-04T22:38:24 [GitWrapper] DEBUG getRepoCollaborators(org = jakartaee, repo = jaf-tck, affiliation = direct)
2022-11-04T22:38:24 [GitWrapper] VERBOSE Getting collaborators for key: jakartaee/jaf-tck:collab
2022-11-04T22:38:24 [main] VERBOSE Updated external contributors: false
2022-11-04T22:38:24 [GitWrapper] DEBUG addRepoToTeam(org = jakartaee, teamName = ee4j.jaf-committers, repo = jaf-tck, permissions = push, overwrite = true)
2022-11-04T22:38:24 [GitWrapper] ERROR API encountered errors processing current request (team:getByName). More information is available in log file
2022-11-04T22:38:24 [GitWrapper] ERROR HttpError: Not Found
2022-11-04T22:38:24 [GitWrapper] DEBUG addRepoToTeam(org = jakartaee, teamName = ee4j.jaf-contributors, repo = jaf-tck, permissions = triage, overwrite = true)
2022-11-04T22:38:24 [GitWrapper] VERBOSE Done creating team with name: jakartaee:ee4j-jaf-contributors
2022-11-04T22:38:24 [GitWrapper] DEBUG editTeam(org = jakartaee, team = "ee4j-jaf-contributors", options = {"privacy":"secret"})
2022-11-04T22:38:24 [GitWrapper] VERBOSE Updating team ee4j-jaf-contributors settings: {"privacy":"secret"}
2022-11-04T22:38:25 [GitWrapper] VERBOSE Done creating team with name: jakartaee:ee4j-jaf-committers
2022-11-04T22:38:25 [GitWrapper] DEBUG editTeam(org = jakartaee, team = "ee4j-jaf-committers", options = {"privacy":"secret"})
2022-11-04T22:38:25 [GitWrapper] VERBOSE Updating team ee4j-jaf-committers settings: {"privacy":"secret"}
2022-11-04T22:38:26 [GitWrapper] VERBOSE Done creating team with name: jakartaee:ee4j-jaf-project-leads
2022-11-04T22:38:26 [GitWrapper] DEBUG editTeam(org = jakartaee, team = "ee4j-jaf-project-leads", options = {"privacy":"secret"})
2022-11-04T22:38:26 [GitWrapper] VERBOSE Updating team ee4j-jaf-project-leads settings: {"privacy":"secret"}
2022-11-04T22:38:27 [main] VERBOSE User 'undefined' has no associated GitHub username, skipping
2022-11-04T22:38:27 [GitWrapper] DEBUG inviteUserToTeam(org = jakartaee, teamName = ee4j-jaf-contributors, uname = ivargrimstad)
2022-11-04T22:38:28 [GitWrapper] VERBOSE Done adding repo to team: jaf-tck -> jakartaee/ee4j-jaf-contributors
2022-11-04T22:38:28 [GitWrapper] DEBUG addRepoToTeam(org = jakartaee, teamName = ee4j.jaf-project-leads, repo = jaf-tck, permissions = maintain, overwrite = false)
2022-11-04T22:38:29 [GitWrapper] WARN Retrieved an error, assuming team does not manage repo
2022-11-04T22:38:30 [GitWrapper] DEBUG inviteUserToTeam(org = jakartaee, teamName = ee4j-jaf-committers, uname = gurunrao)
2022-11-04T22:38:30 [GitWrapper] DEBUG inviteUserToTeam(org = jakartaee, teamName = ee4j-jaf-project-leads, uname = lukasj)
2022-11-04T22:38:31 [GitWrapper] VERBOSE Done inviting user to team: ivargrimstad -> jakartaee/ee4j-jaf-contributors
2022-11-04T22:38:31 [main] INFO Removing 'eclipsewebmaster' from team 'ee4j-jaf-contributors'
2022-11-04T22:38:31 [GitWrapper] DEBUG removeUserFromTeam(org = jakartaee, teamName = ee4j-jaf-contributors, uname = eclipsewebmaster)
2022-11-04T22:38:32 [GitWrapper] VERBOSE Done adding repo to team: jaf-tck -> jakartaee/ee4j-jaf-project-leads
2022-11-04T22:38:32 [main] VERBOSE Attempted update commit team: true
2022-11-04T22:38:32 [main] VERBOSE Attempted update contrib team: true
2022-11-04T22:38:32 [main] VERBOSE Attempted update pl team: true
More information is available in log file
Can you point me to the location of this log file?
The purpose of this issue is to find out why permissions were not applied correctly during the first run and to improve the log output to better diagnose the reason for errors in the future.