Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.safetynet_job.JobRun Class Reference
+ Collaboration diagram for testing.tools.safetynet_job.JobRun:

Public Member Functions

 __init__ (self, args, context)
 
 Run (self)
 

Public Attributes

 git = GitHelper()
 
 args = args
 
 context = context
 

Protected Member Functions

 _InitialRun (self)
 
 _IncrementalRun (self, last_revision_covered)
 
 _WriteRawJson (self, output_info)
 
 _BuildRunMetadata (self, revision_before, revision_after, comparison_performed)
 
 _WriteCheckpoint (self, checkpoint)
 

Detailed Description

A single run looking for regressions since the last one.

Definition at line 38 of file safetynet_job.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.safetynet_job.JobRun.__init__ ( self,
args,
context )
Constructor.

Args:
  args: Namespace with arguments passed to the script.
  context: JobContext for this run.

Definition at line 41 of file safetynet_job.py.

Member Function Documentation

◆ _BuildRunMetadata()

testing.tools.safetynet_job.JobRun._BuildRunMetadata ( self,
revision_before,
revision_after,
comparison_performed )
protected

Definition at line 176 of file safetynet_job.py.

References ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), and UntiedDocumentation.context.

Referenced by testing.tools.safetynet_job.JobRun._IncrementalRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _IncrementalRun()

testing.tools.safetynet_job.JobRun._IncrementalRun ( self,
last_revision_covered )
protected
Incremental run, compare against last checkpoint and update it.

Args:
  last_revision_covered: String with hash for last checkpoint.

Returns:
  Exit code for the script.

Definition at line 103 of file safetynet_job.py.

References testing.tools.safetynet_job.JobRun._BuildRunMetadata(), testing.tools.safetynet_job.JobRun._WriteCheckpoint(), testing.tools.safetynet_job.JobRun._WriteRawJson(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.

Referenced by testing.tools.safetynet_job.JobRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _InitialRun()

testing.tools.safetynet_job.JobRun._InitialRun ( self)
protected
Initial run, just write a checkpoint.

Returns:
  Exit code for the script.

Definition at line 87 of file safetynet_job.py.

References testing.tools.safetynet_job.JobRun._WriteCheckpoint(), testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.

Referenced by testing.tools.safetynet_job.JobRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _WriteCheckpoint()

testing.tools.safetynet_job.JobRun._WriteCheckpoint ( self,
checkpoint )
protected

Definition at line 185 of file safetynet_job.py.

References QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, and open().

Referenced by testing.tools.safetynet_job.JobRun._IncrementalRun(), and testing.tools.safetynet_job.JobRun._InitialRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _WriteRawJson()

testing.tools.safetynet_job.JobRun._WriteRawJson ( self,
output_info )
protected

Definition at line 171 of file safetynet_job.py.

References ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, and open().

Referenced by testing.tools.safetynet_job.JobRun._IncrementalRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Run()

testing.tools.safetynet_job.JobRun.Run ( self)
Searches for regressions.

Will only write a checkpoint when first run, and on all subsequent runs
a comparison is done against the last checkpoint.

Returns:
  Exit code for the script: 0 if no significant changes are found; 1 if
  there was an error in the comparison; 3 if there was a regression; 4 if
  there was an improvement and no regression.

Definition at line 52 of file safetynet_job.py.

References testing.tools.safetynet_job.JobRun._IncrementalRun(), testing.tools.safetynet_job.JobRun._InitialRun(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, testing.tools.safetynet_compare.CompareRun.git, testing.tools.safetynet_job.JobRun.git, and open().

+ Here is the call graph for this function:

Member Data Documentation

◆ args

◆ context

◆ git


The documentation for this class was generated from the following file: