Skip to content

Commit

Permalink
Persist run info
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Mar 5, 2021
1 parent 85fb0d0 commit 150543d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion conbench/api/_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _api_commit_entity(commit_id):
"message": "ARROW-11771: [Developer][Archery] Move benchmark tests (so CI runs them)",
"repository": "https://github.com/apache/arrow",
"sha": "02addad336ba19a654f9c857ede546331be7b631",
"timestamp": "2021-02-24T18:02:51",
"timestamp": "2021-02-25T01:02:51",
"url": "https://github.com/apache/arrow/commit/02addad336ba19a654f9c857ede546331be7b631",
}

Expand Down
1 change: 1 addition & 0 deletions conbench/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def configure_engine(url):
future=True,
echo=False,
pool_pre_ping=True,
connect_args={"options": "-c timezone=utc"},
)
session_maker.configure(bind=engine)

Expand Down
4 changes: 0 additions & 4 deletions conbench/entities/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class Commit(Base, EntityMixin):

class _Serializer(EntitySerializer):
def _dump(self, commit):
print(commit.timestamp)
print(commit.timestamp.isoformat())
return {
"id": commit.id,
"sha": commit.sha,
Expand All @@ -47,8 +45,6 @@ class CommitSerializer:


def parse_commit(commit):
print(commit["commit"]["author"]["date"])
print(dateutil.parser.isoparse(commit["commit"]["author"]["date"]))
return {
"url": commit["html_url"],
"date": dateutil.parser.isoparse(commit["commit"]["author"]["date"]),
Expand Down
1 change: 0 additions & 1 deletion conbench/entities/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def create(data):
"author_avatar": github["author_avatar"],
}
)
print(commit.timestamp)

# create if not exists
run_id = data["stats"]["run_id"]
Expand Down

0 comments on commit 150543d

Please sign in to comment.