Skip to content

Update Eskin and Bill Black#112

Open
zmoon wants to merge 17 commits into
mainfrom
fix
Open

Update Eskin and Bill Black#112
zmoon wants to merge 17 commits into
mainfrom
fix

Conversation

@zmoon

@zmoon zmoon commented Jul 3, 2026

Copy link
Copy Markdown
Owner
  • Update Eskin URLs
  • Extract tunes and groups from new Eskin tunebook websites
  • Update Bill Black alltunes URLs
  • Add retries for Eskin and Bill Black requests

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.01961% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.96%. Comparing base (cc31302) to head (c4223a7).

Files with missing lines Patch % Lines
pyabc2/sources/eskin.py 98.59% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
+ Coverage   94.56%   94.96%   +0.39%     
==========================================
  Files          16       16              
  Lines        1841     1925      +84     
==========================================
+ Hits         1741     1828      +87     
+ Misses        100       97       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

zmoon added 3 commits July 3, 2026 12:54
Getting 415 errors in the Python 3.10 CI run
(though the 3.14 is fine, and my 3.13 local testing too)
@zmoon zmoon marked this pull request as ready for review July 3, 2026 19:05
@zmoon zmoon requested a review from Copilot July 3, 2026 19:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Eskin and Bill Black source integrations to match upstream URL changes, adds extraction support for the newer Eskin tunebook HTML structure, and introduces retry-capable HTTP sessions to reduce flakiness when fetching remote data.

Changes:

  • Updated Eskin tunebook URL mappings and added a 2026-era HTML extractor with group parsing.
  • Updated Bill Black “alltunes” URLs/file naming and switched network calls to use a shared retrying session.
  • Adjusted tests, docs, and release notes to reflect the upstream changes.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/test_sources.py Switches tests to use module sessions (retry/UA) and updates expectations for new group/file listings.
pyproject.toml Adds urllib3 to the sources optional dependency set (used for Retry).
pyabc2/sources/eskin.py Updates Eskin URL keys, adds retrying session, and adds new HTML extraction for 2026 pages with fallback logic.
pyabc2/sources/bill_black.py Updates alltunes endpoints/filenames and adds retrying session used by the downloader.
pyabc2/sources/bill_black_tunefolders.py Reuses Bill Black session helper and updates referenced URLs in module docs.
docs/examples/sources.ipynb Updates example query to match new Eskin group naming.
docs/changes.md Adds an unreleased release-note entry for these source updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyabc2/sources/bill_black.py Outdated
Comment thread pyabc2/sources/bill_black.py
Comment thread pyabc2/sources/eskin.py
Comment thread pyabc2/sources/eskin.py Outdated
zmoon and others added 3 commits July 3, 2026 14:11
might as well

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
zmoon added 4 commits July 3, 2026 14:32
just got 415's again in a CI run
Eskin ended up making a CI run take 149m and still fail

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Comment thread pyabc2/sources/bill_black.py
Comment thread pyabc2/sources/eskin.py
Comment on lines +367 to +372
abc_lines = []
for line in abc_raw.splitlines():
line = line.strip()
if not line or line.startswith("%"):
continue
abc_lines.append(line)
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.

2 participants