Skip to content

Conversation

@FoamyGuy
Copy link
Contributor

@FoamyGuy FoamyGuy commented Jan 2, 2025

@ladyada

Resolves: adafruit/CircuitPython_Community_Bundle#118

I tried to test this as best as possible, however all of it is kicked off by a higher level auto cron task that includes the releasing so I can only validate the smaller components easily.

I tested the updated list md generating code locally for both community bundle and adafruit bundle and the files seem good to me.

My understanding of the way the cron task works is the next run after this is merged will create and push circuitpython_community_auto_library_list.md into the Community bundle repo. That file will get updated each time the task runs with any changes to the bundle.

I made it a separate file with "auto" in the name because it compares to the existing content of the file and the format differs between the auto generated one and the manual one that exists in the community bundle. Once we have the content of this file we can paste it into circuitpython_community_library_list.md once replacing the manually written content and we can remove "auto" from the name of the file here at the same time to complete the transition fully.

This seemed like the safest way to migrate to the automated file to me so that we get a chance to look at the real generated list in the repo and verify it's good before making it automatically overwrite the old one.

)
)
release_required = True
if update_download_stats(bundle_path):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also removed this code that updates the pypi stats. We're no longer using the stats in the file used for meeting notes so this does not need to update any longer.

Copy link
Member

@tekktrik tekktrik Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't use this, we can probably remove the Google BigQuery task that occurs in retrieve_pypi_stats() that feeds into update_download_stats(). I don't think we're billed over it, but probably worth doing if we're not using the download stats :) It's attached to my account I believe so I can do that. Then we can clean up some of the Actions secrets and decouple adabot from BigQuery entirely.

Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok to me but tbh im not familiar

@FoamyGuy FoamyGuy merged commit 006e95e into adafruit:main Jan 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add auto-updating library list with library tally count

3 participants