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

Api merge without fixes #223

Draft
wants to merge 64 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
550bf94
uplifts: query `differential.querydiffs` to find the latest non-`comm…
cgsheeh Dec 14, 2023
bcce651
fix(circleci): Using CIRCLE_TAG in develop and stage image tags to mo…
dlactin Dec 14, 2023
9a15a42
styling: update ruff and black (Bug 1870322) (#366)
cgsheeh Dec 15, 2023
886f587
circleci: Using SHA1 in dev/stage image name instead of tag (#367)
dlactin Dec 21, 2023
7c51890
testing: add test for partial stack request (#368)
cgsheeh Jan 4, 2024
11ae389
uplift: use `differential.querydiffs` data to populate new diff chang…
cgsheeh Jan 5, 2024
b24ad02
autoformat: run linters with `--verbose` (Bug 1871425) (#370)
cgsheeh Jan 5, 2024
60debf0
typing: add type hints to `notifications.py` (Bug 1759890) (#371)
cgsheeh Jan 19, 2024
012180a
repos: add `larch` to the set of supported repos (Bug 1875738) (#372)
cgsheeh Jan 22, 2024
fb22533
git: scan end of patch for `--` instead of assuming last two lines (B…
cgsheeh Jan 23, 2024
e9033ce
transplants: use `values()` instead of `items()` since key is unused …
cgsheeh Feb 14, 2024
5a41b51
hg: change push failure snippet to be more pushlog specific (Bug 1877…
cgsheeh Feb 14, 2024
249ec2e
typing: add type hints to `logging.py` (Bug 1759890) (#378)
cgsheeh Feb 27, 2024
bc50efe
transplants: use `any` instead of `for`/`else` to check valid landing…
cgsheeh Feb 27, 2024
8ecc15c
transplants: remove unused token comparison mocking shim (#380)
cgsheeh Feb 28, 2024
0016354
hg: run a specific subset of formatters for autoformatting (Bug 18714…
cgsheeh Feb 29, 2024
c2d84cc
revisions: block revisions with `needs-data-classification` tag from …
cgsheeh Mar 13, 2024
0ec2385
tests: use correct loop variable and rename to `revision` (#385)
cgsheeh Mar 20, 2024
0683368
tests: add missing `app` fixture to failing `test_reviews.py` tests (…
cgsheeh Mar 25, 2024
7cc9792
uplift: remove blocking check for uplift request form (Bug 1888252) (…
cgsheeh Mar 27, 2024
ca1ef0e
repos: add `cypress` to production repo config (Bug 1893308) (#389)
cgsheeh Apr 26, 2024
0b38651
repos: add `large-repo` to dev repo configs (Bug 1821153) (#393)
cgsheeh Apr 29, 2024
a085f23
treestatus: implement Treestatus API as a function of Lando (Bug 1817…
cgsheeh May 6, 2024
01e4b5b
stacks: unify and cleanup landing checks system (Bug 1888188) (#388)
cgsheeh May 7, 2024
86a9610
testing: split `create_landing_state` into a separate kwarg of `creat…
cgsheeh May 9, 2024
415b4ad
checks: add a check to reject symlinks in Lando (Bug 1895762) (#399)
cgsheeh May 9, 2024
6b0b16e
commands: remove `import-treestatus` command (Bug 1894984) (#402)
cgsheeh May 10, 2024
cdd7746
hg: add a snippet to consider Treestatus API failures as closed (Bug …
cgsheeh May 14, 2024
436ef37
circleci: change `deploy` step to `run` (Bug 1895570) (#398)
cgsheeh May 16, 2024
4414713
testing: move `uplift-target` repo to mocked repo config (Bug 1896501…
cgsheeh May 17, 2024
aca0471
checks: split `assess_stack_state` into a state builder and check run…
cgsheeh May 17, 2024
4dbe4f3
testing: defined `create_state` as a test fixture built with Lando in…
cgsheeh May 17, 2024
596f283
hooks: exclude treestatus API endpoints from maintenance mode (Bug 18…
cgsheeh May 22, 2024
0b8eb54
checks: only block assessment when revision is in landing path (Bug 1…
cgsheeh May 22, 2024
e09cec7
checks: only apply warnings to assessments for relevant PHIDs (Bug 18…
cgsheeh May 23, 2024
8f9668d
hooks: add a `None`-check before using `request.endpoint.startswith` …
cgsheeh May 23, 2024
934549e
hooks: explicitly enumerate each Treestatus endpoint in maintenance h…
cgsheeh May 23, 2024
4c48b09
checks: add a check to reject `try_task_config.json` outside of `try`…
cgsheeh May 24, 2024
046015e
hooks: add a diff inspection API for landings and try pushes (Bug 189…
cgsheeh May 31, 2024
e6381dc
repos: add `esr128` to production repo config (Bug 1902055) (#419)
cgsheeh Jun 12, 2024
d372c2c
hgexports: add a commit message validation check to `DiffAssessor` (B…
cgsheeh Jun 17, 2024
6380983
hgexports: port NSS/NSRP and WPTSync bot update prevention hooks as L…
cgsheeh Jun 20, 2024
ef7e3ba
hgexports: add a check to prevent introducing Git submodules (Bug 190…
cgsheeh Jun 20, 2024
d117bef
requirements: update celery, redis and kombu (Bug 1904121) (#427)
cgsheeh Jun 27, 2024
596762f
repos: remove `esr102` as it is EOL (Bug 1907979) (#430)
cgsheeh Jul 15, 2024
e64119f
hg: convert errors from `hg id` to `HgException` (Bug 1908492) (#431)
cgsheeh Jul 17, 2024
20a07ca
git-patch-helper: use `strip_git_version_info_lines` when empty commi…
cgsheeh Sep 25, 2024
8355ed5
git-patch-helper: set charset to `utf-8` in email message parser (Bug…
cgsheeh Sep 25, 2024
694679e
checks: add a push-wide check API and implement bug references check …
cgsheeh Oct 8, 2024
2fa9314
autoformat: remove `eslint` from supported formatters list (Bug 19248…
cgsheeh Oct 15, 2024
36f36fb
bmo: use `common_headers` instead of `headers` in requests (Bug 19254…
cgsheeh Oct 18, 2024
47457f5
commit_message: change `parse_bugs` to use `BUG_CONSERVATIVE_RE` (Bug…
cgsheeh Oct 23, 2024
c8f1bac
mocks: respect `limit` parameter in mock Conduit API endpoints (Bug 1…
cgsheeh Oct 25, 2024
5b14b86
checks: add a warning when a revision has diffs from multiple authors…
cgsheeh Oct 25, 2024
57e2a58
repos: remove deprecated/moved repos from Lando (Bug 1925343) (#436)
cgsheeh Oct 25, 2024
1d35d73
patch-helper: account for non-Git formatted author headers (Bug 19322…
cgsheeh Nov 19, 2024
535b59d
checks: refactor `DiffAssessor` check to more closely resemble `Patch…
cgsheeh Nov 26, 2024
786cf70
uplift: skip Bugzilla updates for landings without bugs (Bug 1934003)…
cgsheeh Nov 28, 2024
3a626e6
hg: add a retry snippet for `error: Connection timed out` errors (Bug…
cgsheeh Dec 9, 2024
6ce7ebd
requirements: update `mots` to 0.13.1 (Bug 1936328) (#445)
cgsheeh Dec 10, 2024
64131bf
landing-worker: add a try/except block around `job.set_landed_reviewe…
cgsheeh Dec 10, 2024
ab244fd
landing-worker: use `logger` instead of `logging` to log error (Bug 1…
cgsheeh Dec 11, 2024
d6af034
requirements: update mots version (#451)
zzzeid Dec 11, 2024
3bb0034
Merge remote-tracking branch 'lando-api-repo/main'
cgsheeh Jan 31, 2025
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
133 changes: 133 additions & 0 deletions migrations/versions/1dfc5aa9d1b2_add_treestatus_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
"""add treestatus models

Revision ID: 1dfc5aa9d1b2
Revises: 56c6748ee7cf
Create Date: 2023-11-29 01:48:07.449510

"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = "1dfc5aa9d1b2"
down_revision = "56c6748ee7cf"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"status_change",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("updated_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("changed_by", sa.Text(), nullable=False),
sa.Column("reason", sa.Text(), nullable=False),
sa.Column(
"status",
sa.Enum("OPEN", "CLOSED", "APPROVAL_REQUIRED", name="treestatus"),
nullable=False,
),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"tree",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("updated_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("tree", sa.String(length=64), nullable=False),
sa.Column(
"status",
sa.Enum("OPEN", "CLOSED", "APPROVAL_REQUIRED", name="treestatus"),
nullable=False,
),
sa.Column("reason", sa.Text(), nullable=False),
sa.Column("message_of_the_day", sa.Text(), nullable=False),
sa.Column(
"category",
sa.Enum(
"DEVELOPMENT",
"RELEASE_STABILIZATION",
"TRY",
"COMM_REPOS",
"OTHER",
name="treecategory",
),
nullable=False,
),
sa.PrimaryKeyConstraint("id"),
)
op.create_index(op.f("ix_tree_tree"), "tree", ["tree"], unique=True)
op.create_table(
"log",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("updated_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("tree", sa.String(length=64), nullable=False),
sa.Column("changed_by", sa.Text(), nullable=False),
sa.Column(
"status",
sa.Enum("OPEN", "CLOSED", "APPROVAL_REQUIRED", name="treestatus"),
nullable=False,
),
sa.Column("reason", sa.Text(), nullable=False),
sa.Column(
"tags",
postgresql.JSONB(astext_type=sa.Text()),
nullable=False,
server_default="[]",
),
sa.ForeignKeyConstraint(
["tree"],
["tree.tree"],
),
sa.PrimaryKeyConstraint("id"),
)
op.create_index(op.f("ix_log_tree"), "log", ["tree"], unique=False)
op.create_table(
"status_change_tree",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("updated_at", sa.DateTime(timezone=True), nullable=False),
sa.Column("stack_id", sa.Integer(), nullable=True),
sa.Column("tree", sa.String(length=64), nullable=False),
sa.Column(
"last_state", postgresql.JSONB(astext_type=sa.Text()), nullable=False
),
sa.ForeignKeyConstraint(
["stack_id"],
["status_change.id"],
),
sa.ForeignKeyConstraint(
["tree"],
["tree.tree"],
),
sa.PrimaryKeyConstraint("id"),
)
op.create_index(
op.f("ix_status_change_tree_stack_id"),
"status_change_tree",
["stack_id"],
unique=False,
)
op.create_index(
op.f("ix_status_change_tree_tree"), "status_change_tree", ["tree"], unique=False
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(op.f("ix_status_change_tree_tree"), table_name="status_change_tree")
op.drop_index(
op.f("ix_status_change_tree_stack_id"), table_name="status_change_tree"
)
op.drop_table("status_change_tree")
op.drop_index(op.f("ix_log_tree"), table_name="log")
op.drop_table("log")
op.drop_index(op.f("ix_tree_tree"), table_name="tree")
op.drop_table("tree")
op.drop_table("status_change")
# ### end Alembic commands ###
Loading