Skip to content

#848 Tweak dependencies #853

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 7 commits into from
May 29, 2025

Conversation

thompson-tomo
Copy link
Contributor

Closes #848

@mtmk
Copy link
Member

mtmk commented May 12, 2025

thanks @thompson-tomo i like the idea. i must ask though with this change are the applications going to get a benefit as a result of this? what I mean is that, the STJ and SIOP packages will be upgraded by the sdk building them, if used by other packages or the application itself with higher versions. would we be breaking builds or exposing the applications to security issues if the build servers still running old sdks? i know it's a simple change but i want to make sure we cover everything so that we won't break existing builds in some fashion.

@thompson-tomo
Copy link
Contributor Author

thompson-tomo commented May 13, 2025

are the applications going to get a benefit as a result of this?.... exposing the applications to security issues if the build servers still running old sdks?

This depends on how the end application is packaged:

  • Self contained: if build server sdk is not maintained then yes risk is increased as the deployment bundles in the version provided by sdk. But the security risk overall is not significantly increased due to other security risks existing
  • framework dependent: security risks can be addressed by updating framework on target machine ie windows update. This is because the version provided by the framework is used

would we be breaking builds

Only scenario I can foresee is where another library/app targets net 6/7, uses a feature introduced in STJ 7/8 and doesn't have either an explicit or transitive dependency for a version of STJ which includes the necessary feature.

@thompson-tomo
Copy link
Contributor Author

Hopefully the build issue has been resolved with the latest changes.

@thompson-tomo
Copy link
Contributor Author

@mtmk any idea why package restore is only failing on 1 os. Maybe it needs to be re-triggered?

@mtmk
Copy link
Member

mtmk commented May 13, 2025

@mtmk any idea why package restore is only failing on 1 os. Maybe it needs to be re-triggered?

it's interesting it's only failing a couple of them. usually in these cases where there is an issue with build they all fail. kicked it again anyway

@thompson-tomo
Copy link
Contributor Author

thompson-tomo commented May 13, 2025

Agree @mtmk it seems very interesting and that the issue is infrastructure related given that the most recent run only failed 1 project which is now talking about an ssl verification issue. Can you give it another kick?

@mtmk
Copy link
Member

mtmk commented May 16, 2025

just kicked the build again. i'm guessing something funny going on with ci workers nuget sources then when they failed. let's see.

edit: ok good. all passed this time!

@mtmk
Copy link
Member

mtmk commented May 16, 2025

seeing these at the bottom of the diff tab. i wonder if that's a netstandard/ net6 issue

edit: hmm can't be netstandard. sounds like it's an AOT related warning.

image

@thompson-tomo
Copy link
Contributor Author

Ok based on dotnet/runtime#58770 they look to be false warnings. Let's see if the suggestion in that issue resolves the warnings. 🤞

@thompson-tomo
Copy link
Contributor Author

@mtmk did the last commit resolve the warnings?

@mtmk
Copy link
Member

mtmk commented May 23, 2025

@mtmk did the last commit resolve the warnings?

just kicked the checks

@thompson-tomo thompson-tomo requested a review from mtmk May 24, 2025 04:30
@mtmk
Copy link
Member

mtmk commented May 24, 2025

may i move this PR onto release/2.7?

@thompson-tomo
Copy link
Contributor Author

Yes that is fine with me.

@mtmk mtmk changed the base branch from main to release/2.7 May 24, 2025 12:46
@thompson-tomo thompson-tomo force-pushed the chore/#848_TweakDependencies branch from 88c7db1 to c18f7ec Compare May 25, 2025 02:13
@mtmk mtmk added this to the 2.7 milestone May 25, 2025
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
@thompson-tomo thompson-tomo force-pushed the chore/#848_TweakDependencies branch from c18f7ec to 2050d60 Compare May 25, 2025 23:56
Copy link
Member

@mtmk mtmk left a comment

Choose a reason for hiding this comment

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

LGTM thanks @thompson-tomo

@mtmk mtmk merged commit 0f7166c into nats-io:release/2.7 May 29, 2025
17 checks passed
@thompson-tomo thompson-tomo deleted the chore/#848_TweakDependencies branch May 30, 2025 00:18
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.

Optimise dependencies based on framework
2 participants