Closed KirillOsenkov closed 2 years ago
Y'all can assign me this one - just have to do the dunkin' after ⬆️
hey btw i've noticed this last week - does anyone else have issues with dependabot running on forks recently?https://github.com/MeikTranel/msbuild/pull/1/
@MeikTranel it has happened on mine before but I was assuming/hoping that was a weird vestige of me having tested it there before configuring it here. Can you check this setting on your fork? https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates#enabling-version-updates-on-forks
Is it possible this dependabot.csproj is responsible?
There's no disable there though.
Even under settings dependabot seems disabled:
Well good news is @KirillOsenkov was absolutely right - it really just was that TaskOutput that needed to be added to the filter.
On the other hand i'm having trouble writing a test for this one and i really think the binary log deserves some love there (only a single test confirming parallel and console loggers are roundtripping through binary logs - otherwise no test coverage for binary log contents).
I'd like some guidance regarding the BinaryLogs created by the TestEnvironment
/ ObjectModelHelper
in the following code:
could it be we need to set the verbosity to diagnostic inside BuildProjectExpectSuccess?
I already tried setting BinaryLogger.Verbosity
to Diagnostic
to no avail - is there another verbosity setting somewhere i'm missing? I'm also not sure which of the APIs i'm supposed to use for running a simple project build with a binarylogger attached that i can parse for events later on. Maybe @rainersigwald has some guidance?
There's no disable there though.
Even under settings dependabot seems disabled:
Asked internally, and got pointed to dependabot/dependabot-core#2804 which sure sounds related. The workaround suggested there is delete/recreate the fork, which is pretty heavyweight.
Jesus somebody is pretty petty under that issue - how did they manage to link 1500 PRs to that issue :D:D
Have you looked at the problem regarding tests and binary logs ? Wanted to give it another look after work today.
Make sure to expand the spoiler section: https://github.com/dotnet/msbuild/issues/7665#issuecomment-1144206481
I think i found a good solution to have some test coverage - sorry that it took so long - got super distracted and kind of forgot that i still had this laying around.
I'd expect this to embed
C:\temp\1.txt
into the binlog, but it doesn't:As a workaround to fix this, also need to add an explicit ItemGroup:
I think this line: https://github.com/dotnet/msbuild/blob/f1dae6ab690483458d37b8900f1d1e4a5fc72851/src/Build/Logging/BinaryLogger/BuildEventArgsWriter.cs#L521
should also allow for
TaskParameterMessageKind.TaskOutput