You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update doo files without rebuilding to avoid Z3 timeout issues (#6337)
## Problem
During minor version patches, the current version bump process rebuilds
standard libraries with the new version. However, when the build machine
has a different version of Z3, the standard libraries sometimes timeout,
making the build process non-deterministic.
## Solution
This PR modifies the version bump script to update doo files without
rebuilding them:
1. **For standard library doo files**: Instead of running `make -C
Source/DafnyStandardLibraries update-binary`, the script now:
- Unzips each doo file (which are actually zip archives)
- Updates the `dafny_version` field in the `manifest.toml` file
- Rezips the file
2. **For test doo files**: Instead of rebuilding from source, the script
updates the version in the existing doo files using the same approach.
## Files Modified
- `Scripts/bump_version_number.js`: Added `updateDooVersion` function
and replaced rebuild logic
- `docs/dev/VERSIONBUMP.md`: Updated documentation to reflect the new
approach
## Testing
- Tested in test mode with version 4.10.2
- Verified that doo files are correctly updated with new version numbers
- All existing functionality for updating other version references
remains intact
## ⚠️ Important Note
**This PR was created using Amazon Q and requires careful review.**
## Benefits
- Makes version bumps more deterministic
- Avoids Z3 timeout issues on machines with different Z3 versions
- Faster version bump process (no compilation required)
- Maintains the same end result (updated version numbers in doo files)
0 commit comments