3 rows where issue = 849543502 sorted by updated_at descending

View and edit SQL

Suggested facets: created_at (date), updated_at (date)

user

issue

  • Speed up tests with pytest-xdist · 3

author_association

id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
812803256 https://github.com/simonw/datasette/issues/1289#issuecomment-812803256 https://api.github.com/repos/simonw/datasette/issues/1289 MDEyOklzc3VlQ29tbWVudDgxMjgwMzI1Ng== simonw 9599 2021-04-03T03:29:25Z 2021-04-03T03:29:25Z OWNER

https://github.com/simonw/datasette/actions/runs/713207828 ran with pytest-xdist in 4m22s:

https://user-images.githubusercontent.com/9599/113466592-f151bf80-93f1-11eb-9d74-b830e96c19c8.png">

Here's the test suite running on regular pytest in 5m13s:

https://user-images.githubusercontent.com/9599/113466606-00387200-93f2-11eb-95a3-24521c628cbe.png">

Not a huge speed-up because there are only 2 available cores in the GitHub Actions environment, but still worthwhile - especially since this lets people run in parallel on their own laptops.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Speed up tests with pytest-xdist 849543502  
812768915 https://github.com/simonw/datasette/issues/1289#issuecomment-812768915 https://api.github.com/repos/simonw/datasette/issues/1289 MDEyOklzc3VlQ29tbWVudDgxMjc2ODkxNQ== simonw 9599 2021-04-03T00:59:15Z 2021-04-03T00:59:26Z OWNER

Looks like -n auto only detected two cores on GitHub Actions: https://github.com/simonw/datasette/runs/2257597137?check_suite_focus=true

============================= test session starts ==============================
platform linux -- Python 3.7.10, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
SQLite: 3.31.1
rootdir: /home/runner/work/datasette/datasette, configfile: pytest.ini
plugins: xdist-2.2.1, timeout-1.4.2, forked-1.3.0, asyncio-0.14.0
gw0 I / gw1 I
gw0 [878] / gw1 [878]
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Speed up tests with pytest-xdist 849543502  
812767460 https://github.com/simonw/datasette/issues/1289#issuecomment-812767460 https://api.github.com/repos/simonw/datasette/issues/1289 MDEyOklzc3VlQ29tbWVudDgxMjc2NzQ2MA== simonw 9599 2021-04-03T00:48:26Z 2021-04-03T00:48:26Z OWNER

On my Mac pytest-xdist ran the test suite (minus two tests) in 59s, as opposed to 2m23s without xdist.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Speed up tests with pytest-xdist 849543502  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);