PennyDreadfulMTG / perf-reports

2 stars 2 forks source link

Error running task maintenance.guess_league_archetypes #56120

Open vorpal-buildbot opened 4 years ago

vorpal-buildbot commented 4 years ago

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException

vorpal-buildbot commented 4 years ago

Error running task maintenance.guess_league_archetypes

Reported on CLI by CLI

GithubException 422 {"message": "Validation Failed", "errors": [{"resource": "IssueComment", "code": "unprocessable", "field": "data", "message": "Body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment"} Stack Trace: ``` Python traceback File "run.py", line 174, in cli() File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "run.py", line 73, in maintenance task(['maintenance', script]) File "run.py", line 160, in run_all_tasks s.run() # type: ignore File "/penny/decksite/maintenance/guess_league_archetypes.py", line 7, in run deck.calculate_similar_decks(decks) File "/penny/decksite/decksite/data/deck.py", line 459, in calculate_similar_decks potentially_similar = load_decks('d.id IN (SELECT deck_id FROM deck_card WHERE card IN ({cards_escaped}))'.format(cards_escaped=cards_escaped)) File "/penny/decksite/decksite/data/deck.py", line 71, in load_decks loaded_decks = load_decks_heavy(where) File "/penny/decksite/decksite/data/deck.py", line 222, in load_decks_heavy rows = db().select(sql) File "/penny/decksite/shared/database.py", line 44, in select [_, rows] = self.execute_anything(sql, args) File "/penny/decksite/shared/database.py", line 55, in execute_anything return self.execute_with_reconnect(sql, args, fetch_rows) File "/penny/decksite/shared/database.py", line 72, in execute_with_reconnect perf.check(p, 'slow_query', (f'```{sql}```', f'```{args}```'), 'mysql') File "/penny/decksite/shared/perf.py", line 22, in check repo.create_issue(msg, f'{location}-perf', flask_location or location, 'PennyDreadfulMTG/perf-reports') File "/penny/decksite/shared/repo.py", line 88, in create_issue issue.create_comment(f'{title}\n\n{body}\n\nLabels: {labelstr}') File "/home/discord/.local/lib/python3.8/site-packages/github/Issue.py", line 336, in create_comment headers, data = self._requester.requestJsonAndCheck( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck return self.__check( File "/home/discord/.local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check raise self.__createException(status, responseHeaders, output) ```

Exception_hash: c0a026c8a8e5786e4a4485c35ce8fb4c7f3792a2

Labels: CLI; GithubException