Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.8.0 #5733

Merged
merged 17 commits into from
Sep 3, 2024
Merged

Release 4.8.0 #5733

merged 17 commits into from
Sep 3, 2024

Conversation

MikaelMayer
Copy link
Member

@MikaelMayer MikaelMayer commented Aug 29, 2024

Description

Merging the release 4.8.0 branch into master It brings several modifications that were deemed necessary

  • Updated the doo files from the DafnyStandardLibraries,
  • Updated doo files and dtr files from the test suite
  • Renamed dfy files for externs so that they are in the same order and don't cause issue as a workaround for Topological order not computed correctly when multiple dfy files present in the command-line #5728 and updated README about the naming of those files
  • Added %rm %mv and %cp command which are used in tests but not available on every windows machine (mine included)
  • Added support for any exit code so that %rm won't fail if a file or a folder does not exist (which is the case the first time)
  • Added ability to run a command within a given folder as some commands would not run on my Windows.
  • Added -f option to cp and mv to be able to run the same test multiple times
  • Added missing sources to recompile multiple doo files in the test suite.

How has this been tested?

Tests are passing on the CI and previously offending tests are also passing on my Windows machine.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

Makefile Outdated Show resolved Hide resolved
@MikaelMayer MikaelMayer enabled auto-merge (squash) August 29, 2024 16:16
@MikaelMayer MikaelMayer removed the request for review from keyboardDrummer August 29, 2024 17:41
Copy link
Member

@atomb atomb left a comment

Choose a reason for hiding this comment

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

There's one exception that I'm not sure is cross-platform (though maybe it is?) and a couple of test failures. Otherwise, it looks good!

@@ -93,6 +93,9 @@ update-go-module:
update-runtime-dafny:
(cd "${DIR}"; cd Source/DafnyRuntime/DafnyRuntimeDafny; make update-go)

update-standard-libraries:
Copy link
Member

Choose a reason for hiding this comment

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

Good thing to add!

var exitCode = 1;
try {
exitCode = await operand.Execute(inputReader, outputWriter, errorWriter);
} catch (Win32Exception) {
Copy link
Member

Choose a reason for hiding this comment

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

I suspect this exception would be a different one on non-Windows platforms. Or is it used on all platforms in .NET?

Copy link
Member Author

Choose a reason for hiding this comment

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

Windows does not have the "rm" command so I'm not sure if the original returns an exception if the file does not exist or not.

Copy link
Member Author

Choose a reason for hiding this comment

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

Note: the code was working fine in other platforms without the try catch, so I'm not expecting this to break any other platform.

atomb
atomb previously approved these changes Aug 30, 2024
@ssomayyajula
Copy link
Contributor

ssomayyajula commented Sep 3, 2024

EDIT: piping the result of find through sort makes the standard lib target-specific Makefile work again.

@atomb LMK if this works for you

@MikaelMayer
Copy link
Member Author

Changes accepted.

@MikaelMayer MikaelMayer merged commit 24f8914 into master Sep 3, 2024
22 checks passed
@MikaelMayer MikaelMayer deleted the release-4.8.0 branch September 3, 2024 22:23
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.

3 participants