Skip to content

Merge pull request #92 from kzrnm/release/v8.0.0 #270

Merge pull request #92 from kzrnm/release/v8.0.0

Merge pull request #92 from kzrnm/release/v8.0.0 #270

Re-run triggered January 17, 2025 19:12
Status Failure
Total duration 3m 2s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
SourceExpander.CommandTests.DependencySampleLibrary: Test/SourceExpander.Console.Test/CommandTests/Dependency.cs#L95
FluentAssertions.Execution.AssertionFailedException : Expected dic {["ac-library-csharp>Attibutes/IsOperatorAttribute.cs"] = SourceExpander.DependencyResult { Dependencies = {empty}, FileName = "ac-library-csharp>Attibutes/IsOperatorAttribute.cs", TypeNames = {"AtCoder.IsOperatorAttribute"} }, ["ac-library-csharp>DataStructure/FenwickTree.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>Internal/InternalBit.cs", "ac-library-csharp>Operators/IOperators.cs"}, FileName = "ac-library-csharp>DataStructure/FenwickTree.cs", TypeNames = {"AtCoder.FenwickTree<T, TOp>"} }, ["ac-library-csharp>DataStructure/FenwickTree.GenericMath.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>Internal/InternalBit.cs"}, FileName = "ac-library-csharp>DataStructure/FenwickTree.GenericMath.cs", TypeNames = {"AtCoder.FenwickTree<T>"} }, ["ac-library-csharp>DataStructure/LazySegtree.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>DataStructure/Operators/ILazySegtreeOperator.cs", "ac-library-csharp>DataStructure/Operators/ISegtreeOperator.cs", "ac-library-csharp>Internal/InternalBit.cs"}, FileName = "ac-library-csharp>DataStructure/LazySegtree.cs", TypeNames = {"AtCoder.LazySegtree<TValue, F, TOp>"} }, ["ac-library-csharp>DataStructure/Operators/ILazySegtreeOperator.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>DataStructure/Operators/ISegtreeOperator.cs"}, FileName = "ac-library-csharp>DataStructure/Operators/ILazySegtreeOperator.cs", TypeNames = {"AtCoder.ILazySegtreeOperator<T, F>"} }, ["ac-library-csharp>DataStructure/Operators/ISegtreeOperator.cs"] = SourceExpander.DependencyResult { Dependencies = {empty}, FileName = "ac-library-csharp>DataStructure/Operators/ISegtreeOperator.cs", TypeNames = {"AtCoder.ISegtreeOperator<T>"} }, ["ac-library-csharp>DataStructure/Segtree.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>DataStructure/Operators/ISegtreeOperator.cs", "ac-library-csharp>Internal/InternalBit.cs"}, FileName = "ac-library-csharp>DataStructure/Segtree.cs", TypeNames = {"AtCoder.Segtree<TValue, TOp>"} }, ["ac-library-csharp>DataStructure/Wrappers/DynamicModIntFenwickTree.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>DataStructure/FenwickTree.cs", "ac-library-csharp>Math/ModInt/DynamicModInt.cs", "ac-library-csharp>Operators/DynamicModIntOperator.cs"}, FileName = "ac-library-csharp>DataStructure/Wrappers/DynamicModIntFenwickTree.cs", TypeNames = {"AtCoder.DynamicModIntFenwickTree<T>"} }, ["ac-library-csharp>DataStructure/Wrappers/IntFenwickTree.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>DataStructure/FenwickTree.cs", "ac-library-csharp>Operators/IntOperator.cs"}, FileName = "ac-library-csharp>DataStructure/Wrappers/IntFenwickTree.cs", TypeNames = {"AtCoder.IntFenwickTree"} }, ["ac-library-csharp>DataStructure/Wrappers/LongFenwickTree.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>DataStructure/FenwickTree.cs", "ac-library-csharp>Operators/LongOperator.cs"}, FileName = "ac-library-csharp>DataStructure/Wrappers/LongFenwickTree.cs", TypeNames = {"AtCoder.LongFenwickTree"} }, ["ac-library-csharp>DataStructure/Wrappers/StaticModIntFenwickTree.cs"] = SourceExpander.DependencyResult { Dependencies = {"ac-library-csharp>DataStructure/FenwickTree.cs", "ac-library-csharp>Math/ModInt/IModInterface.cs", "ac-library-csharp>Math/ModInt/StaticModInt.cs", "ac-library-csharp>Operators/StaticModIntOperator.cs"}, FileName = "ac-library-csharp>DataStructure/Wrappers/StaticModIntFenwickTree.cs", TypeNames = {"AtCoder.Sta
SourceExpander.CommandTests.ExpandAll: Test/SourceExpander.Console.Test/CommandTests/ExpandAll.cs#L28
FluentAssertions.Execution.AssertionFailedException : Expected dic[Path.Combine(TestUtil.SourceDirectory, "Sandbox", "SampleApp", "Program.cs")].ExpandedCode.ReplaceLineEndings() to be "using AtCoder; using SampleLibrary; using System; namespace SampleApp { class Program { static void Main() { var uf = new UnionFind(3); uf.Merge(1, 2); Console.WriteLine(uf.Leader(2)); } } } #region Expanded by https://github.com/kzrnm/SourceExpander namespace SampleLibrary { public partial class UnionFind : Dsu { public UnionFind(int n) : base(n) { Foo(); } void Foo() => Bar(); public bool Try(out string? text) { if (this.Size(0) == 1) { text = "Single"; return true; } text = null; return false; } partial void Bar(); } } #endregion Expanded by https://github.com/kzrnm/SourceExpander " with a length of 684, but "using SampleLibrary; using System; namespace SampleApp { class Program { static void Main() { var uf = new UnionFind(3); uf.Merge(1, 2); Console.WriteLine(uf.Leader(2)); } } } #region Expanded by https://github.com/kzrnm/SourceExpander #endregion Expanded by https://github.com/kzrnm/SourceExpander " has a length of 387, differs near "Sam" (index 6).
SourceExpander.CommandTests.Expand: Test/SourceExpander.Console.Test/CommandTests/Expand.cs#L16
FluentAssertions.Execution.AssertionFailedException : Expected sw.ToString().ReplaceLineEndings() to be "using AtCoder; using AtCoder.Internal; using SampleLibrary; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; namespace SampleApp { class Program { static void Main() { var uf = new UnionFind(3); uf.Merge(1, 2); Console.WriteLine(uf.Leader(2)); } } } #region Expanded by https://github.com/kzrnm/SourceExpander namespace AtCoder{public class Dsu{public readonly int[]_ps;public Dsu(int n){_ps=new int[n];_ps.AsSpan().Fill(-1);}[MethodImpl(256)]public int Merge(int a,int b){int x=Leader(a),y=Leader(b);if(x==y)return x;if(-_ps[x]<-_ps[y])(x,y)=(y,x);_ps[x]+=_ps[y];_ps[y]=x;return x;}[MethodImpl(256)]public bool Same(int a,int b){return Leader(a)==Leader(b);}[MethodImpl(256)]public int Leader(int a){if(_ps[a]<0)return a;while(0<=_ps[_ps[a]]){(a,_ps[a])=(_ps[a],_ps[_ps[a]]);}return _ps[a];}[MethodImpl(256)]public int Size(int a){return-_ps[Leader(a)];}[MethodImpl(256)]public int[][]Groups(){int n=_ps.Length;int[]leaderBuf=new int[n];int[]id=new int[n];var resultList=new SimpleList<int[]>(n);for(int i=0;i<leaderBuf.Length;i++){leaderBuf[i]=Leader(i);if(i==leaderBuf[i]){id[i]=resultList.Count;resultList.Add(new int[-_ps[i]]);}}var result=resultList.ToArray();int[]ind=new int[result.Length];for(int i=0;i<leaderBuf.Length;i++){var leaderID=id[leaderBuf[i]];result[leaderID][ind[leaderID]]=i;ind[leaderID]++;}return result;}}} namespace AtCoder.Internal{public class SimpleList<T>:IList<T>,IReadOnlyList<T>{public T[]data;private const int DefaultCapacity=2;public SimpleList(){data=new T[DefaultCapacity];}public SimpleList(int capacity){data=new T[Math.Max(capacity,DefaultCapacity)];}public SimpleList(IEnumerable<T>collection){if(collection is ICollection<T>col){data=new T[col.Count];col.CopyTo(data,0);Count=col.Count;}else{data=new T[DefaultCapacity];foreach(var item in collection)Add(item);}}[MethodImpl(256)]public Memory<T>AsMemory()=>new Memory<T>(data,0,Count);[MethodImpl(256)]public Span<T>AsSpan()=>new Span<T>(data,0,Count);public ref T this[int index]{[MethodImpl(256)]get{if((uint)index>=(uint)Count)ThrowIndexOutOfRangeException();return ref data[index];}}public int Count{get;private set;}[MethodImpl(256)]public void Add(T item){if((uint)Count>=(uint)data.Length)Array.Resize(ref data,data.Length<<1);data[Count++]=item;}[MethodImpl(256)]public void RemoveLast(){if( --Count<0)ThrowIndexOutOfRangeException();}[MethodImpl(256)]public void RemoveLast(int size){if((Count-=size)<0)ThrowIndexOutOfRangeException();}[MethodImpl(256)]public SimpleList<T>Reverse(){Array.Reverse(data,0,Count);return this;}[MethodImpl(256)]public SimpleList<T>Reverse(int index,int count){Array.Reverse(data,index,count);return this;}[MethodImpl(256)]public SimpleList<T>Sort(){Array.Sort(data,0,Count);return this;}[MethodImpl(256)]public SimpleList<T>Sort(IComparer<T>comparer){Array.Sort(data,0,Count,comparer);return this;}[MethodImpl(256)]public SimpleList<T>Sort(int index,int count,IComparer<T>comparer){Array.Sort(data,index,count,comparer);return this;}[MethodImpl(256)]public void Clear()=>Count=0;[MethodImpl(256)]public bool Contains(T item)=>IndexOf(item)>=0;[MethodImpl(256)]public int IndexOf(T item)=>Array.IndexOf(data,item,0,Count);[MethodImpl(256)]public void CopyTo(T[]array,int arrayIndex)=>Array.Copy(data,0,array,arrayIndex,Count);[MethodImpl(256)]public T[]ToArray()=>AsSpan().ToArray();bool ICollection<T>.IsReadOnly=>false;T IList<T>.this[int index]{get=>data[index];set=>data[index]=value;}T IReadOnlyList<T>.this[int index]{get=>data[index];}void IList<T>.Insert(int index,T item)=>throw new NotSupportedException();bool ICollection<T>.Remove(T item)=>throw new NotSupportedException();void IList<T>.RemoveAt(int index)=>throw new NotSupportedException();IEnumerator IEnumerable.GetEnumerator()=>((IEnumerable<T>)this).GetEnumerator();IEnumerator<T>IEnumerable<T>.GetEnumerator(){for(int i=0;i<Count;i
SourceExpander.CommandTests.ExpandAllWithStaticEmbedding: Test/SourceExpander.Console.Test/CommandTests/ExpandAll.cs#L86
FluentAssertions.Execution.AssertionFailedException : Expected dic[Path.Combine(TestUtil.SourceDirectory, "Sandbox", "SampleApp", "Program.cs")].ExpandedCode.ReplaceLineEndings() to be "using AtCoder; using SampleLibrary; using System; namespace SampleApp { class Program { static void Main() { var uf = new UnionFind(3); uf.Merge(1, 2); Console.WriteLine(uf.Leader(2)); } } } #region Expanded by https://github.com/kzrnm/SourceExpander /* 🥇 */ namespace SampleLibrary { public partial class UnionFind : Dsu { public UnionFind(int n) : base(n) { Foo(); } void Foo() => Bar(); public bool Try(out string? text) { if (this.Size(0) == 1) { text = "Single"; return true; } text = null; return false; } partial void Bar(); } } #endregion Expanded by https://github.com/kzrnm/SourceExpander " with a length of 694, but "using SampleLibrary; using System; namespace SampleApp { class Program { static void Main() { var uf = new UnionFind(3); uf.Merge(1, 2); Console.WriteLine(uf.Leader(2)); } } } #region Expanded by https://github.com/kzrnm/SourceExpander /* 🥇 */ #endregion Expanded by https://github.com/kzrnm/SourceExpander " has a length of 397, differs near "Sam" (index 6).
SourceExpander.CommandTests.ExpandAnotherProject: Test/SourceExpander.Console.Test/CommandTests/Expand.cs#L52
FluentAssertions.Execution.AssertionFailedException : Expected sw.ToString().ReplaceLineEndings() to be "using AtCoder; using SampleLibrary; using System; namespace SampleApp { class Program { static void Main() { var uf = new UnionFind(3); uf.Merge(1, 2); Console.WriteLine(uf.Leader(2)); } } } #region Expanded by https://github.com/kzrnm/SourceExpander namespace SampleLibrary { public partial class UnionFind : Dsu { public UnionFind(int n) : base(n) { Foo(); } void Foo() => Bar(); public bool Try(out string? text) { if (this.Size(0) == 1) { text = "Single"; return true; } text = null; return false; } partial void Bar(); } } #endregion Expanded by https://github.com/kzrnm/SourceExpander " with a length of 684, but "using SampleLibrary; using System; namespace SampleApp { class Program { static void Main() { var uf = new UnionFind(3); uf.Merge(1, 2); Console.WriteLine(uf.Leader(2)); } } } #region Expanded by https://github.com/kzrnm/SourceExpander #endregion Expanded by https://github.com/kzrnm/SourceExpander " has a length of 387, differs near "Sam" (index 6).
SourceExpander.CommandTests.DependencyFullFilePath: Test/SourceExpander.Console.Test/CommandTests/Dependency.cs#L129
FluentAssertions.Execution.AssertionFailedException : Expected dic[Path.Combine(TestUtil.SourceDirectory, "Sandbox", "SampleLibrary", "UnionFind.cs")].TypeNames to be a collection with 1 item(s), but found an empty collection. With configuration: - Use declared types and members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
SourceExpander.CommandTests.LibraryListSampleAppSkipAtcoder: Test/SourceExpander.Console.Test/CommandTests/LibraryList.cs#L17
FluentAssertions.Execution.AssertionFailedException : Expected sw.ToString().ReplaceLineEndings() to be "SampleLibrary,8.0.0.100 " with a length of 25, but "" has a length of 0, differs near "" (index 0).
SourceExpander.CommandTests.LibraryListSampleApp: Test/SourceExpander.Console.Test/CommandTests/LibraryList.cs#L31
FluentAssertions.Execution.AssertionFailedException : Expected sw.ToString().ReplaceLineEndings() to be "ac-library-csharp,7.0.0.100 SampleLibrary,8.0.0.100 " with a length of 54, but "ac-library-csharp,7.0.0.100 " has a length of 29, differs near " " (index 28).
SourceExpander.CommandTests.LibraryListSampleLibrary: Test/SourceExpander.Console.Test/CommandTests/LibraryList.cs#L46
FluentAssertions.Execution.AssertionFailedException : Expected sw.ToString().ReplaceLineEndings() to be "SampleLibrary,8.0.0.100 ac-library-csharp,7.0.0.100 " with a length of 54, but "ac-library-csharp,7.0.0.100 " has a length of 29, differs near "ac-" (index 0).
SourceExpander.CommandTests.DependencySampleAppSkipAtcoder: Test/SourceExpander.Console.Test/CommandTests/Dependency.cs#L23
FluentAssertions.Execution.AssertionFailedException : Expected dic {["D:\a\SourceExpander\SourceExpander\Test\SourceExpander.Console.Test\tools\obj\Debug\net8.0\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs"] = SourceExpander.DependencyResult { Dependencies = {empty}, FileName = "D:\a\SourceExpander\SourceExpander\Test\SourceExpander.Console.Test\tools\obj\Debug\net8.0\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs", TypeNames = {empty} }, ["D:\a\SourceExpander\SourceExpander\Test\SourceExpander.Console.Test\tools\obj\Debug\net8.0\SampleAppSkipAtcoder.AssemblyInfo.cs"] = SourceExpander.DependencyResult { Dependencies = {empty}, FileName = "D:\a\SourceExpander\SourceExpander\Test\SourceExpander.Console.Test\tools\obj\Debug\net8.0\SampleAppSkipAtcoder.AssemblyInfo.cs", TypeNames = {empty} }, ["D:\a\SourceExpander\SourceExpander\Source\Sandbox\SampleApp\Program2.cs"] = SourceExpander.DependencyResult { Dependencies = {empty}, FileName = "D:\a\SourceExpander\SourceExpander\Source\Sandbox\SampleApp\Program2.cs", TypeNames = {empty} }, ["D:\a\SourceExpander\SourceExpander\Source\Sandbox\SampleApp\Program.cs"] = SourceExpander.DependencyResult { Dependencies = {empty}, FileName = "D:\a\SourceExpander\SourceExpander\Source\Sandbox\SampleApp\Program.cs", TypeNames = {empty} } } to contain keys {"D:\a\SourceExpander\SourceExpander\Source\Sandbox\SampleApp\Program.cs", "D:\a\SourceExpander\SourceExpander\Source\Sandbox\SampleApp\Program2.cs", "SampleLibrary>ionFind.cs", "SampleLibrary>safeBlock.cs"}, but could not find {"SampleLibrary>ionFind.cs", "SampleLibrary>safeBlock.cs"}.
get-version / version
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
format / format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636