-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fixing build and tests on 1.10.x and dev #8686
Comments
SpecFlow test execution is broken at the moment since this commit: 0c34ca3 (that fixes #8445 with PR #8446).
#5490 and #7785 are about the same error, but in a different situation. The suggested fix was related to file access permissions, which is not the problem here (I tested the compiled Spec test app from IIS). Any suggestions? |
Looks like |
Yeah, I got as far, and my guess would be that the HttpContext is the underlying problem. I tried wrapping it in Lazy, but that doesn't help (because work context is used during shell activation, so very early on). |
Working on this and #8683 in parallel to validate results in GHA - so far unit tests are all fixed where necessary and each one is passing. Continuing with the SpecFlow test execution issue mentioned above. |
I've made good progress over the past few days and the build (including static Razor compilation) is completely warning-free + managed to fix all the failing tests (due to breaking changes in the code in recent years) except for one: The problem arises when adding a new culture and selecting it as the site culture through the Any ideas why signals/caching could be different when running the application through NUnit? CC @sebastienros |
No idea |
I've updated the issue description with the action plan to get 1.10.x and dev back into shape and the first step is to review and merge #8687. BTW all the unit and SpecFlow tests are passing! https://github.com/OrchardCMS/Orchard/actions/runs/5092692925/jobs/9154372082 |
If running Orchard.Framework.Tests in VS, it still gets 27 Failed ... |
@lbcsy on which branch? |
I tried dev as I thought you were referring to dev in your step 3. Good to know dev will be fixed soon. |
Today I tried 1.10x, it has 7 failed tests here, they are all in DateFormatterTests, for example: FormatDateTimeTest03 Message: Stack Trace: Others are:
|
Yeah, I've got the same locally - I couldn't find a fix so far, but it's almost certainly down to culture / date formatting settings, so I just deferred to the GitHub Actions execution, which is successful. |
@sebastienros after our discussion yesterday, I merged in #8685, then I made some further updates to #8686 and squash-merged that, so to sum up this journey:
|
When DateTime.Parse is used, specify |
Steps:
1.10.x
:PR 8686: Fixing build and tests on 1.10.x #8687 (
issue/8686
branch) is to be merged first. When that happens,1.10.x
is fully stabilized, but this issue shouldn't be resolved yet.1.10.x
intodev
:Then merge
1.10.x
intoissue/8684
(issue Merge 1.10.x into dev #8684, PR 8684: Merge 1.10.x into dev #8685), validate that everything's working and then merge that PR (which shows the diff between the two branches). At this pointdev
is partially stabilized.dev
:Merge
dev
intoissue/8686-dev
(PR 8686: Fixing build and tests on dev #8695), validate that everything's working and then merge that PR. At this point,dev
is fully stabilized and this issue can be resolved.The text was updated successfully, but these errors were encountered: