Ejemplo n.º 1
0
        /// <inheritdoc/>
        public override void CacheMaterializationError(CacheMaterializationErrorEventData data)
        {
            var pathTable = m_scheduler.Context.PathTable;
            var pip       = m_scheduler.PipGraph.PipTable.HydratePip(data.PipId, Pips.PipQueryContext.CacheMaterializationError);

            string descriptionFailure = string.Join(
                Environment.NewLine,
                new[] { I($"Failed files to materialize:") }
                .Concat(data.FailedFiles.Select(f => I($"{f.Item1.Path.ToString(pathTable)} | Hash={f.Item2.ToString()} | ProducedBy={m_scheduler.GetProducerInfoForFailedMaterializeFile(f.Item1)}"))));

            Logger.Log.DetailedPipMaterializeDependenciesFromCacheFailure(
                m_loggingContext,
                pip.GetDescription(m_scheduler.Context),
                descriptionFailure);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Cache materialization error is reported
 /// </summary>
 public virtual void CacheMaterializationError(CacheMaterializationErrorEventData data)
 {
     ReportUnhandledEvent(data);
 }