Skip to content

Add fallback to 'lake env lean' when 'lake build' fails - #245

Open
alok wants to merge 3 commits into
mainfrom
push-tyunzqwsvssk
Open

Add fallback to 'lake env lean' when 'lake build' fails#245
alok wants to merge 3 commits into
mainfrom
push-tyunzqwsvssk

Conversation

@alok

@alok alok commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

This change modifies the Lean verification logic to automatically fall back to building individual files with 'lake env lean' when 'lake build' fails.

This change modifies the Lean verification logic to automatically fall back
to building individual files with 'lake env lean' when 'lake build' fails.

Changes:
- Modified verify_file() in language_tools.py to add fallback logic
- Updated standalone formatting scripts for consistency
- Tested and confirmed fallback works correctly

@TheodoreEhrenborg TheodoreEhrenborg 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.

Do we have results on how much the extra lean command slows down vericoder.py (hopefully not much for larger models)? In general I like having the fallback because it should save us from forgetting to add folders to the lakefile. But also we need APPS train by tomorrow so I want vericoder.py to run as fast as possible

Maybe we should just replace lake build with lake env lean in all cases, so there's no slowdown?

@alok

alok commented Sep 19, 2025 via email

Copy link
Copy Markdown
Contributor Author

@alok

alok commented Sep 19, 2025 via email

Copy link
Copy Markdown
Contributor Author

@alok alok closed this Sep 24, 2025
@TheodoreEhrenborg

Copy link
Copy Markdown
Contributor

This was a good idea---I've incorporated a modified version of it into my experiments branch, and I'll raise a PR for that eventually

@alok alok reopened this Sep 24, 2025
@alok

alok commented Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

may wanna use lake lean instead as quinn found import issues with lake env lean

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