Skip to content

Added Testing of assembly attributes #23

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

Merged
merged 5 commits into from
Jun 1, 2025

Conversation

smaillet
Copy link
Member

@smaillet smaillet commented Jun 1, 2025

Added Testing of assembly attributes

  • Updated build scripts to force a rebuild of all projects
    • The tests use nuget pkg resolution and would otherwise use whatever package was built last.
  • Added targets to PSSPROJ files to allow rebuilds to work
  • Marked IDE runs as inconclusive for packaged assembly validation.
    • Since tests resolve NUGET packages it isn't deterministic if the package was created via the IDE or a command line build.
    • IDE builds are determined by the presence of the environment variable "BuildTime".
      • This value is set by the build scripts for ALL of the builds so that all binaries produce the same version number for CI builds. (It is ignored for a release build)

* Updated build scripts to force a rebuild of all projects
    - The tests use nuget pkg resolution and would otherwise use whatever package was built last.
* Added targets to PSSPROJ files to allow rebuilds to work
* Marked IDE runs as in conclusive for packaged assembly validation.
    - Since tests resolve NUGET packages it isn't deterministic if the package was created via the IDE or a command line build.
    - IDE builds are determined by the presence of the environment variable "BuildTime".
        - This value is set by the build scripts for ALL of the builds so that all binaries produce the same version number for CI builds. (It is ignored for a release build)
Copy link

github-actions bot commented Jun 1, 2025

Test Results

28 tests  ±0   28 ✅ ±0   5s ⏱️ -1s
 2 suites ±0    0 💤 ±0 
 2 files   ±0    0 ❌ ±0 

Results for commit 9ecd69f. ± Comparison against base commit ca15d2f.

♻️ This comment has been updated with latest results.

smaillet added 4 commits June 1, 2025 09:01
…action that updates a PR comment needs the results.
* It was downright confusing and, obviously now, broke the automated builds
    - Now requires existence of a generated props file
* Moved creation of the generated props file to a distinct script to make it easy to generate once for IDE work.
    - Directory.Build.Targets contains a check for it and will create an error if not found with a message indicating what to do to resolve the problem.
* Added additional logging to build tasks to aid with diagnostics
    - These are now low priority messages so that don't normally appear in output
* Removed determination of build kind from tests as that's a build script only thing not needed in the tests now.
* Sadly the buildIndex from a time stamp is non-deterministic making it impossible to create tests with an exact match.
    - Tests would need to adjust to acount for "close enough"
    - or, the better answer, I think, is that a new deterministic computation method is needed.
@smaillet smaillet merged commit 7a40003 into UbiquityDotNET:develop Jun 1, 2025
3 checks passed
@smaillet smaillet deleted the TestAsmAttributes branch June 1, 2025 23:44
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.

1 participant