Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ push.self-hosted-rolling:
docker push ${DOCKERHUB_REPO}:rolling_no_dependencies
docker push ${DOCKERHUB_REPO}:rolling

shell:
docker-compose exec api bash

test_env.up:
env | grep GITHUB > .testenv; true
TIMESERIES_ENABLED=${TIMESERIES_ENABLED} docker-compose up -d
Expand Down
5 changes: 1 addition & 4 deletions upload/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ def insert_commit(commitid, branch, pr, repository, owner, parent_commit_id=None
)

edited = False
if commit.state != "pending":
commit.state = "pending"
edited = True
if parent_commit_id and commit.parent_commit_id is None:
commit.parent_commit_id = parent_commit_id
edited = True
Expand All @@ -508,7 +505,7 @@ def insert_commit(commitid, branch, pr, repository, owner, parent_commit_id=None
commit.branch = branch
edited = True
if edited:
commit.save(update_fields=["parent_commit_id", "state", "branch"])
commit.save(update_fields=["parent_commit_id", "branch"])
return commit


Expand Down
4 changes: 1 addition & 3 deletions upload/tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def test_insert_commit(self):
repository=repo,
parent_commit_id=None,
)
# parent_commit_id, state, and branch should be updated
# parent_commit_id and branch should be updated
insert_commit(
"1c78206f1a46dc6db8412a491fc770eb7d0f8a47",
"oranges",
Expand All @@ -650,7 +650,6 @@ def test_insert_commit(self):
commitid="1c78206f1a46dc6db8412a491fc770eb7d0f8a47"
)
assert commit.repository == repo
assert commit.state == "pending"
assert commit.branch == "oranges"
assert commit.pullid == 456
assert commit.merged is None
Expand All @@ -671,7 +670,6 @@ def test_insert_commit(self):
commitid="8458a8c72aafb5fb4c5cd58f467a2f71298f1b61"
)
assert commit.repository == repo
assert commit.state == "pending"
assert commit.branch == "test"
assert commit.pullid is None
assert commit.merged is None
Expand Down
Loading