GitHub Actions run 5840247098 failed.
#dev-log
1 messages ยท Page 15 of 1
great
Not great enough apparently, I don't get why it's failing. Even when trying in debug mode, there are no useful logs.
5314972 reduce job to only echoing commit diff - shtlrs
GitHub Actions run 5840313618 failed.
GitHub Actions run 5840333088 failed.
GitHub Actions run 5840341918 failed.
GitHub Actions run 5840348078 failed.
GitHub Actions run 5840374053 failed.
GitHub Actions run 5840398179 failed.
GitHub Actions run 5840413845 failed.
GitHub Actions run 5840420376 failed.
GitHub Actions run 5840437690 failed.
[python-discord/.github] New branch created: supress-grep-error
This is because when grep doesn't find a match it returns an exit code 1, which makes github think an error occured so the entire workflow stops
great
Not great enough apparently, I don't get why it's failing. Even when trying in debug mode, there are no useful logs.
Issue identified and fixed here
GitHub Actions run 5840459543 failed.
0efc455 Use fixup commit blocker workflow from org's repo - shtlrs
[python-discord/site] New branch created: use-fixup-commit-blocker
This uses the organisation's fixup commit blocker workflow.
The purpose is to make sure all commits prefixed with fixup need to be squashed before merging.
4d55740 Use fixup commit blocker workflow from org's repo - shtlrs
[python-discord/bot-core] New branch created: fixup-commit-blocker
GitHub Actions run 5840616022 succeeded.
This uses the organisation's fixup commit blocker workflow.
The purpose is to make sure all commits prefixed with fixup need to be squashed before merging.
GitHub Actions run 5840677448 succeeded.
GitHub Actions run 5840459543 succeeded.
There seems to be a problem with generating sphinx docs, I'll have a look at this later.
Connected!
Should have spaces around operators as per PEP 8
file = PasteFile(content=metadata + output, lexer="text")
GitHub Actions run 5842461687 succeeded.
GitHub Actions run 5842604578 succeeded.
Connected!
GitHub Actions run 5842610054 failed.
This is normal as the pull_request variable isn't available in the context anymore.
proposed solution
We deactivate this for push events. The push happens once the merge has been done, and the merge is blocked if the fixup commits exist.
So i don't see a need to do this twice as origin/main and HEAD will be the same ref.
9c3b7e9 run ficup blocker on pull request events only - shtlrs
[python-discord/bot] New branch created: run-fixup-blocker-on-pr-only
This does two things:
- Makes sure that the fixup blocker workflow only runs when the event is a
pull_request - Makes the previously mentioned workflow depend on the
lint-testone as we don't want to block linting onfixupcommits still.
3a52d09 run fixup blocker on pull requests only - shtlrs
9d60faa run fixup blocker on pull requests only - shtlrs
GitHub Actions run 5843521636 failed.
GitHub Actions run 5843566383 succeeded.
Connected!
GitHub Actions run 5846286853 succeeded.
I see, thanks for the feedback.
Closes #2353
Screenshots:
Confirmation:
When cancelled:
When confirmed:
GitHub Actions run 5847081501 failed.
f3a78e2 Use gh cli to checkout to fork's branch - amrouna2
[python-discord/.github] New branch created: fixup-blocker-failing-in-forks
[.github] Branch fixup-blocker-failing-in-forks was force-pushed to `3e63963`
80c2a20 Update event dates for 2024 - ChrisLovering
[python-discord/branding] New branch created: update-event-dates
GitHub Actions run 5848255328 succeeded.
Mostly are nitpicks, and this is only a code review, i'll test it later.
class ModifyReminderConfirmationView(discord.ui.View):
REMINDER_EDIT_CONFIRMATION_TIMEOUT = 60
"""A view to confirm modifying someone else's reminder by admins."""
Maybe mentioning who that person is would be useful?
I think replying to the original message that invoked the command would be better.
GitHub Actions run 5848378077 was cancelled.
GitHub Actions run 5848379726 failed.
GitHub Actions run 5848395590 failed.
I actually meant the owner of the reminder.
So a reply + mentioning the actual author would be a good combo
GitHub Actions run 5849849186 succeeded.
PR Author
Workflow Run
Source Branch
Add-archival-notice
I see, it has been added now.
GitHub Actions run 5852355349 succeeded.
GitHub Actions run 5855570356 succeeded.
GitHub Actions run 5857097589 was cancelled.
Works great !
Just a nitpick or two, and a small bug to fix.
This needs to be an f-string, otherwisei it won't render.
The author can only be a Member to invoke this since we don't allow commands in DMs.
This currently says Are you sure you want to modify {{mention}}'s reminder? when you're trying to delete it, which isn't quite explicit and doesnt point the invoker to the action.
It's better to make this clearer, and IIRC you'll have access to that from ctx.command.invoked_subcommand
Connected!
GitHub Actions run 5863280498 failed.
This looks great, I have one suggestion.
[python-discord/sir-lancebot] New review comment on pull request #1343: Add a `.rfc` utility command
I think we should link to the rfc even if the abstract is included, in case someone wants to read further.
I would be against changing the emoji, as it's there since it looks better than the unicode bin. I'm also not a fan of needing to pass in the constants everywhere they're needed.
One simple way around this for now would be to just create a wrapper here that passes in the necessary constants and we can just use that instead. In the future we may want to think of other ways we can have configuration for bot-core.
Yeah the Emoji cannot change since it has been set to the custom one for legacy purposes.
However, regarding the Emojis as parameter part, I'm also not a biggest fan but that was one of the solutions.
I don't understand why is the paginate method a static method in the first place.
The way I'd want to do this is to instantie the Paginator in the parent package's __init__.py module and have it as a singleton. The constructor would take in the Emojis that need to be used the entire lifet...
When I press confirm or cancel the buttons seem to remain on the embed, so i'm not sure that this is working. ViewWithuserAndRoleCheck only seems to remove them when the embed times out, but I think we also want to remove them when a button is pressed.
paginate is a classmethod, and it's there because it needs to run async code which can't be done in the __init__.
It is still a bit strange since it doesn't actually return the class, so it would probably make sense to just expose paginate as a function by itself which creates a class internally. The current class cannot just be made into a singleton though as it contains state specific to an individual pagination.
I meant class method *
Well, i don't remember what it does specifically now but I'll see what I can do about it
GitHub Actions run 5867263766 succeeded.
Maybe the action being performed could be passed into the function instead? Although it might be redundant since a Context object is already being passed in.
I think I will stick with using ctx.command.invoked_subcommand for now.
Also, would it be worth changing the message in L597 to also include the modification type? I feel like doing so might imply that editing/deleting other people's reminders have different permissions when they actually don't.
Could you please elaborate on this? What could the docstring be changed to instead? Would something like "Prevent other users from using the view buttons." be better?
GitHub Actions run 5868356404 failed.
Actually, it could be left as is, so don't mind me.
Also, would it be worth changing the message in L597 to also include the modification type? I feel like doing so might imply that editing/deleting other people's reminders have different permissions when they actually don't.
No you don't need to, as that message is destined to people who don't have the rights to do anything with a reminder.
The reason I asked you to make it explicit for adminds is because it will pinpoint the action they're about to do better.
This can now cause ghost pings for the reminder owner. Would sending a second message instead be better?
GitHub Actions run 5873685027 failed.
If the view times out, the view doesn't get deleted so the buttons fail with "application didn't respond."
Should we manually delete the view if it timed out (with the return value of View.wait()), or should all deleting (regardless of whether it timed out) happen in _can_modify?
Im reffering to this pep command
Current look:
After change:
I can work on this (not like i already did it)
Connected!
[python-discord/.github] branch deleted: fixup-blocker-failing-in-forks
[python-discord/.github] branch deleted: events-speedrun
[python-discord/.github] branch deleted: supress-grep-error
[python-discord/.github] branch deleted: tag-speedrun-ignore-update-merged
[python-discord/bot] branch deleted: fail-ci-on-fixup-commits
[python-discord/bot] branch deleted: fixup-commit-blocker-test
[python-discord/bot] branch deleted: kwzrd/ci-test
[python-discord/bot] branch deleted: internal-dns-api
[python-discord/bot] branch deleted: kwzrd/unittest-parallel
[python-discord/bot] branch deleted: ruff-investigation
[python-discord/bot] branch deleted: newlines-filter-exclude-help-forum
[python-discord/bot] branch deleted: rule-config-fix
[python-discord/bot] branch deleted: test-workflow
[python-discord/bot] branch deleted: swfarnsworth-automated-markdown-messages
[python-discord/bot] branch deleted: reminders-fetch
[python-discord/bot] branch deleted: feature/1903/fix-channel-inconsistencies
[python-discord/bot] branch deleted: feature/1903/sync-cooldown-roles
[python-discord/bot] branch deleted: remove-caching-util
[python-discord/sir-lancebot] branch deleted: command-match-errors
[python-discord/site] branch deleted: subclassing_bot
[python-discord/site] branch deleted: cj9-changes
[python-discord/site] branch deleted: rewrite
[python-discord/site] branch deleted: edit-on-github
[python-discord/site] branch deleted: easy-docker-migrations
[python-discord/site] branch deleted: smarter-resources
[python-discord/site] branch deleted: kyler/smarter-resources
[python-discord/site] branch deleted: lemon/smarter-resources/tag_filtering
[python-discord/site] branch deleted: #298-exemption-model
[python-discord/site] branch deleted: filter-rewrite
[python-discord/king-arthur] branch deleted: bump-dep
GitHub Actions run 5880471269 succeeded.
GitHub Actions run 5880704233 succeeded.
cd0eedc Update event dates for 2023-24 (#200) - ChrisLovering
[python-discord/branding] branch deleted: update-event-dates
Checked by tizzy in Discord
GitHub Actions run 5880721550 succeeded.
[python-discord/bot] branch deleted: listcomp-rewrite
Sounds sensible, feel free to open a PR
[python-discord/bot] Checks Successful on PR: #2723 feat: move link for PEP to title in !pep command
GitHub Actions run 5883172651 succeeded.
GitHub Actions run 5885095140 failed.
58a72c4 Fix broken link found by httrack (#1018) - jchristgit
9742d98 Bump sentry-sdk from 1.27.1 to 1.28.0 - dependabot[bot]
36838e1 Merge pull request #1019 from python-discord/de... - Xithrius
3c0e58b Drop redirect usage from URL references (#1016) - jchristgit
bb04110 Bump whitenoise from 6.4.0 to 6.5.0 - dependabot[bot]
Not sure why the builds are failing, let's see if merging in main fixes it...
GitHub Actions run 5885195665 failed.
GitHub Actions run 5889807708 succeeded.
GitHub Actions run 5890926488 succeeded.
GitHub Actions run 5885195665 failed.
GitHub Actions run 5893614059 succeeded.
Connected!
Connected!
GitHub Actions run 5898862783 failed.
Connected!
GitHub Actions run 5899017916 succeeded.
Didn't test this, but looks good & safe. Thanks.
We recently had a discussion about deleting messages like this. And it's not something we want to keep on doing.
Let's keep the view, but delete the buttons.
GitHub Actions run 5901453250 succeeded.
Hm I'm a bit confused why they fail as well. @shtlrs I do not see fixup commits in the commit history on GitHub, do you have an idea why the test fails?
[python-discord/site] New branch created: timeline-branch-copy
This PR is only a copy of #1065 to test something related to our commit history.
This will be deleted in a few minutes, please ingore.
GitHub Actions run 5902234690 was cancelled.
GitHub Actions run 5902238968 succeeded.
GitHub Actions run 5902279425 failed.
90da58a Do not checkout the fork's branch - shtlrs
[python-discord/.github] New branch created: do-not-checkout-fork
Reasoning
Generally, when using the pull_request event as trigger for our CI, it uses the fork's CI context, allowing malicious users to tamper with CI.
We are switching to using pull_request_target as event, which ensures that CI is executed with our repo's context.
The main condition to using this is to not checkout nor execute the fork's code.
Solution
The approach was to add the fork as remote, but we only make a fetch operation instead of a checkout one, ...
GitHub Actions run 5902390209 succeeded.
@ichard26 @jchristgit
The base of the branch is very old, so it needs to be updated.
Looking at the commit history of main, I see this
What you need to do is
- Remove the merge commit your just did:
git reset --hard 32c61d1ddf15c9ef68183b998323167c6f038845 - Checkout to main, and update it
git checkout maingit pull
- Checkout to your branch
git checkout -
4....
GitHub Actions run 5903428822 succeeded.
Demo screenshot here :)
<img width="663" alt="Screenshot 2023-08-18 at 20 51 40" src="https://github.com/python-discord/sir-lancebot/assets/91648368/f7ca1e16-861f-4f85-9f5c-eff1188ddc07">
Recently, a contrib had issues setting up redis on sir-lancebot, and they started running into connection problems.
Up until today, I ran into the same issue, and it was the fact that redis_use_fakeredis wasn't set in my .env variable.
After some debugging, I realized that it was a host issue, as it needs to be set to redis for the two containers to be able to talk to each other over the docker network.
Looking at the docs now, it's only mentioned in the extended guide of `...
Thanks for the help!
Winning ๐ช ๐ช !!
GitHub Actions run 5908922428 was cancelled.
GitHub Actions run 5908924447 succeeded.
This is great, thanks for doing this
[python-discord/sir-lancebot] New review comment on pull request #1343: Add a `.rfc` utility command
Not that important but just a thought:
@commands.cooldown(2, 10, commands.BucketType.user)
Given the responses are cached and it's just static content being fetched one every 10 seconds feels a bit strict (e.g. if someone mistyped). Could be even less strict than 2 per 10s as well, I don't really mind.
[python-discord/sir-lancebot] New review comment on pull request #1343: Add a `.rfc` utility command
The ) is missing, so this doesn't show properly any more, e.g.:
Since the link is always in the title now though I think we can just remove this and have no description if there's no abstract.
f59244f Bump ruff from 0.0.284 to 0.0.285 (#2725) - dependabot[bot]
Connected!
Connected!
GitHub Actions run 5911874841 failed.
Connected!
Closes #175
This is an alternative implementation to #178
Currently, this is a draft that just focuses on getting multiple Python interpreter versions into the image. Later, this PR will be updated with API changes as well. The goal for the API is for users to be able to pass an arbitrary path to an executable binary (e.g. a path to a different Python interpreter).
du -h --max-depth=1 /lang/python
93M /lang/python/3.11
88M /lang/python/3.12
181M /lang/python
I observed...
Hi! @wookie184 I would like to work upon this issue. Can you please assign it to me.
Thank You.
Hi! @wookie184 I would like to work upon this issue. Can you please assign it to me. Thank You.
Sure, i've assigned you.
Nice, thanks for working on this.
GitHub Actions run 5918625376 succeeded.
Sentry Issue: SIR-LANCEBOT-AH
TypeError: Embed.__init__() got an unexpected keyword argument 'name'
File "bot/exts/holidays/halloween/monstersurvey.py", line 111, in monster_vote
vote_embed = Embed(
Unhandled command error: Embed.__init__() got an unexpected keyword argument 'name'
I'm interested in working on this. I will start by trying to reproduce the error in Gitpod.
To give you context that you might be missing from sentry, it seems to happen when running this command
.monster vote goofy
Relevant Issues
Description
Did you:
- [ ] Join the Python Discord Community?
- [ ] Read all the comments in this template?
- [ ] Ensure there is an issue open, or link relevant discord discussions?
- [ ] Read and agree to the contributing guidelines?
GitHub Actions run 5919528632 succeeded.
@dannynotsmart I would like to work upon this issue. I got a 5 letter word txt file and I would like to accomplish the task2 for now. Please assign it to me. Thank You.
Relevant Issues
Closes #1347
Description
Change parameter name from name to title in a call to Embed in monstersurvey.py.
Did you:
- [x] Join the Python Discord Community?
- [x] Read all the comments in this template?
- [x] Ensure there is an issue open, or link relevant discord discussions?
- [x] Read and agree to the contributing guidelines?
GitHub Actions run 5920166231 succeeded.
Oh, where are my manners?! Thank you very much @shtlrs for investigating and helping me with getting the CI to pass! :lemon:
You're very much welcome! @ichard26
Issue approved, please leave a comment if you'd like to work on it.
I'm giving this issue a limited approval. Switching lists to markdown seems fine, however please comment here if you wish to change something else with examples as shown in previous comment.
I would like to be assigned
You've been assigned, feel free to reach out in the dev-contrib channel if you have any questions. Good luck!
@Qwerty-133 Actually this has already been fixed. Please have a look.
@Diabolical5777 I would like to work upon this feature issue. Please assign it to me.
Thank You.
Yeah, looks like it was fixed by https://github.com/python-discord/sir-lancebot/pull/1096, thanks
Tested and this now works as expected, thanks for the PR!
2a0d2f2 Use title as parameter name for Embed in monste... - ekand
Connected!
I'll mark this as approved.
@parth-verma7: As @Diabolical5777 indicated they would like to work on this first and were just waiting for approval, i'll give them a few days to indicate they would still like to do this if they are still interested. If they are not interested i'll put it up for grabs and you can take it.
I'm giving this issue a limited approval. Switching lists to markdown seems fine, however please comment here if you wish to change something else with examples as shown in previous comment.
The previous example does not show other changes, only switching to markdown.
I'm aware, I'm asking for examples if they decide to change something else.
Tested and works as expected, thanks
b4ab162 Corrected attribute name to fetch github url in... - parth-verma7
GitHub Actions run 5926160036 succeeded.
Connected!
GitHub Actions run 5926462257 succeeded.
Sentry Issue: BOT-3KT
AttributeError: 'DMChannel' object has no attribute 'mention'
File "bot/exts/filtering/_filter_lists/antispam.py", line 131, in process_deletion_context
await deletion_context.send_alert(self)
File "bot/exts/filtering/_filter_lists/antispam.py", line 192, in send_alert
embed = await build_mod_alert(new_ctx, {antispam_list: messages})
File "bot/exts/filtering/_ui/ui.py", ...
Antispam should just ignore the DM channel honestly, that has several issues now that I think about it.
So around this line https://github.com/python-discord/bot/blob/4f4eef6c1701b844a4bb1bc21e6de2b53aa72843/bot/exts/filtering/_filter_lists/antispam.py#L69 we can filter out DM messages.
Antispam should just ignore the DM channel honestly, that has several issues now that I think about it.
Is there a way to filter those message out of the FilterContext.message_cache before this function even gets hit, or is it too generic up the chain?
yeah the cache is used for other stuff so it shouldn't be filtered out there.
[python-discord/bot-core] New branch created: Bump-d.py
Well actually I guess a solution would be to just change the antispam config to not run in DMs, no code changes
4c7be21 Use pydantic-settings for config - ChrisLovering
[python-discord/king-arthur] New branch created: bump-pydantic
GitHub Actions run 5927930052 was cancelled.
54f8327 Pull devops rules from Github, not notion - ChrisLovering
[python-discord/king-arthur] New branch created: use-infra-md-rule-doc
This logic assumes each line is one rule.
GitHub Actions run 5928226449 succeeded.
I can work on this when supakeen/pinnwand#194 is done and merged.
[king-arthur] Branch use-infra-md-rule-doc was force-pushed to `c977645`
GitHub Actions run 5928528496 succeeded.
[king-arthur] Branch use-infra-md-rule-doc was force-pushed to `08a46bc`
GitHub Actions run 5928548923 succeeded.
Connected!
GitHub Actions run 5928993266 succeeded.
@wookie184 sure, I am open to solving issues:)
f95ef39 Pull devops rules from Github, not notion (#98) - ChrisLovering
[python-discord/king-arthur] branch deleted: use-infra-md-rule-doc
da13888 Correct tuple typehint in config - ChrisLovering
GitHub Actions run 5939563753 was cancelled.
GitHub Actions run 5939584490 succeeded.
[python-discord/metricity] branch deleted: message-sync-command
[python-discord/metricity] branch deleted: bump-various-versions
[python-discord/metricity] New tag created: v2.1.0
[python-discord/metricity] New tag created: v2.0.1
37beaa5 Create Path object once whne loading config - ChrisLovering
aeb3a01 Update CI to use reusable workflows and push an... - ChrisLovering
[python-discord/metricity] New branch created: reusable-workflows-in-CI
[metricity] Branch reusable-workflows-in-CI was force-pushed to `ac00c28`
[metricity] Branch reusable-workflows-in-CI was force-pushed to `c4a6ed4`
[metricity] Branch reusable-workflows-in-CI was force-pushed to `56cf6fc`
[metricity] Branch reusable-workflows-in-CI was force-pushed to `aea3c43`
16fc6c2 Update CI to use reusable workflows and push an... - ChrisLovering
[python-discord/metricity] branch deleted: reusable-workflows-in-CI
fe0f98c Ensure images are pushed to ghcr on push to main - ChrisLovering
[python-discord/metricity] New tag created: v2.2.0
c780e6f Only trigger CI on release for published releases - ChrisLovering
GitHub Actions run 5941547027 succeeded.
@Diabolical5777 are you currently working upon this issue?
@brad90four Hi! I would like to work upon this issue. Please assign it to me.
Thank You!
@DMFriends I would like to have a go at this.
Description
Expected Behaviour
Actual Behaviour
This doesn't seem to be the case in production.
Are you sure you don't have 2 instances of your bot process running?
@DMFriends I would like to have a go at this.
Go ahead! Good luck!
c200a01 Add pydantic BaseModel to target to ignore - ChrisLovering
Tagging @Xithrius , any issues with assigning this to @parth-verma7 ?
I have no objections.
The test_multiprocessing_shared_memory_disabled asserts that ENOSYS occurs. This comes from SHM_GET_NAME which comes from shm_open which comes from here in CPython. This works with Debian Bullseye which is on glibc 2.31.
However...
GitHub Actions run 5949595951 succeeded.
74e3e68 Use built in timeout handling for aiohttp inste... - wookie184
43cf31b Fix: stop using deprecated PIL .getsize method - wookie184
17303df Fix and simplify 'disambiguate' utility - wookie184
cb87d90 Type hint pagination as allowing float timeout - wookie184
d45356f Handle snakes without images - wookie184
[python-discord/sir-lancebot] branch deleted: snakes-cleanup
Connected!
@n0Oo0Oo0b I've assigned you.
Given there have been a few different proposals for how this could be done here, could you clarify what you are working on? (e.g. what size, how it will be displayed to the user, how the user will enter guesses)
@parth-verma7 What is the plan for implementation here given the previous discussion? As seasons work differently in different places, what type will be used? Will an API need to be used to get the necessary information?
Good spot, feel free to open a PR
I guess I did both, Run with Docker and Run on the Host.
Looks good, one thing that we could change, but my approval stands either way
In the bot PR, I found you can pass these as class vars, and it just works with inheritance.
[sir-lancebot] Branch shenanigansd-patch-1 was force-pushed to `41faf9d`
328f11f holidayreact: add alternate spellings to Februa... - shenanigansd
[python-discord/sir-lancebot] branch deleted: shenanigansd-patch-1
GitHub Actions run 5950668621 succeeded.
Connected!
FWIW, I think this is a good approach as far as the image is concerned.
GitHub Actions run 5951618307 succeeded.
Does this PR cover everything required in that issue? If not, we shouldn't mark this PR as closing that issue.
I guess i can go over commands and see if there is something to change.
I guess i can go over commands and see if there is something to change.
We can also just review & merge this PR, but not have it marked as closing the issue. With further changes in other PRs. It's up to you.
@ChrisLovering All i found that might also use markdown is the !extensions list command but dont know what you think
I could be displayed like this:
Obviously with emojis
But is it worth applying? I dont think so
@ChrisLovering Actually many tags dont use correct syntax for markdown. Also the !patreon supporters command is what i found for now.
All of the above are using the โข instead of -
- For grid size, I will start with a 4x4 but I might also add a 6x6 option later
- The grid will be displayed as an image
.sudoku startto start,.sudoku [location] [number]to enter guesses. If the guess is correct, the board will be updated (most likely edit the original message). If the guess is incorrect, the bot will indicate it (perhaps a:x:reaction) and leave the board unchanged.
Doc item doc_item.symbol_id='flask.Flask.default_config' present in loaded documentation inventories not found on site, inventories may need to be refreshed.
@wookie184 I could not find any api for seasons .
My way:
i) Extract country.
ii) Extract the current time zone.
iii) Return the time zone from some database in which all the seasons vs country are stored.
I have attached a sample image, please have a look.
@jodth07 I would like to work upon this issue. Can you please assign it to me?
Thank You
Closes #2728
- Removed
()from import statement.
GitHub Actions run 5957248391 failed.
GitHub Actions run 5961016991 failed.
GitHub Actions run 5961212292 failed.
Hi ๐
Thanks for opening up a PR to fix that.
However, I'm afraid tha that the issue wasn't assigned to you, and the person who opened it was told to feel free to open a PR to fix it.
Please make sure to receive confirmation before beginning to work on a PR so that it doesn't happen in the future, we don't want contributors' work to be wasted.
Sorry for that.
c744431 Remove call to the fixup reusable workflow - shtlrs
[python-discord/bot] New branch created: remove-fixup-job
We're having a couple of issues with the workflow so we're temporarily removing it.
82301f2 Remove call to the fixup reusable workflow (#2731) - shtlrs
[python-discord/bot] branch deleted: remove-fixup-job
GitHub Actions run 5964923309 succeeded.
Connected!
[python-discord/.github] New branch created: interpolate-commit-messages-var
f94f05f interpolate the commit_messages var
- shtlrs
This makes sure that the expressions is evaluated based on the content of the var insteaf of the string "commit_messages"
GitHub Actions run 5968732503 succeeded.
GitHub Actions run 5968930860 succeeded.
Hello
It has come to my attention that Python Discord . Com still has no Dark Theme switch. I was saddened by this and, head hanging down, trotted to this pull request to express my feelings of sadness.
django-simple-bulma recently had my PR merged that added a flag to skip adding JS, which I think should help with implementing this. What do you think?
GitHub Actions run 5984085348 succeeded.
GitHub Actions run 5984180128 succeeded.
Connected!
[python-discord/bot] New branch created: fix-import-error
It seems this commit has been lost during the rebase.
GitHub Actions run 5984299716 failed.
GitHub Actions run 5984308922 succeeded.
GitHub Actions run 5984319921 succeeded.
28fa104 pass bot to get_or_fetch_channel in thread bump... - shtlrs
[python-discord/bot] branch deleted: fix-import-error
Connected!
GitHub Actions run 5985372455 succeeded.
Updated syntax and invalid link in this tag suggested by @TizzySaurus [here](#dev-contrib message)
GitHub Actions run 5985387153 succeeded.
Connected!
GitHub Actions run 5985412221 succeeded.
GitHub Actions run 5985656912 succeeded.
cedf79a Create ModifyConfirmationView - n0Oo0Oo0b
e82ae28 Ask for confirmation when an admin modifies ano... - n0Oo0Oo0b
30ff648 Update docstring to better match function behavior - n0Oo0Oo0b
3bf7e32 Apply suggestions from code review - n0Oo0Oo0b
cac8e34 Apply suggestions from code review - n0Oo0Oo0b
GitHub Actions run 5985662210 succeeded.
Connected!
57d0fb5 Fix broken links and remove extraneous space in... - ichard26
[python-discord/site] New branch created: update-timeline-rev-2
Many thanks to @Rainb0wCodes for making me aware of the broken links.
This is not embarrassing in any way, not at all.,,
GitHub Actions run 5986642259 failed.
new_channel_names: list[str] = await self.bot.api_client.get(
IS this even possible ? We have a ton of channel names and we only rename 3.
Can you rebase onto main ?
There are breaking changes since the get_or_fetch_channel isn't available anymore, you need to import it from pydis_core
I think the approach can be enhanced a bit.
We can fetch 3 names (number of attempts) for each channel.
We iterate over each channel, and try to rename it three times, then exit, that way we can increase the chance of a successful rename OP.
number_of_names_to_fetch = MAX_ATTEMPS * len(CHANNELS)
channels = [get_or_fetch_channel(channel) for channel in CHANNELS]
names = iter(api_client.fetch_names(params={"random_items": number_of_names_to_fetch}))
renamed = set()
failed = ...
GitHub Actions run 5991031847 succeeded.
Connected!
@shtlrs Good morning
Do you know why git fails in the fixup blocker CI?
Run commit_messages=$(git log origin/main..fork/update-timeline-rev-2 --format="%h %B" --grep "^fixup" --oneline)
commit_messages=$(git log origin/main..fork/update-timeline-rev-2 --format="%h %B" --grep "^fixup" --oneline)
if [ -n "commit_messages" ]; then
echo -e "$RED Error: Make sure that all 'fixup' prefixed commits are squashed before merging."
echo -e "$RED Commits that need fixin...
Good morning sir.
Yes, it's because i forgot to make a new workflow that needs to run on the pull_request_target event.
Also, another pr needs to be Merged for it to be fully
functionalhttps://github.com/python-discord/.github/pull/24
So, we can either bypass this, or remove the usage of it then rebase this branch.
Sorry for the hurdle.
Sorry for the hurdle.
Wo gehobelt wird, da fallen Spรคne!!!!!!!!!!
[python-discord/site] branch deleted: update-timeline-rev-2
It is strictly possible, however unlikely, so figured it should be accounted for - especially since the handling is relatively simple.
371eaa8 Add on-message-event.md - n0Oo0Oo0b
5f83740 Update bot/resources/tags/on-message-event.md - n0Oo0Oo0b
97efc1c Update bot/resources/tags/on-message-event.md - n0Oo0Oo0b
9936d6f Update on-message-event.md - n0Oo0Oo0b
d0ca29e Apply suggestions from code review - n0Oo0Oo0b
GitHub Actions run 5992576726 failed.
GitHub Actions run 5992598204 succeeded.
I don't see any real harm in documenting how the code works given the complexity.
I've picked up this PR again, and in my testing, the process crashes with code 135 (SIGBUS). To trigger this, the code must write to the shared memory buffer. Merely creating the shared memory object is not enough.
What I've been stuck on is understanding what's going on when just the shared memory object is created. Here is the CPython code for it.
First it calls shm_open, and it has the `...
It seems like no memory is consumed by just using ftruncate:
python -m snekbox '
import os
import _posixshmem
try:
fd = _posixshmem.shm_open("test", os.O_CREAT | os.O_EXCL | os.O_RDWR, mode=0o600)
os.ftruncate(fd, 52428800 * 5000000)
print(os.stat(fd))
finally:
_posixshmem.shm_unlink("test")
' --time_limit 0
os.stat_result(st_mode=33152, st_ino=2, st_dev=60, st_nlink=1, st_uid=65534, st_gid=65534, st_size=262144000000000, st_atime=1693165871, st_mti...
Rewritten in 2f738ad1. Currently untested, but lmk what you think :)
GitHub Actions run 5992886423 succeeded.
GitHub Actions run 5992893428 was cancelled.
The handle for this has changed with the rewrite, but is still there here. Also figured it made more sense to send a message to mod_meta than a log.warn, so updated to reflect that.
GitHub Actions run 5992894753 succeeded.
I agree with keeping the handle since it could save some of my brain cells when, say, I'm running my own instance of the bot in a test server.
27f4061 Add missing call to handle_failed_renames - TizzySaurus
GitHub Actions run 5992945537 succeeded.
5b6fb16 Only define failed_to_rename when required - TizzySaurus
That's what I'm saying, that the code can be understood by simply reading it, as the logic is kinda straightforward.
I personally don't think it's complex, we'll see what others have to say about it.
GitHub Actions run 5992957698 succeeded.
Yeah, in hindsight I agree -- these comments were removed as part of the rewrite.
This code is now duplicated, you can simply break out of the loop, and have the second one do the handling.
GitHub Actions run 5993370299 succeeded.
This corrects some permissions issues from last year:
- Adds Sir Robin to individual team channels
- Give the Event Lead roles manage_channels permission for the category
- Adds Sir Lancebot and Python to team channels and the category overall, just to be sure
Why do we have to override permissions on the individual channels when it's being added to the category is a reasonable question you might ask when looking at this PR. The answer lies in the hell that is the Discord channel permis...
GitHub Actions run 5995044772 failed.
GitHub Actions run 5995058500 failed.
GitHub Actions run 5995085427 succeeded.
GitHub Actions run 5995834028 failed.
GitHub Actions run 5998502696 failed.
GitHub Actions run 5999851020 failed.
Connected!
fedf8cd Patch cj end to upload a file instead of paste ... - D0rs4n
[python-discord/sir-robin] New branch created: pr/cjpaste
- Due to changes in the interface of the Paste Service, for the duration of the code jam, the bot will send a text file.
GitHub Actions run 6000720032 succeeded.
tested and works nicely. Just a super small comment about a double period. Not required to merge.
Duplicate period for these two, not major though.
A better approach would be to bump bot core to 10.X and use the util from there, as it would be a drop-in replacement as far as I can tell.
Approving this just in case there is a time concern for this PR.
36051f3 Add additional approved frameworks for CJ10 - mbaruh
[python-discord/site] New branch created: cj10-frameworks-update
3b7364c Don't fetch ot-names unnecessarily since fetchi... - TizzySaurus
GitHub Actions run 6001953140 succeeded.
@mbaruh you have admin permissions, can you merge this? Please consider it an exchange for this picture of The Dog.
[python-discord/site] branch deleted: cj10-frameworks-update
GitHub Actions run 6002281104 succeeded.
Connected!
Connected!
GitHub Actions run 6003366140 succeeded.
Connected!
Connected!
Linux has a concept of "sparse files", so fallocate does not actually cause memory to be allocated. Thus, there is no concern about being OOM here with insanely large fallocate calls. See https://stackoverflow.com/questions/58571685/do-files-in-dev-shm-take-up-memory-when-grown-with-ftruncate-but-are-not-writte
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
smh that original cursed quote is totally necessary
[python-discord/bot-core] branch deleted: Bump-d.py
[python-discord/bot-core] New tag created: v10.2.0
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
If this is unused and free of side effects, we can probably remove it altogether?
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
Are we sure this is equivalent? I've tested it and it seems fine, but since when is raising a class the same as raising an instance of it?
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
Why was the elif condition removed here?
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
The if block above returns, the the elif isn't needed
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
It's been like for all of Python 3.X. 2.7 behaved this way too.
https://docs.python.org/3/reference/simple_stmts.html#the-raise-statement
If it is a class, the exception instance will be obtained when needed by instantiating the class with no arguments.
GitHub Actions run 6005007683 succeeded.
GitHub Actions run 6005056770 succeeded.
Indeed. I've removed this change in the recent rebase.
I've updated the tests to address the initial comment https://github.com/python-discord/snekbox/pull/113/commits/8028c08514a507e3de82a1260cbc79fe34095ccd, and I also bottomed out on the other thing I was confused on.
The test was changed to read this value from the config here c50b5473d74d6d2ef6f29eca68c65b4f61b3466d
I don't know why it needs so much overhead ๐คท but in any case, the point of this test isn't to test the normal NsJail OOM killer โ there are other tests for that.
@wookie184 Testing for inode limits (and having inode limits) sounds like a good idea. Do you mind writing up a new issue for that? I think that situation would also apply to our temporary file system feature.
GitHub Actions run 6008262501 failed.
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
For else I would agree but we explicitly check that "key" is present here, so these forms are not equivalent
GitHub Actions run 6009251864 failed.
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
Ahh I see what you mean now. I was supposed to change the elif to ann if.
The if block above returns, so the elif isn't needed
I had meant here that elif isn't needed, just an if is fine.
GitHub Actions run 6009947752 succeeded.
[python-discord/sir-robin] New review comment on pull request #90: Migrate from flake8/isort to ruff
I've just realised this file is for the old paste service anyway, which I'm going to delete in my next PR and it's entirely non-functional right now with the old paste service being offline
GitHub Actions run 6011339878 succeeded.
GitHub Actions run 6012446358 succeeded.
[python-discord/bot-core] New branch created: test-bases-in-bot-core
This PR migrates the test helpers from the bot repo into bot core, along with their tests.
[python-discord/sir-robin] branch deleted: use-ruff
[python-discord/sir-robin] New branch created: bump-bot-core
A better approach would be to bump bot core to 10.X and use the util from there [...]
Since I wanted to update bot-core anyway, I've done this change in https://github.com/python-discord/sir-robin/pull/91
[python-discord/snekbox] New branch created: enforce-filesize-limits
Connected!
Enforce a limit on file sizes when reading from tmpfs.
To be clear, follow_symlinks is the default, I just passed it to be more explicit since i'm commeting on it.
LGTM, works fine locally and new tests seem to be working fine.
GitHub Actions run 6015050971 succeeded.
Do we need to set --user here so that PYTHONUSERBASE is used by pip?
Yes, good catch. Also I think the env var needs to use export.
I think we still need --user here for Python to use PYTHONUSERBASE, unless installing with -m pip does something smarter by default?
find /lang/python -mindepth 1 -maxdepth 1 -type d -exec
PYTHONUSERBASE=/snekbox/user_base &&
{}/bin/python -m pip install --user -U
all looks good and works locally -- just needs the --user change for deps and should be good to go!
70d0e1a Install eval dependencies with --user & ensure ... - jb3
all looks good and works locally -- just needs the --user change for deps and should be good to go!
[python-discord/snekbox] branch deleted: feat/158/multi-version
fae8053 Remove explicit package versions from Dockerfile - MarkKoz
9b3f23b Use buildpack-deps as the builder base image - MarkKoz
0db60fc Install multiple Python versions in image - MarkKoz
a53e235 Use --link with COPY in Dockerfile - MarkKoz
e423b7c Remove leading empty strings from NsJail config... - MarkKoz
[python-discord/snekbox] New branch created: jb3/3.12-ignores
[python-discord/snekbox] New branch created: jb3/refactor-eval-deps
Also use a numpy release candidate to maintain numpy and scipy.
All dependencies have been tested to install correctly on 3.12rc1 within the snekbox container.
cd604fe Disable dependencies without wheels on 3.12 - jb3
[python-discord/snekbox] branch deleted: jb3/3.12-ignores
[python-discord/snekbox] branch deleted: jb3/refactor-eval-deps
Right now, our eval dependencies are pulled in using a script embedded within the deployment file, and all dependencies are listed there. This gets a bit messy the more dependencies we want to add, especially if we want to add version markers.
This PR splits out the dependencies into a new file under requirements/ and moves the dependency install process to it's own init container instead of being a task that executes within the snekbox container after it starts. This also allows for gre...
GitHub Actions run 6021132225 failed.
Description
Change the .rfc command to work in channels like #python-discussion
Reasoning
Currently, the .rfc command only works in #sir-lancebot-playground. However, the .rfc command should also be able to be used in other relevant channels like #python-discussion
Would you like to implement this yourself?
- [x] I'd like to implement this feature myself
- [x] Anyone can implement this feature
GitHub Actions run 6023335024 failed.
GitHub Actions run 6023797772 succeeded.
@SomeHybrid Please let us know if you want to implement this yourself so that we assign it to you.
@SomeHybrid Please let us know if you want to implement this yourself so that we assign it to you.
๐
GitHub Actions run 6024722007 succeeded.
Adding an inode limit would limit the number of files/directories that can exist in the tmpfs we use for file IO. Given we already have file size limits, a maximum number of files we'll read, and a timeout, it shouldn't be too important, but it may be worth putting a limit to be safe. Currently it seems to be limited by the cgroup memory limit using (allowing for about 50_000 files with the current config).
This can be done by passing the nr_inodes argument here:
https://github.com/pyt...
Great stuff, thanks for working on this
fae8053 Remove explicit package versions from Dockerfile - MarkKoz
9b3f23b Use buildpack-deps as the builder base image - MarkKoz
0db60fc Install multiple Python versions in image - MarkKoz
a53e235 Use --link with COPY in Dockerfile - MarkKoz
e423b7c Remove leading empty strings from NsJail config... - MarkKoz
[python-discord/snekbox] branch deleted: jb3/shared-mem
7c7d7e8 Test deployment init container in CI - ChrisLovering
[python-discord/snekbox] New branch created: test-init-container-in-CI
This runs the same command, with the same env vars, that the init container in deployment.yaml does, but in CI.
Doing this gives us more reassurance that merging a PR will deploy to prod.
[snekbox] Branch test-init-container-in-CI was force-pushed to `e7c0392`
[snekbox] Branch test-init-container-in-CI was force-pushed to `28e5725`
[snekbox] Branch test-init-container-in-CI was force-pushed to `3f5eb47`
[snekbox] Branch test-init-container-in-CI was force-pushed to `c178381`
[snekbox] Branch test-init-container-in-CI was force-pushed to `e7cc447`
[snekbox] Branch test-init-container-in-CI was force-pushed to `08a9156`
[snekbox] Branch test-init-container-in-CI was force-pushed to `818307f`
[python-discord/snekbox] New branch created: wookie184-fix-readme-link
Links to here https://github.com/python-discord/snekbox#memory-file-system, I assume it was just renamed at some point but this link wasn't updated.
[python-discord/snekbox] branch deleted: test-init-container-in-CI
[python-discord/snekbox] branch deleted: wookie184-fix-readme-link
bf7fb5d Make CI and deployment.yaml share the same depe... - ChrisLovering
[python-discord/snekbox] New branch created: share-deployment-dep-script-with-ci
[snekbox] Branch share-deployment-dep-script-with-ci was force-pushed to `4e58eb5`
[snekbox] Branch share-deployment-dep-script-with-ci was force-pushed to `3fc6442`
[snekbox] Branch share-deployment-dep-script-with-ci was force-pushed to `ddb35ad`
[snekbox] Branch share-deployment-dep-script-with-ci was force-pushed to `ac4f761`
[snekbox] Branch share-deployment-dep-script-with-ci was force-pushed to `9586c5b`
Would be good to add set -euo pipefail as sane defaults in case anything ever changes in this script
066ff15 Bump sentry-sdk from 1.29.2 to 1.30.0 (#2735) - dependabot[bot]
691bbe1 Bump sentry-sdk from 1.29.2 to 1.30.0 (#1354) - dependabot[bot]
Connected!
GitHub Actions run 6032866397 failed.
Connected!
GitHub Actions run 6032877876 failed.
GitHub Actions run 6032881092 was cancelled.
GitHub Actions run 6032872990 succeeded.
Connected!
Connected!
GitHub Actions run 6032917062 succeeded.
Good morning @shtlrs. Please accept this picture as a consolidation for waking you up this early.
It is my understanding that with the merge of https://github.com/python-discord/.github/pull/24 the fixup blocker should not pop up here. Or do we need to update something in this pull request?
Good morning @Xithrius. Do you want to take on this task still?
252c491 trigger the fixup workflow on the `pull_request... - shtlrs
[python-discord/site] New branch created: trigger-fixup-on-pr-target
b51eed2 Document Netlify static previews - jchristgit
[python-discord/site] New branch created: document-static-previews
GitHub Actions run 6034264506 failed.
Good morning @shtlrs. Please accept this picture as a consolidation for waking you up this early.
It is my understanding that with the merge of python-discord/.github#24 the fixup blocker should not pop up here. Or do we need to update something in this pull request?
Good morning @jchristgit , I accept the doggo...
GitHub Actions run 6034315146 failed.
252c491 trigger the fixup workflow on the pull_request... - shtlrs [416ebfa`](https://github.com/python-discord/site/commit/416ebfa620bba2de98f2fd530cd716d097186255) Merge pull request #1085 from python-discord/tr... - jchristgit
[python-discord/site] branch deleted: trigger-fixup-on-pr-target
GitHub Actions run 6034347386 was cancelled.
GitHub Actions run 6034424284 succeeded.
GitHub Actions run 6034500039 succeeded.
[snekbox] Branch share-deployment-dep-script-with-ci was force-pushed to `f637e54`
Added in https://github.com/python-discord/snekbox/pull/190/commits/b0180ee7cded3ca51ab832892ae162f13a0e1783 had to change it to run under bash for -o pipefail support.
I've also added a make target since I found myself copy-pasting from CI a lot while testing this.
GitHub Actions run 6036062404 succeeded.
Closes python-discord/meta#214
I'm not sure if having the for loop in the example is worth the additional vertical space, but I thought including some multiline input would be beneficial.
GitHub Actions run 6037214140 failed.
Nice, this is a big improvement
The
>>>or...at the start of some lines is the code input, and it indicates that you are in the Python REPL.
This sentence feels a bit clunky, maybe this would be better:
To enter the REPL, run `python` in the command line without any arguments. The `>>>` or `...` at the start of some lines are prompts to enter code, and indicate that you are in the Python REPL. Any other lines show the output of the code.
Also take a look at CI, looks like there's some trailing whitespace somewhere that needs removing
Also take a look at CI, looks like there's some trailing whitespace somewhere that needs removing
The trailing whitespace is after the empty ... and >>> lines, otherwise they won't get syntax highlighted in Discord
Markdown doesn't seem to have rendered as intended https://deploy-preview-1084--pydis-static.netlify.app/pages/guides/pydis-guides/contributing/site/#773httpsgithubcompython-discordsitepull773issuecomment-1257224147
GitHub Actions run 6037400447 failed.
Also take a look at CI, looks like there's some trailing whitespace somewhere that needs removing
The trailing whitespace is after the empty
...and>>>lines, otherwise they won't get syntax highlighted in Discord
Oh interesting, try changing the codeblock language to python-repl, seems like it doesn't need the space then.
Hmm it seems like python-repl isn't supported at all on android (works on desktop for me though)
Also take a look at CI, looks like there's some trailing whitespace somewhere that needs removing
The trailing whitespace is after the empty
...and>>>lines, otherwise they won't get syntax highlighted in DiscordOh interesting, try changing the codeblock language to
python-repl, seems like it doesn't need the space then.
That seems to work, thanks
```python-repl
This allows you to trim the whitespace from the ... and >>> lines, while retaining the highlighting.
GitHub Actions run 6037514329 succeeded.
I hate bad markdown implementations
I hate bad markdown implementations
I hate bad markdown implementations
I hate bad markdown implementations
I hate bad markdown implementations
GitHub Actions run 6037619499 succeeded.
Closes python-discord/meta#213
GitHub Actions run 6037789382 succeeded.
To enter the REPL, run `python` (`py` on Windows) in the command line without any arguments. The `>>>` or `...` at the start of some lines are prompts to enter code, and indicate that you are in the Python REPL. Any other lines show the output of the code.
Suggested by MoyenChat in [#community-meta](#community-meta message)
GitHub Actions run 6037855692 succeeded.
Connected!
The full stop here will appear by itself
Should move it to the previous line, or split somewhere on a single space so no newline is rendered.
Thanks.
at least the deploy preview decided to work for this PR
[python-discord/site] branch deleted: document-static-previews
Connected!
The uses of send_to_paste_service need to be changed now that it handles the errors that can be ranged (the old function worked by potentially returning None instead).
Also, it returns a PasteResponse now so you need .link to get the link from it rather than using the returned value directly
7303301 Make CI and deployment.yaml share the same depe... - ChrisLovering
[python-discord/snekbox] branch deleted: share-deployment-dep-script-with-ci
f166d32 fixup: handle errors that new send_to_paste_ser... - ChrisLovering
The uses of
send_to_paste_serviceneed to be changed now that it handles the errors that can be ranged (the old function worked by potentially returningNoneinstead).Also, it returns a
PasteResponsenow so you need.linkto get the link from it rather than using the returned value directly
https://github.com/python-discord/sir-robin/pull/91/commits/f166d325803f3c621807a3bbeade7ca106046c97
a5f9ca1 Include install eval deps in final image - ChrisLovering
[python-discord/snekbox] New branch created: include-install-script-in-final-image
GitHub Actions run 6041612966 succeeded.
Description
I have recently been using the .bm command and noticed when bookmarking codeblocks it doesnt provide a pastebin link with it. It would be a nice feature to add this.
Reasoning
Provides an easier way to share / copy the code you bookmarked.
Would you like to implement this yourself?
- [x] I'd like to implement this feature myself
- [ ] Anyone can implement this feature
GitHub Actions run 6041946698 succeeded.
ae18976 Include install eval deps in final image (#191) - ChrisLovering
[python-discord/snekbox] branch deleted: include-install-script-in-final-image
Proposed in python-discord/meta#217
My bad, I thought it was on the previous line because of line wrapping.
GitHub Actions run 6044450889 succeeded.
Relevant Issues
Closes #1353
Description
Used @whitelist_override(roles=(Roles.everyone,)) to allow the .rfc command in all channels
Did you:
- [x] Join the Python Discord Community?
- [x] Read all the comments in this template?
- [x] Ensure there is an issue open, or link relevant discord discussions?
- [x] Read and agree to the [contributing guidelines](https://pythondiscord.com/pages/contributing/contributing-guidelin...
GitHub Actions run 6045165242 succeeded.
This seems to be quite broken...?
The /teams/find?name=<team name> API endpoint doesn't handle dashes. If this command is invoked in a team channel with a multi-word team, eg. cool-kids, the CJ MGMT system will run a (case insensitive) DB query for cool-kids. Problem is that the team is stored in the DB with the name Cool Kids. The casing doesn't matter, but the space/dash difference does...
team_resp = await self.bot.code_jam_mgmt_api.get("teams/find", params={"name": ctx.channel.name})
The API seems to 404 because of this extra slash...
We should add an example here. How does SQL enforce data integrity? Which forms of bad data does it help against? For instance, in JSON (unless you write your own validation routine, which takes a lot of time and care), you can omit a key or set someone's age to "581 years" and it won't bat an eye. If you're unlucky, you will only catch it later when your app crashes. In an SQL database you would say age is a small integer and add a check constraint to ensure that age is between 0 and 120.
Thank you for the pull request.
Overall I am a fan of the format. However, given the audience I think we should expand a bit on the individual points and add examples to explain, for instance, why do I want data consistency, integrity, etc..
Especially in regard to the previous point we should explain the benefits for secondary indexes and their queries here.
I think we can expand on this a bit: how does horizontal scaling help SQL databases more than JSON? For instance, we could write that SQL databases can hold their indices and hot data in main memory allowing upgrading of main memory size for good performance gains, while JSON files have no built-in way to index data, so the main option you would have is loading the entire document into memory, which is a lot more inefficient.
One point we could add: with the default naive way of writing JSON (and I'm not aware of any trivial, more efficient alternatives), you need to read in and write out the entire JSON file every time you make a change. Grossly inefficient and prone to fatal problems when your app crashes at the wrong time.
[sir-robin] Branch add-ping-team-command was force-pushed to `0169ca7`
resolved in the forcepush. As you say, it would be nice to get a team via channel id and role id, since we store those too. One for next time I think
https://github.com/python-discord/sir-robin/compare/e42b09c0a8dfbb6a397ecfbc9201e663b66b0bc5..0169ca74bd9e1151f2b5b122cdf67287131c01bf
GitHub Actions run 6047455755 succeeded.
GitHub Actions run 6047761854 succeeded.
Connected!
The pastebin only supports storing pastes for up to 30 days, so i'm not sure how well it fits with the bookmark command which is intended to store things indefinitely.
GitHub Actions run 6049546151 failed.
From now on, let's exclusively test in production. It will reduce our time to deployment :1st_place_medal:
