Skip to content

Commit

Permalink
Revert "[TEMP] Change synchronization script to remove rows"
Browse files Browse the repository at this point in the history
This reverts commit 643bb829d1b476cae02928f9a7c2d16171a3e127.
  • Loading branch information
ldionne committed Aug 28, 2024
1 parent cad62f5 commit be387cd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions libcxx/utils/synchronize_csv_status_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,18 @@ def sync_csv(rows: List[Tuple], from_github: List[PaperInfo]) -> List[Tuple]:
def main():
libcxx_root = pathlib.Path(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

# Extract the list of PaperInfos from issues we're tracking on Github.
print("Loading all issues from Github")
gh_command_line = ['gh', 'project', 'item-list', LIBCXX_CONFORMANCE_PROJECT, '--owner', 'llvm', '--format', 'json', '--limit', '9999999']
project_info = json.loads(subprocess.check_output(gh_command_line))
from_github = [PaperInfo.from_github_issue(i) for i in project_info['items']]

for filename in CSV_FILES_TO_SYNC:
print(f"Updating {filename}")
print(f"Synchronizing {filename} with Github issues")
file = libcxx_root / 'docs' / 'Status' / filename
csv = load_csv(file)
for row in csv:
del row[5]
write_csv(file, csv)
synced = sync_csv(csv, from_github)
write_csv(file, synced)

if __name__ == '__main__':
main()

0 comments on commit be387cd

Please sign in to comment.