Software version admission control method and device, electronic equipment and storage medium

By using software version access control methods, version approval and verification are automated, solving the problem of reliance on manual operation in traditional technologies, improving the efficiency and accuracy of version approval, and ensuring the integrity and consistency of version content.

CN123137704APending Publication Date: 2026-11-20CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611280340.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Traditional software version approval and verification technologies rely heavily on manual operation, resulting in low version approval efficiency, difficulty in accurately verifying the completeness and validity of version content, and difficulty in tracing the approval and verification process.

Method used

A software version access control method is provided, which receives version access requests, performs identity authentication, filters target versions, obtains version metadata, change information and dependency information, performs integrity verification and consistency verification, combines content integrity verification, digital signature verification and version difference analysis, performs functional testing and performance testing, and determines whether the version meets the access conditions.

Benefits of technology

It has achieved automated control of the software version access process, reduced data omissions and inconsistencies caused by manual approval, and improved the accuracy, reliability and traceability of version access judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137704A_ABST
    Figure CN123137704A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of software development and operation and maintenance, can be applied to the field of financial technology / digital medical treatment, and discloses a software version access control method and device, an electronic device and a storage medium. The method comprises the following steps: receiving a version access request, including a target system identifier and user identity information; performing authentication according to the user identity information, obtaining a to-be-approved version from a version management system; screening a target version according to the target system identifier, obtaining version metadata, change information, dependency information and verification data; performing integrity and consistency verification on the data to obtain an approval verification result; performing content integrity verification, digital signature verification and version difference analysis on the target version to obtain a first verification result; performing function and performance tests in a running environment to obtain a second verification result; judging whether the target version meets the access conditions according to the verification and verification results, and updating the access state. The method improves the accuracy and reliability of software version access judgment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software development and operation and maintenance technology, and can be applied to the fields of financial technology / digital healthcare, and in particular to a software version access control method, device, electronic device and storage medium. Background Technology

[0002] As software systems iterate, version releases typically involve multiple service modules, configuration files, database structures, interface rules, and runtime environments. Before release, version information, changes, dependencies, test results, and security risks must be reviewed. Currently, version approval and verification processes largely rely on reviewers examining relevant materials across different development, testing, and release platforms, then making approval decisions based on personal experience. In the fintech field, payment, transaction, accounting, and risk control systems often have complex call relationships; a version change in one module can impact multiple business chains. In digital healthcare, updates to electronic medical records, medical imaging, and assisted diagnostic systems may involve changes in data formats, interface protocols, model parameters, and runtime environments. When multiple systems iterate simultaneously, the number of versions is large, or release times are concentrated, reviewers struggle to promptly and completely identify the relationships between versions, the actual scope of changes, and potential impacts. This can lead to insufficient version information verification, omissions of dependencies, undetected abnormal changes, or the incorrect release of problematic versions. Furthermore, different reviewers may have differing understandings of approval standards and verification requirements, resulting in inconsistent review results for the same type of version. Existing approval documents, verification results, and version release records may be scattered across different systems or documents, making it difficult to form a complete, continuous, and corresponding review record. When anomalies occur after a version release, relevant personnel often find it difficult to promptly determine the information on which the approval was based, the specific changes in the version, and the stage at which the anomaly occurred, increasing the difficulty of problem localization and accountability. Summary of the Invention

[0003] The main technical problem addressed by the implementation method of this application is that traditional software version approval and verification technologies rely heavily on manual operation, have low version approval efficiency, make it difficult to accurately verify the completeness and validity of version content, and make the approval and verification process difficult to trace.

[0004] To address the aforementioned technical problems, the first technical solution adopted in this application is: providing a software version access control method, comprising: receiving a version access request, the version access request including a target system identifier and user identity information; performing identity authentication based on the user identity information and obtaining a set of candidate versions in a pending approval state from a version management system; filtering a target version from the candidate version set based on the target system identifier and obtaining version metadata, change information, dependency information, and version verification data corresponding to the target version; performing integrity verification and consistency verification on the version metadata, change information, dependency information, and version verification data to obtain an approval verification result; performing content integrity verification, digital signature verification, and version difference analysis on the target version to obtain a first version verification result; performing functional testing and performance testing on the target version in a preset operating environment to obtain a second version verification result; determining whether the target version meets preset access conditions based on the approval verification result, the first version verification result, and the second version verification result, and updating the access status of the target version based on the determination result.

[0005] To address the aforementioned technical problems, the second technical solution adopted in this application is: providing a software version access control device, comprising: an access request receiving module, configured to receive a version access request, the version access request including a target system identifier and user identity information; a user identity authentication module, configured to perform identity authentication based on the user identity information and obtain a set of candidate versions in a pending approval state from a version management system; a target version filtering module, configured to filter a target version from the candidate version set based on the target system identifier and obtain version metadata, change information, dependency information, and version verification data corresponding to the target version; and a version data verification module, configured to verify the version data. The system performs integrity and consistency verification on the version metadata, change information, dependency information, and version verification data to obtain the approval verification result; the version content verification module performs content integrity verification, digital signature verification, and version difference analysis on the target version to obtain the first version verification result; the version operation testing module performs functional and performance testing on the target version in a preset operating environment to obtain the second version verification result; and the access status control module determines whether the target version meets the preset access conditions based on the approval verification result, the first version verification result, and the second version verification result, and updates the access status of the target version based on the determination result.

[0006] To solve the above-mentioned technical problems, the third technical solution adopted in the embodiments of this application is: to provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the software version access control method as described above.

[0007] To solve the above-mentioned technical problems, the fourth technical solution adopted in the embodiments of this application is: to provide a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by an electronic device, the electronic device executes the software version access control method as described above.

[0008] Unlike related technologies, this application authenticates the version to be approved and screens the target version, ensuring that the version access processing object corresponds to the current business scope and access permissions. By verifying the integrity and consistency of version metadata, change information, dependency information, and version verification data, it can identify issues such as missing version information, abnormal data formats, and inconsistent dependencies. Furthermore, by combining content integrity verification, digital signature verification, and version difference analysis, it verifies the content integrity, source credibility, and actual change scope of the target version, and uses functional and performance testing to determine the target version's operational status in a preset operating environment. Finally, based on the results of all verifications, it uniformly determines whether the target version meets the access conditions, achieving automated control of the software version access process, reducing data omissions, version mismatches, and inconsistencies caused by manual approval, and improving the accuracy, reliability, and traceability of software version access judgments. Attached Figure Description

[0009] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0010] Figure 1 This is a schematic diagram of the operating environment of the software version access control method provided in the embodiments of this application.

[0011] Figure 2 This is a schematic diagram of the execution flow of the software version access control method provided in the embodiments of this application.

[0012] Figure 3 This is a schematic diagram of the execution flow of obtaining the first version verification result in the software version access control method provided in this application embodiment.

[0013] Figure 4 This is a schematic diagram of the execution flow for generating the second version verification result in the software version access control method provided in this application embodiment.

[0014] Figure 5 This is a schematic diagram of the system structure of the software version access control device provided in the embodiments of this application.

[0015] Figure 6 This is a schematic diagram of the hardware structure of the electronic device that implements the software version access control method provided in the embodiments of this application. Detailed Implementation

[0016] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. Software tools, components, or servers not belonging to this company that appear in the embodiments of this application are merely illustrative examples and do not represent actual use.

[0017] It should be noted that, unless otherwise specified, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device schematic diagram or the order in the flowchart.

[0018] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items.

[0019] To facilitate understanding of this embodiment, a software version access control method disclosed in this application will first be described in detail. Please refer to [link to relevant documentation]. Figure 1 , Figure 1 This is a schematic diagram of the operating environment of the software version access control method provided in the embodiments of this application, such as... Figure 1 As shown, the execution subject of the software version access control method provided in this application embodiment is generally an electronic device with a certain computing power, such as a computer device. In some possible implementations, this software version access control method can be implemented by the processor calling computer-readable instructions stored in the memory. Figure 1The computer equipment mentioned can be a server. A server can be a standalone server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. This can be understood as... Figure 1 The number of computer devices shown is merely illustrative and can be expanded in any number according to actual needs.

[0020] Please continue reading. Figure 2 , Figure 2 This is a schematic diagram of the execution flow of the software version access control method provided in the embodiments of this application, as shown below. Figure 2 As shown, the process includes steps S1 to S7.

[0021] S1. Receive version access request. The version access request includes the target system identifier and user identity information.

[0022] Specifically, version access requests are used to trigger software versions to enter the approval and verification process. The target system identifier represents the business object or application scope to which the version to be released belongs, and the user identity information represents the identity attributes and access permissions of the request initiator. Upon receiving a version access request, the request message can be parsed, formatted, and its source verified. The target system identifier and user identity information can be extracted from the request message, and a relationship can be established between the target system identifier, user identity information, and this access task. Using the target system identifier as the basis for version filtering can determine the scope of subsequent processing when multiple business applications have versions awaiting approval simultaneously, avoiding the mixing of version data from different business applications. Using user identity information as the basis for authentication can determine whether the request initiator has the corresponding operational permissions before performing version queries, approval verification, and access status updates.

[0023] In fintech scenarios, business applications such as payment, clearing, credit granting, and risk control may submit version update requests simultaneously. The transaction chain, accounting chain, and risk control chain can be distinguished by different target system identifiers, and the corresponding operation permissions of developers, testers, or approvers can be determined based on user identity information.

[0024] In digital healthcare scenarios, business applications such as electronic medical records, medical imaging, assisted diagnosis, and data exchange may generate version updates. The scope of medical business to which the version to be processed belongs can be limited based on the target system identifier, and access and operation of version information by different positions can be controlled in combination with user identity information.

[0025] By pre-determining the business scope and requesting entity of the admission task, a clear processing basis can be provided for subsequent version screening, data verification and admission determination, and the probability of version mismatch and unauthorized operation can be reduced.

[0026] S2. Perform identity authentication based on user identity information and obtain a set of candidate versions in the pending approval state from the version management system.

[0027] Specifically, user identity information is used to characterize the identity attributes of the requester initiating the version access request, and identity authentication is used to confirm whether there is a corresponding relationship between the requester and the pre-registered user identity. The candidate version set is a data set consisting of one or more software versions in the pending approval state, which can serve as the processing scope for subsequent target version screening, version data verification, and version validation. Since the version management system may store version content, approval records, and release status corresponding to multiple business applications, user identity authentication needs to be completed before reading the version to be approved, and the range of versions allowed to be accessed needs to be determined based on the identity authentication result. During the identity authentication process, the original identity authentication data is not directly used for remote matching. Instead, the identity authentication data is converted into a fixed-length identity authentication digest, and then the correspondence between the identity authentication digest and the pre-stored authentication information is established using the user identifier. After successful identity authentication, a subsequent access connection is established using an identity authentication token with a valid period and access permissions, and a request for the version to be approved is submitted based on the identity authentication token, thereby obtaining the candidate version set corresponding to the current access permissions. The above processing enables user identity authentication, access permission confirmation, and candidate version acquisition to form a continuous processing chain, providing a clear data range for subsequent screening of target versions according to the target system identifier.

[0028] As an optional implementation, the process of identity authentication and obtaining the candidate version set in step S2 above may also specifically include the following steps S21 to S23.

[0029] S21. Perform a hash operation on the authentication data in the user's identity information to obtain the authentication digest.

[0030] The authentication data is used to prove a user's identity and may include the user's password, access credentials, or a sequence of authentication characters generated by the authentication terminal. The authentication digest is a fixed-length data obtained by performing a hash operation on the authentication data. The hash operation maps authentication data of different lengths to a digest value of a preset length, making it difficult to recover the original authentication data from the digest value. Before performing the hash operation, the authentication data can be formatted according to a preset character encoding method, and character case, leading and trailing spaces, and special character encoding can be standardized to avoid different digests from the same authentication data due to different encoding methods. Subsequently, MD5, SHA-256, or other hash algorithms can be used to operate on the standardized authentication data. To reduce the probability of the same authentication data producing the same digest, the authentication data can be combined with a preset random salt value, and then the combination result can be hashed. The authentication digest is used to replace the original authentication data in subsequent identity matching; the original authentication data is no longer transmitted as part of the remote authentication request after the hash operation is completed.

[0031] S22. Send the identity authentication digest and user identifier to the authentication server for identity matching and verification.

[0032] The user identifier is used to distinguish users operating in different versions and can be a username, user number, account identifier, or other data that can uniquely identify the user. Identity matching verification is used to determine whether the currently received identity authentication digest matches the reference authentication digest corresponding to the user identifier. When sending the identity authentication digest and user identifier, they can be encapsulated into an identity authentication request according to a preset interface protocol and sent to the authentication server via an encrypted communication connection. The identity authentication request can also include a request timestamp, request sequence number, or random number to distinguish different authentication requests and determine whether the authentication request is within a valid time range. The authentication server queries the corresponding reference authentication digest based on the user identifier and processes the reference identity authentication data according to the same hash rule as in step S21, or directly reads a pre-stored reference authentication digest. Subsequently, the received identity authentication digest is matched with the reference authentication digest. When the two digests meet the preset matching conditions, the identity matching verification is deemed successful. When the two digests do not meet the preset matching conditions, the identity matching verification is deemed unsuccessful, and the current version access request is rejected. The authentication server can also record the user identifier, authentication time, authentication result, and request source to form a corresponding identity authentication record.

[0033] S23. If the identity matching verification is successful, receive the identity authentication token generated by the authentication server and access the version management system based on the identity authentication token.

[0034] The authentication token is an access credential generated by the authentication server after successful identity verification. It represents that the user's identity has been authenticated and limits the validity period and scope of subsequent access operations. The authentication token may include token data such as user identifier, token generation time, token expiration time, and version access permissions. The token data can be signed or digested to verify whether the authentication token has been modified when an access request is received. After receiving the authentication token, it can be stored in a temporary storage area and added to the request header or authentication field of subsequent access requests. Upon receiving an access request, the version management system verifies the validity, integrity, validity period, and access permissions of the authentication token. When the authentication token passes verification, it performs a pending version query based on the permission scope corresponding to the token, reads version records with a pending status field, and organizes these records into a candidate version set. When the authentication token expires, is modified, or lacks the corresponding access permissions, the candidate version set is rejected, and a corresponding access exception record is generated.

[0035] As an example, in a fintech scenario, payment, clearing, and risk control services may each have software versions awaiting approval. Version control personnel input user identifiers and authentication data, normalize and hash the authentication data to obtain an authentication digest, and send the digest and user identifier to the authentication server. The authentication server, after matching, generates an authentication token that restricts access to payment and risk control services. The version management system returns the version records awaiting approval within the corresponding permission scope based on the authentication token, excluding versions outside these service scopes. In a digital healthcare scenario, electronic medical records, medical imaging, and assisted diagnostic services may be maintained by different personnel. The authentication server matches the maintenance personnel's user identifier and authentication digest, generating an authentication token that restricts the scope of the corresponding healthcare service. After querying for pending versions based on the authentication token, a set of candidate versions for electronic medical records or medical imaging services can be obtained, and this set is provided to the subsequent target version selection process.

[0036] Through the above steps S21 to S23, user identity matching can be completed without directly transmitting the original identity authentication data, and the access scope of the version to be approved can be limited by the identity authentication token. This ensures that the candidate version acquisition process corresponds to the user's identity and access permissions, reduces unauthorized version access and the mixing of versions from different business scopes into the candidate version set, and provides a reliable version data foundation for subsequent target version screening and version access verification.

[0037] S3. Based on the target system identifier, filter the target version from the candidate version set and obtain the version metadata, change information, dependency information and version verification data corresponding to the target version.

[0038] Specifically, the candidate version set may contain software versions corresponding to different business applications, service modules, and release batches. Therefore, it is necessary to determine the actual processing object of this version access process based on the target system identifier. The target system identifier is an identifier used to uniquely represent the target business application or target service scope. It can be formed by application number, service number, project number, namespace identifier, or a combination of multiple identifier fields. The version manifest file is a structured description file generated or submitted along with the software version. It is used to record the correspondence between version content and its corresponding business object. It can also record version build information, component composition, and associated resources. By parsing the version manifest file corresponding to the candidate version, the system ownership identifier can be extracted from the structured data carried by the candidate version itself. Then, the system ownership identifier is matched with the target system identifier in the version access request, thereby determining the target version corresponding to the current access task among multiple versions pending approval. After determining the target version, the corresponding approval verification rules and version verification rules are loaded according to the target system identifier, so that subsequent data verification, content verification, difference analysis, and operation testing can be executed according to the rules corresponding to the business scope to which the target version belongs. The approval and verification rules mainly define the field structure, data format, and association constraints that version data must meet. Version verification rules mainly define the version content, digital signature, version differences, and verification items and judgment conditions corresponding to the runtime tests. Establishing a link between the target version and the corresponding processing rules through the target system identifier can avoid mismatches between the versions awaiting approval and the verification rules for different business applications, and provide a consistent processing basis for the generation of subsequent approval and verification results and version verification results.

[0039] As an optional implementation, the process of filtering the target version and loading the corresponding rules in step S3 above may also specifically include the following steps S31 to S33.

[0040] S31. Parse the version list file corresponding to each candidate version to obtain the system affiliation identifier of each candidate version.

[0041] The version manifest file describes the composition and ownership structure of candidate versions and can be in JSON, XML, YAML, or other structured file formats. The version manifest file can be automatically generated during the version build phase based on build configuration, or it can be generated during the version commit phase based on a preset manifest template. The version manifest file can include a system ownership field, which records the application ID, service ID, project ID, or namespace identifier corresponding to the candidate version. When parsing the version manifest file, the file format and character encoding are first identified, and then manifest nodes, attribute fields, or key-value pairs are read according to the corresponding parsing rules. For version manifest files with a nested structure, the system ownership field can be located according to the preset field path, and the corresponding field value can be extracted.

[0042] Furthermore, before extracting the system attribution identifier, structural validation and field normalization can be performed on the version manifest file. Structural validation determines whether the version manifest file conforms to a preset manifest pattern, such as checking the existence of necessary nodes, the correctness of field hierarchy, and the compliance of field data types. Field normalization unifies the field names and formats generated by different version build tools, for example, mapping fields with the same attribution semantics to a unified system attribution field. For system attribution fields containing prefixes, suffixes, version environment tags, or region tags, segmentation can be performed according to preset identifier parsing rules to extract the identifier portion that represents the attribution relationship of business applications. After parsing, a mapping relationship between candidate version identifiers and system attribution identifiers can be established, providing structured input for subsequent matching processing.

[0043] When a version manifest file is missing, its structure does not conform to the preset manifest pattern, or a valid system attribution identifier is not parsed, the corresponding candidate version can be marked as a manifest parsing error, and the candidate version with manifest parsing error will not be used as the target version for the time being. Manifest parsing error information can include the error version identifier, error field path, and error type, which are used for subsequent error logging and manual verification.

[0044] S32. Match the system ownership identifier with the target system identifier, and determine the candidate version that matches successfully as the target version.

[0045] The system attribution identifier represents the actual business application or service scope to which the candidate version belongs, while the target system identifier represents the business processing scope specified by the current version's admission request. Identifier matching is used to determine whether the attribution relationship of the candidate version is consistent with the current admission task. Before matching, the system attribution identifier and the target system identifier can be standardized according to unified identifier encoding rules, such as unifying character case, separators, encoding length, and hierarchical expression, to reduce the impact of identifier format differences on the matching results.

[0046] Identifier matching can employ exact matching, mapping matching, or hierarchical matching. Exact matching determines whether the system's attribution identifier and the target system's identifier are completely identical; this is suitable when one version corresponds to one independent business application. Mapping matching uses a pre-configured identifier mapping table to convert historical identifiers, alias identifiers, or identifiers used on different platforms into a unified identifier before matching. Hierarchical matching is suitable when a target business application includes multiple service modules; it can parse the application layer, service layer, and component layer from the target system identifier and the system's attribution identifier, and determine whether the candidate version belongs to the hierarchical range defined by the target system identifier.

[0047] When a system ownership identifier successfully matches a target system identifier, the corresponding candidate version is designated as the target version. When multiple candidate versions match successfully, one or more target versions can be determined based on version status, submission time, release batch, or version sequence, and a processing order can be established among the target versions. When none of the candidate version's system ownership identifier matches a target system identifier, a version matching exception result can be generated, and subsequent verification processing of the current access task can be terminated to prevent software versions that do not belong to the current business scope from entering the subsequent verification process.

[0048] S33. Based on the target system identifier, load the approval verification rules and version verification rules corresponding to the target version.

[0049] The approval and verification rules are a set of rules used to standardize the processing methods for version metadata, change information, dependency information, and version verification data. These rules may include field mapping rules, mandatory field constraints, format constraints, value range constraints, and data association constraints. The version verification rules are a set of rules used to standardize the verification items and verification judgment methods for the target version. These rules may include content digest algorithms, methods for obtaining reference content digests, digital signature verification parameters, historical version selection conditions, version difference judgment conditions, test environment configuration, and performance benchmarks.

[0050] Approval verification rules and version verification rules can be pre-stored in the rule base, with each configured with a rule identifier, applicable system identifier, rule version number, activation status, and effective time. When loading a rule, the system can query the rule record matching the applicable system identifier based on the target system identifier, and select the rule version that is in an activated state and whose effective time covers the execution time of the current access task from the matching rule record. To ensure that all processing steps within the same access task use consistent rules, the approval verification rule version number and version verification rule version number can be recorded after the rule is loaded, and the loaded rule versions should remain unchanged until the current access task ends.

[0051] For target versions comprising multiple software components, component-level extended rules can be loaded based on the component identifiers of each software component, building upon the base rules corresponding to the target system identifier. For example, different components can correspond to different version content formats, signature verification methods, difference comparison ranges, or performance benchmarks. After loading, the relationships between the target version, approval verification rules, and version verification rules can be established and written into the processing context of the current version access task. This enables subsequent integrity verification, consistency verification, content integrity verification, digital signature verification, version difference analysis, and runtime testing to invoke the corresponding rules.

[0052] As an example, in a fintech scenario, the candidate version set can simultaneously include versions awaiting approval for payment services, clearing services, and risk control services. After parsing the version list file for each candidate version, different system affiliation identifiers can be obtained. When the target system identifier is the payment service identifier, the candidate version belonging to the payment service is determined as the target version, and the corresponding approval verification rules and version verification rules for the payment service are loaded. The rules corresponding to the payment service can limit the verification methods for the association between transaction interface changes and dependent services, and configure performance benchmarks corresponding to transaction response time and concurrent processing capabilities.

[0053] In digital healthcare scenarios, the candidate version set can simultaneously include versions of electronic medical records, medical imaging, and assisted diagnostic applications awaiting approval. After obtaining the system affiliation identifier for each candidate version by parsing the version list file, the candidate version belonging to the medical imaging application can be identified as the target version, and the corresponding approval verification rules and version validation rules for the medical imaging application can be loaded. These rules can define the relationships between image data interfaces, file formats, and processing components, and configure test items for image reading, image processing, and result output, ensuring that the subsequent verification process matches the actual operational characteristics of the medical imaging version.

[0054] Through the above steps S31 to S33, the target version corresponding to the current version access request can be accurately determined from multiple candidate versions. The matching approval verification rules and version verification rules are loaded according to the business affiliation of the target version, reducing the impact of version affiliation identification errors and rule mismatches on the subsequent verification process. This provides a clear and consistent processing object and rule basis for version data verification, version content verification, and runtime testing.

[0055] S4. Perform integrity and consistency verification on version metadata, change information, dependency information, and version verification data to obtain the approval verification results.

[0056] Specifically, version metadata describes the basic and release attributes of the target version; change information records the functional modules, configurations, and interfaces that have been modified relative to previous versions; dependency information describes the dependencies between the target version and external services, runtime components, database structures, and the basic operating environment; and version verification data records data generated during code review, security assessment, functional testing, and performance testing. Since different data may originate from the version building, development, and testing processes, field names, data formats, and record structures may differ, making it difficult to establish stable data correspondences during direct approval. Therefore, the different data are first structured according to the field mapping relationships in the approval verification rules, converting fields with the same business meaning into unified fields, and establishing data associations based on the target version identifier to form version verification records. Subsequently, based on format constraints and mandatory constraints, situations such as missing fields, incorrect field types, incorrect value formats, and abnormal data structures are identified. Cross-validation is then performed based on the relationship between change information and dependency information to determine whether the components, interfaces, or configurations involved in the version change have corresponding dependency records. The approval and verification results are used to centrally record the processing results of integrity verification and consistency verification, and serve as the data basis for judging the admission conditions of subsequent versions.

[0057] As an optional implementation, the process of obtaining the approval and verification result in step S4 above may also specifically include the following steps S41 to S43.

[0058] S41. According to the field mapping relationship in the approval and verification rules, perform structured processing on the version metadata, change information, dependency information and version verification data to obtain the version verification record.

[0059] Field mapping relationships are used to establish correspondences between fields with the same technical meaning from different data sources. Different build tools, code management tools, and testing tools may use different field names, field levels, and data types to record the same content. For example, a field representing a version identifier can be a version number, build number, or release number, while a field representing a component identifier can be a module number, service number, or package name. Field mapping relationships can include source field paths, target field names, data types, conversion rules, and associated primary keys, used to convert data of different formats into a unified data structure.

[0060] During structured processing, the data formats corresponding to version metadata, change information, dependency information, and version verification data can be identified first. Then, the corresponding parsing rules can be called according to the data format to extract field names, field values, and hierarchical relationships from each data set. For JSON, XML, or YAML format data, target fields can be extracted based on preset field paths. For tabular or text data, target content can be extracted based on column names, delimiters, or text tags. Subsequently, based on the field mapping relationships, the extracted results are renamed, data types are converted, enumeration values ​​are converted, and hierarchical expansion is performed to create a unified field structure for data from different sources.

[0061] Version verification records can be organized according to target version identifier, data category, and verification field. The target version identifier is used to associate multiple types of data corresponding to the same target version. The data category is used to distinguish version metadata, change information, dependency information, and version verification data. The verification field is used to store the structured field values. When the same target field corresponds to multiple source fields, the target field value can be selected according to field priority, data update time, or data source credibility. For target fields that need to be generated by combination, multiple source fields can be concatenated or calculated according to preset combination rules to form a unified verification field. Through structured processing, data from different sources, in different formats, and at different levels can be converted into version verification records that can be verified according to unified rules.

[0062] S42. Based on the format constraints and mandatory constraints in the approval and verification rules, identify missing items and format anomalies in the version verification record.

[0063] Among them, mandatory constraints are used to limit the verification fields that must exist when performing version approval, and format constraints are used to limit the data type, encoding format, value range, and structure of each verification field. Approval verification rules can be configured with different sets of mandatory fields and format validation rules based on the business scope to which the target version belongs. For example, the version identifier field can be limited to a string conforming to a preset version number format, the release time field can be limited to data conforming to a preset date format, the dependent version field can be limited to a data structure containing the dependent object identifier and version range, and the test result field can be limited to a data record containing the test status and test time.

[0064] When identifying missing items, the required fields in the version verification records can be traversed to determine if each required field has a valid value. If a field does not exist, has an empty value, or contains only invalid characters, the corresponding field can be recorded as a missing item. For fields with conditional dependencies, their required status can be dynamically determined based on the values ​​of other fields. For example, when the change type represents a change in the database structure, database migration records and rollback records can be identified as required fields. When the change type represents a change in the interface definition, the interface compatibility verification result can be identified as a required field.

[0065] When identifying format anomalies, data type checks, regular expression matching, length checks, value range checks, and data structure checks can be performed based on the format constraints corresponding to the fields. Fields with inconsistent data types, values ​​that do not conform to encoding rules, values ​​exceeding preset ranges, or missing necessary nodes in nested data can be recorded as format anomalies. For cases where there are format relationships between fields, the correspondence between version numbers and build numbers, the chronological order between release dates and test completion times, and the compatibility between dependent version ranges and the target runtime environment can also be checked. Missing items and format anomalies can be recorded with their field names, anomaly types, anomaly locations, and anomaly data, respectively, for use in generating subsequent approval verification results.

[0066] S43. Perform cross-validation based on the relationship between change information and dependency information, and generate approval verification results based on the cross-validation results, missing items, and format anomalies.

[0067] Cross-validation is used to determine whether the actual changes in the target version have corresponding dependency records, and whether the dependencies match the scope of changes in the target version. Change information can include modified service components, interface definitions, configuration files, database structures, and model files. Dependency information can include upstream dependent objects, downstream calling objects, runtime components, and version constraints corresponding to each changed object. During cross-validation, the association between changed objects and dependent objects can be established based on component identifiers, interface identifiers, resource identifiers, or file paths.

[0068] For service component changes, the call relationships and called relationships corresponding to the changed component can be queried to determine if the upstream and downstream services are recorded in the dependency information. For interface definition changes, the interface parameters, return structures, and protocol versions before and after the change can be compared to determine if the affected call objects are included in the dependency information. For database structure changes, the affected data access components can be identified based on the table and field identifiers, and it can be determined whether the corresponding data migration and rollback dependencies are recorded in the dependency information. For configuration file changes, the running components referencing the corresponding configuration items can be identified based on the configuration item identifiers, and it can be determined whether the dependency versions and target runtime environments meet the configuration change requirements.

[0069] Cross-validation results can include states such as complete associations, missing associations, conflicting associations, and mismatched dependency versions. Complete associations indicate that all changed objects have corresponding dependency records; missing associations indicate that there are changed objects with unrecorded dependencies; conflicting associations indicate that the change information and dependency information describe the same object inconsistently; and mismatched dependency versions indicate that the version range of the dependent objects cannot meet the runtime requirements of the target version.

[0070] When generating approval verification results, missing items, format anomalies, and cross-validation results can be categorized according to preset anomaly levels. Anomalies affecting target version identification, dependency resolution, or test result confirmation can be identified as blocking anomalies; anomalies that can be corrected by supplementing fields or format conversion can be identified as anomalies requiring correction; and prompts that do not affect version access judgment can be identified as prompt anomalies. Approval verification results can include verification status, anomaly level, anomaly fields, anomaly cause, and affected objects. When there are no blocking anomalies or anomalies requiring correction, the approval verification result can be set to verification passed. When there are blocking anomalies or anomalies requiring correction, the approval verification result can be set to verification failed, and the corresponding anomaly information can be recorded.

[0071] As an example, in a fintech scenario, target version change information can record changes in payment interface parameters and clearing service invocation methods, while dependency information can record the invocation relationships between the payment service and account services, clearing services, and risk control services. After mapping and structuring the relevant data, it's possible to check the completeness of required fields such as version identifier, interface change description, and test results, and verify whether the interface parameter format and dependency version format conform to the corresponding constraints. Subsequently, the corresponding invocation object is located based on the payment interface identifier to determine whether the clearing service and risk control service are recorded in the dependency information. When the payment interface change information records newly added parameters, but the dependency information does not record the caller's adapted version, the cross-validation result can be determined as a missing association, and the corresponding blocking anomaly can be recorded in the approval verification result.

[0072] In digital healthcare scenarios, target version change information can record changes to the medical image file parsing component and image result output interface, while dependency information can record the relationships between the image storage component, image processing component, and diagnostic result receiving component. After structured processing, the completeness of fields such as image format identifier, interface version, and verification results can be checked, and the field types and encoding formats can be validated. Subsequently, the affected dependent objects are determined based on the image parsing component identifier and result output interface identifier. When the change information records support for a new image file format, but the dependency information does not record a compatible version of the corresponding image processing component, the cross-validation result can be determined as a dependency version mismatch, and the abnormal object and the reason for the abnormality can be recorded in the approval verification result.

[0073] Through the above steps S41 to S43, version data from different sources and in different formats can be converted into a unified version verification record. Verification is carried out from three levels: field completeness, field format, and data relationship. This reduces the impact of missing version data, format errors, and missing dependencies on approval judgment, and provides a structurally complete and consistent approval verification result for version content verification and access condition judgment.

[0074] S5. Perform content integrity verification, digital signature verification, and version difference analysis on the target version to obtain the first version verification result.

[0075] Specifically, content integrity verification is used to determine whether the target version's content has undergone unintended modifications during construction, transmission, or storage. Digital signature verification is used to confirm whether the target version's signature information was generated by the corresponding signing entity and to determine whether the version content covered by the signature remains consistent. Version difference analysis is used to determine the specific location and type of changes that have occurred in the target version relative to its corresponding historical version. The target version's content can include executable files, program code, configuration files, dependency packages, model files, and resource files. Since different verification methods correspond to different verification dimensions, the number of dependency files, file names, or version numbers alone are insufficient to accurately reflect whether the version content has been modified, and it is also difficult to distinguish between expected and unexpected changes. Therefore, a hash operation can be performed on the target version's content first, and the generated target content digest can be matched with the reference content digest saved during the version construction or release phase to determine whether the version content remains intact. Subsequently, the digital signature is verified using the public key corresponding to the version signature private key to confirm the source of the target version and the consistency of the signature content. For the target version that passes integrity verification and digital signature verification, differential calculation is performed with the corresponding historical version to obtain the edit path consisting of insertion, deletion, replacement, or move operations. Based on the edit path, the changed code segments, configuration items, interface definitions, or file content are located. Finally, the content digest matching result, digital signature verification result, and version change fragment set are combined to form the first version verification result, providing a content-level verification basis for subsequent runtime testing and version access judgment.

[0076] As an alternative implementation method, please continue reading. Figure 3 , Figure 3 This is a schematic diagram of the execution flow for obtaining the first version verification result in the software version admission control method provided in this application embodiment. For example... Figure 3 As shown, the process of obtaining the first version verification result in step S5 above can also specifically include the following steps S51 to S54.

[0077] S51. Perform a hash operation on the version content of the target version to obtain a target content digest, and match the target content digest with the corresponding reference content digest.

[0078] The hash operation maps the target version's content to fixed-length summary data. The target content summary characterizes the overall data characteristics of the current version to be verified, while the reference content summary characterizes the version content characteristics formed during the trusted build or trusted release phase. The reference content summary can be generated after the version build is complete and stored in the summary record after being associated with the version identifier, build task identifier, and build time. During integrity verification, the corresponding reference content summary is queried based on the target version identifier, and the current version content is processed using the same hash algorithm as when the reference content summary was generated.

[0079] For a target version containing multiple files, the files can be sorted according to a preset file sorting rule, and a file digest can be calculated for each version. Then, the file path, file length, and file digest are combined according to the sorting result, and a hash operation is performed on the combined result to obtain the target content digest. The preset file sorting rule can be set according to the file path, file name, or the file order recorded in the version list file. By including the file path and file length in the digest calculation, it is possible to identify file content modifications, file replacements, file additions, file deletions, and file path changes.

[0080] Hash algorithms can include SHA-256, SHA-3, or others that can output fixed-length digests. When using a block-based processing approach, a large version file can be divided into multiple data blocks, and the digest for each block can be calculated separately. These blocks are then aggregated in order to generate the file digest. Block-based processing can complete digest calculation without loading the entire version file at once and can further locate changed data regions based on the block digests.

[0081] When matching the target content summary with the reference content summary, a bit-by-bit comparison can be performed. If the two summaries are identical, the content summary matching result is determined to be a match, indicating that the current version content is consistent with the version content corresponding to when the reference content summary was generated. If the two summaries are different, the content summary matching result is determined to be a mismatch, and the version file or data block with the mismatch is recorded. For cases where the target version contains multiple independent components, component summaries can be generated for each component separately, forming a component-level summary matching result to identify the target component whose content has changed.

[0082] S52. Verify the digital signature of the target version using the public key corresponding to the version signature private key.

[0083] A digital signature is a signature generated by the signing entity using a version signing private key to perform cryptographic operations on the data to be signed. The data to be signed may include a version digest, version identifier, build task identifier, signing time, and signing entity identifier. The version signing private key is held by the signing entity with version signing authority, and the corresponding public key is used to verify the validity of the digital signature. Digital signature verification does not require obtaining the version signing private key; the public key can be used to verify the correspondence between the signed data and the current version content.

[0084] When performing digital signature verification, the digital signature, signature algorithm identifier, signing subject identifier, and certificate information can be read from the target version's signature file, version manifest file, or version release record. The corresponding public key is retrieved based on the signing subject identifier or certificate information, and the validity of the public key or digital certificate is checked. Validity checks can include certificate expiration checks, certificate revocation status checks, and signature algorithm support status checks. If the public key or digital certificate is not valid, the digital signature verification result can be directly set to verification failed.

[0085] When the public key is valid, the data to be verified for the current target version is reconstructed according to the data structure to be signed corresponding to the digital signature. If the digital signature is generated based on the version content digest, the target content digest generated in step S51 can be read and combined with the version identifier, construction task identifier, and signature time according to the preset field order. Subsequently, the digital signature is cryptographically verified using the public key and digital signature algorithm to determine whether the data digest corresponding to the digital signature is consistent with the currently reconstructed data to be verified.

[0086] When digital signature verification passes, it indicates that the digital signature can be verified by the corresponding public key, and the data covered by the digital signature corresponds to the current target version. When digital signature verification fails, the type of verification failure can be further determined. Verification failure types can include missing signature data, abnormal signature format, public key mismatch, certificate expiration, unsupported signature algorithm, and inconsistency with the data to be verified. The digital signature verification result can include verification status, signature subject identifier, signature time, and verification failure type, used to generate the first version of the verification result.

[0087] S53. Calculate the editing path between the target version and the corresponding historical version based on the differential algorithm, and generate a set of version change fragments based on the editing path.

[0088] The corresponding historical version is the baseline version used for difference comparison with the target version. It can be determined based on the target version's version sequence, release branch, build branch, or version inheritance relationship. For consecutively released software versions, the version that precedes the target version in the version sequence and has completed access can be selected as the corresponding historical version. In the case of multiple development branches, the corresponding historical version can be determined based on the branch identifier and common base version, avoiding direct difference comparison between two versions that do not have an inheritance relationship.

[0089] Difference algorithms are used to determine the data editing operations required to convert a corresponding historical version into a target version. An editing path is a sequence of data operations arranged in processing order; these operations can include insertion, deletion, replacement, and invariance. Difference algorithms can employ Myers' difference algorithm, longest common subsequence algorithm, or other algorithms capable of calculating differences in text, code, or structured data.

[0090] Before performing differential calculations, a file mapping relationship can be established between the target version and its corresponding historical versions based on file paths. For files with the same path, file content differential can be performed. For files whose file paths have changed but whose file content similarity meets preset similarity conditions, they can be identified as files moved or renamed. Files that exist only in the target version can be identified as newly added files. Files that exist only in the corresponding historical versions can be identified as deleted files.

[0091] For program code or text files, difference calculations can be performed by line, statement, syntax node, or code block. When performing difference calculations by syntax node, lexical analysis and syntax parsing can be performed on the program code first to obtain an abstract syntax tree (AST). Then, the node types, node values, and node relationships in the corresponding ASTs of the two versions can be compared to reduce the impact of changes in comments, spaces, and formatting on difference identification. For configuration files, difference calculations can be performed by configuration item key-value pairs. For interface description files, difference calculations can be performed by interface path, request parameters, return parameters, and data types.

[0092] Continuous editing operations within an editing path can be aggregated according to file identifier, start position, end position, and change type to form version change fragments. A version change fragment can include the change object identifier, historical content, target content, change type, change location, and scope of impact. Organizing multiple version change fragments according to file path or component affiliation forms a version change fragment set. This set of version change fragments represents the actual content changes of the target version relative to its corresponding historical version and can be correlated with the change information in step S4 to determine whether the submitted change description covers the actually identified version changes.

[0093] S54. Generate the first version verification result based on the content digest matching result, digital signature verification result, and version change fragment set.

[0094] The first version verification result is used to centrally characterize the verification status of the target version in terms of content completeness, signature validity, and version differences. When generating the first version verification result, the verification status corresponding to the content digest matching result, digital signature verification result, and version change fragment set can be determined separately according to the version verification rules. If the content digest matching result is a match, the content completeness status can be set to "passed." If the content digest matching result is a mismatch, the content completeness status can be set to "failed." If the digital signature verification result is a pass, the signature verification status can be set to "passed." If the digital signature is missing, invalid, or the signature subject does not match, the signature verification status can be set to "failed."

[0095] For a set of version change fragments, analysis can be performed based on the correspondence between the allowed change scope, prohibited change scope, and change description in the version verification rules. The allowed change scope limits the files, components, interfaces, or configuration items that can be modified in the current release task. The prohibited change scope limits the content that must not be changed in the current target version. The change description correspondence is used to determine whether the actually identified version change fragment has a corresponding record in the submitted change information.

[0096] When all version change fragments are within the allowed change range and corresponding records can be found in the change information, the version difference verification status can be set to "Pass". When version change fragments exceed the allowed change range, fall into the prohibited change range, or cannot be found in the change information, the version difference verification status can be set to "Fail", and the abnormal change fragment can be recorded. For changes involving only comments, spaces, or file formats, the corresponding version change fragments can be set to "Ignore" or "Prompt" status according to the version verification rules.

[0097] The first version verification result can include content integrity status, digital signature verification status, version difference verification status, abnormal file identifier, abnormal change fragment, and verification failure reason. When the content integrity status, digital signature verification status, and version difference verification status are all passed, the first version verification result can be set to verification passed. When any verification status is failed, the first version verification result can be set to verification failed, and the corresponding exception level can be determined according to the exception type and scope of impact.

[0098] As an example, in a fintech scenario, the target version can be a newly released version of the payment service. After hashing the executable files, interface configuration files, and dependency packages in the payment service deployment package, a target content digest is generated and compared with the reference content digest saved during the trusted construction phase. Subsequently, the digital signature is verified using the public key corresponding to the release signature private key to confirm the source of the deployment package and the validity of the signature data. By performing a differential comparison between the target version and the previously approved payment service version, version change fragments corresponding to payment interface parameters, transaction routing configurations, and exception handling code can be identified. When the differential result shows a transaction routing configuration modification not recorded in the change information, the version difference verification status can be set to failed, and the corresponding configuration file and change location can be recorded in the first version verification result.

[0099] In digital healthcare scenarios, the target version can be a new version of the medical image processing component. By calculating the digests corresponding to the image parsing program, image processing model, and interface configuration file, it can be determined whether the version content is consistent with the trusted construction result. After verifying the digital signature using the corresponding public key, a differential comparison is performed between the target version and the previous access version to obtain the version change fragments corresponding to the image format parsing logic, image preprocessing parameters, and result output interface. When the image preprocessing parameters change but are not recorded in the change information, the corresponding version change fragment can be identified as an abnormal change fragment, and the first version verification result is set to verification failed.

[0100] Through the above steps S51 to S54, the target version can be verified from three dimensions: version content characteristics, digital signature, and actual changes. This identifies situations such as modified version content, invalid signature, and actual changes exceeding the declared scope. Different verification results are organized into a unified first version verification result, providing a reliable basis for version content verification for subsequent functional testing, performance testing, and version access condition judgment.

[0101] S6. Perform functional and performance tests on the target version in the preset operating environment to obtain the verification results of the second version.

[0102] Specifically, the preset runtime environment is a test execution environment pre-built according to the target release environment corresponding to the target version. It is used to simulate the hardware and software configuration, running parameters, network conditions, and external dependencies after the target version is released. Functional testing is used to verify whether the target version can generate the corresponding functional output according to the expected business logic after receiving preset inputs. Performance testing is used to verify the response time, throughput, resource utilization, and operational stability of the target version under different operating loads. Since the target version may exhibit different operating states under different operating systems, runtime frameworks, processor architectures, database versions, or dependent components, it is difficult to fully reflect the compatibility between the target version and the actual release conditions by completing the test in only a single environment. Therefore, the target version can be deployed to multiple test runtime environments corresponding to the target release environment, and test case sets matching the target system identifier can be called to drive the target version to run. During the test, the functional output and runtime performance indicators of the target version are collected respectively. The functional output is matched with the pre-set expected output, and the runtime performance indicators are compared with the performance benchmark corresponding to the target version. Subsequently, the matching and comparison results from each test environment are summarized to form the second version verification results, which characterize the correctness of the target version's functions, environmental compatibility, and operational performance. This provides an operational-level verification basis for determining the admission criteria of subsequent versions.

[0103] As an optional implementation, the process of obtaining the second version verification result in step S6 above may also specifically include the following steps S61 to S64.

[0104] S61. Deploy the target version to multiple test environments corresponding to the target release environment.

[0105] The test environment can be built using virtual machines, containers, or other isolated instances. It can read the corresponding environment configuration template based on the target system identifier and load the operating system image, runtime framework, database, middleware, network parameters, and dependent components according to the template. Multiple test environments can correspond to different release nodes, different processor architectures, different dependent component versions, or different network conditions to cover the main release configurations that the target version may use.

[0106] When deploying the target version, the deployment package, configuration files, and dependent resources corresponding to the target version can be loaded into each test environment. File decompression, parameter injection, dependency connection, and service startup are completed according to the preset deployment order. After deployment, the process status, port status, database connection status, and dependent component connection status corresponding to the target version are checked. When all statuses meet the preset startup conditions, the corresponding test environment is set to a testable state. If process startup fails, configuration loading fails, or dependency connection fails, the corresponding environment identifier and deployment exception information are recorded.

[0107] S62. Call the test case set corresponding to the target system identifier to drive the target version to run in each test environment.

[0108] The test case set can include functional test cases, interface test cases, exception handling test cases, concurrency test cases, and stability test cases. Each test case can include a test case identifier, input data, preconditions, execution instructions, expected output, and performance requirements. Based on the target system identifier, a test case set matching the business scope of the target version can be loaded from the test case library.

[0109] Furthermore, the scope of this test can be determined based on the change information of the target version. For basic functions that have not changed, regression test cases can be invoked. For functional modules, interface definitions, or configuration items involved in version change fragments, targeted test cases associated with the corresponding changed objects can be invoked. When executing test cases, test data and runtime status are initialized according to preconditions, and then test requests are sent to the target version, test data is input, or a preset processing flow is triggered. For independent test cases, they can be executed in parallel in different test runtime environments. For test cases with dependencies, they can be executed sequentially according to a preset execution order.

[0110] S63. Collect the functional output and runtime performance indicators of the target version, match the functional output with the expected output, and compare the runtime performance indicators with the corresponding performance benchmarks.

[0111] Functional outputs can include interface return data, business status data, file output, database processing results, and log processing results. For deterministic outputs, equality matching can be used. For outputs containing dynamic timestamps, random identifiers, or execution sequences, dynamic fields can be masked first, and then structural matching can be performed on the remaining fields. For numerical outputs, threshold matching can be performed based on a preset error range. For structured outputs, comparisons can be made based on field paths to determine if fields exist, if field types are consistent, and if field values ​​meet corresponding constraints.

[0112] Performance metrics can include response time, throughput per unit time, concurrent processing volume, error rate, processor utilization, memory utilization, network throughput, and disk read / write volume. When collecting performance metrics, monitoring data from each test environment can be read according to a preset sampling period, and a correspondence can be established based on test case identifiers, environment identifiers, and sampling times. For continuously running performance tests, the average, maximum, percentile, and fluctuation range of performance metrics can be calculated to characterize the target version's operational status at different testing stages.

[0113] Performance benchmarks can be determined based on target release requirements, version verification rules, or runtime data from corresponding historical versions. For response time and error rate, it can be determined whether the collected values ​​are lower than the corresponding maximum allowable values. For throughput and concurrent processing volume, it can be determined whether the collected values ​​meet the corresponding minimum requirements. For processor utilization and memory utilization, it can be determined whether the collected values ​​are within the preset resource usage range. After matching and comparison, the functional matching results for each test case and the performance comparison results for each runtime performance indicator are obtained.

[0114] S64. Generate the second version verification result based on the matching and comparison results corresponding to each test environment.

[0115] The blocking attributes can be configured based on the importance of test cases and performance metrics. Test cases corresponding to core functions, data processing correctness, and anomaly recovery capabilities can be set as blocking test cases. Key metrics among response time, throughput, error rate, and resource utilization can be set as blocking performance metrics. When the functional output of any blocking test case does not match the expected output, or when any blocking performance metric fails to reach the corresponding performance benchmark, the verification status of the corresponding test environment can be set to failed.

[0116] When all blocking test cases pass and all blocking performance metrics reach the corresponding performance benchmark, the verification status of the corresponding test environment can be set to "pass". For non-blocking test cases or non-critical performance metrics that are abnormal but whose abnormality is within the preset allowable range, the corresponding verification status can be set to "prompt status", and the test case identifier, abnormal output, performance metric, and performance deviation can be recorded.

[0117] The second-version verification result can include the overall verification status, the environment verification status for each test environment, failed test cases, abnormal function outputs, unmet performance metrics, and performance deviations. When all critical test environments meet the functional and performance test requirements, the second-version verification result is set to "verification passed." If any critical test environment has a failed blocking test case or a blocking performance metric that fails to meet the performance benchmark, the second-version verification result is set to "verification failed."

[0118] As an example, in a fintech scenario, the transaction processing version can be deployed to both single-node and cluster test environments, and test cases for transaction creation, account verification, risk interception, account updates, and exception rollback can be invoked. During testing, transaction processing results, account status, and account records are collected as functional outputs, while transaction response time, processing volume per unit time, error rate, and processor utilization are collected as performance metrics. When the transaction processing results match the expected outputs and each key performance indicator reaches the corresponding performance benchmark, the verification status of the corresponding test environment is set to "pass".

[0119] In digital healthcare scenarios, the medical image processing version can be deployed to test environments with different processor configurations and image processing frameworks, and test cases such as image reading, format conversion, image preprocessing, result generation, and abnormal file handling can be invoked. During testing, image processing results and output file structures are collected, along with single-image processing time, batch processing throughput, and memory usage. When the image processing results are inconsistent with the expected output, or when the memory usage in the critical operating environment exceeds the corresponding performance benchmark, the corresponding exception information is written into the second version verification results.

[0120] Through the above steps S61 to S64, the functional correctness, environment adaptability and running performance of the target version can be verified in multiple test and running environments corresponding to the target release environment. The functional matching results and performance comparison results in each test and running environment are organized into a unified second version verification result, providing a basis for the running verification for the admission status judgment of the target version.

[0121] As an alternative implementation method, please continue reading. Figure 4 , Figure 4 This is a schematic diagram of the execution flow for generating the second version verification result in the software version admission control method provided in this application embodiment. For example... Figure 4 As shown, when the version content corresponding to the target version includes machine learning model components, the process of generating the second version verification result in step S64 above can also specifically include the following steps S641 to S644.

[0122] S641. Determine the target model version, benchmark model version, and target validation dataset corresponding to the machine learning model components.

[0123] The target model version is the machine learning model version within the target version to be used for performance validation. The baseline model version is a reference model version used for performance comparison with the target model version. The baseline model version can be a model version with the same model purpose as the target model version that most recently passed version admission, or it can be a previous model version determined according to model version inheritance relationships. The target validation dataset is the dataset used to run the target and baseline model versions, and it can be determined from a pre-configured validation dataset based on the model type, input data structure, and prediction task of the machine learning model components.

[0124] The target validation dataset can be configured with dataset identifiers, dataset versions, sample size, sample distribution, feature structure, and label data, ensuring that the same model performance validation uses consistent data content. For classification models, the target validation dataset can include input features and class labels. For regression models, the target validation dataset can include input features and continuous target values. After determining the target validation dataset, it's also possible to check whether the input feature names, input feature dimensions, and data preprocessing methods are consistent between the target model version and the baseline model version. When input structures differ, field mapping or dimension alignment can be performed according to preset feature mapping rules, enabling both models to handle validation data with the same sample semantics.

[0125] S642. Under the same test environment, run the target model corresponding to the target model version and the benchmark model corresponding to the benchmark model version based on the target validation dataset to obtain the target model performance index and the benchmark model performance index.

[0126] In this context, "identical test environment" means that the target model and the benchmark model use the same processor configuration, runtime framework version, dependent component versions, data preprocessing parameters, and runtime resource limitations. Using the same test environment can reduce the impact of differences in hardware and software configurations and runtime parameters on model performance metrics, making the performance metrics of the target model and the benchmark model comparable.

[0127] Before running the target model and the baseline model, the corresponding model files, model parameters, and data preprocessing configurations can be loaded respectively, and the same validation samples can be read according to the dataset identifier of the target validation dataset. Then, following the same sample order and batch configuration, the target validation dataset is input into the target model and the baseline model respectively to obtain the output results of the target model and the baseline model. Based on the model output results and the label data in the target validation dataset, the corresponding model performance metrics are calculated.

[0128] For classification models, model performance metrics may include accuracy, precision, recall, F1 score, and area under the receiver operating characteristic (AUC) curve. For regression models, model performance metrics may include mean squared error, root mean square error, mean absolute error, and coefficient of determination. Model performance metrics may also include single-sample inference time, batch throughput, and model runtime resource utilization. Metrics obtained from running the target model constitute the target model performance metrics, while metrics obtained from running the benchmark model constitute the benchmark model performance metrics.

[0129] S643. Based on the performance indicators of the target model and the performance indicators of the benchmark model, calculate the performance change corresponding to each model performance indicator.

[0130] The performance change measure characterizes the degree of change in the target model's performance metrics relative to the baseline model. Since different model performance metrics may be evaluated in different ways, the calculation direction of the performance change measure can be determined based on the metric type. For positive metrics such as accuracy, precision, recall, and F1 score, where an increase in these values ​​indicates performance improvement, the performance decrease can be calculated based on the difference between the baseline and target model performance metrics. For negative metrics such as mean squared error, mean absolute error, inference time, and resource utilization, where an increase in these values ​​indicates performance decrease, the performance increase can be calculated based on the difference between the target and baseline model performance metrics.

[0131] Performance changes can be expressed as absolute differences or relative proportions. When using absolute differences, the numerical difference between the target model's performance metric and the benchmark model's performance metric is directly calculated. When using relative proportions, the ratio of the difference between the two to the benchmark model's performance metric can be calculated. For target validation datasets containing multiple sample categories or multiple data groups, the performance change for each sample category or data group can be calculated separately to identify situations where overall performance changes are not significant, but the performance of some sample categories has decreased significantly.

[0132] S644. Compare each performance change with the corresponding performance degradation threshold, and update the second version verification result based on the comparison result.

[0133] The performance degradation threshold limits the maximum permissible performance decline of the target model relative to the baseline model. Different model performance metrics can correspond to different performance degradation thresholds. For example, accuracy and recall can each correspond to a maximum permissible degradation threshold, while mean squared error and inference time can each correspond to a maximum permissible increase threshold. The performance degradation threshold can be set based on the model's intended use, the historical performance fluctuation range of the model, and version validation rules.

[0134] During the comparison, it is determined whether each performance change exceeds the corresponding performance degradation threshold. When the performance change corresponding to each key model performance indicator does not exceed the performance degradation threshold, the model validation status of the machine learning model component can be set to validation passed. When the performance change corresponding to any key model performance indicator exceeds the performance degradation threshold, the model validation status can be set to validation failed, and the indicator name, target model performance indicator, baseline model performance indicator, performance change, and performance degradation threshold should be recorded.

[0135] For the amount of performance change corresponding to different sample categories, a category-level performance degradation threshold can be set. When the overall model performance meets the requirements, but the amount of performance change corresponding to the target sample category exceeds the category-level performance degradation threshold, the model validation status can also be set to validation failure or warning status. Subsequently, the model validation status and the corresponding performance anomaly information are written into the second version of the validation results, so that the second version of the validation results simultaneously include the results of normal functional tests, runtime performance tests, and machine learning model performance validation results.

[0136] As an example, in a fintech scenario, the target version may include a transaction risk identification model component. The risk identification model that most recently passed version approval is selected as the baseline model version, and historical transaction verification data with a fixed dataset version is selected as the target verification dataset. The target model and the baseline model are run separately in the same operating environment, and accuracy, recall, false positive rate, and inference time per transaction are calculated. When the recall rate of the target model for risky transactions decreases by more than the corresponding performance degradation threshold, the verification status of the machine learning model component is set to failed, and the verification results of the second version are updated.

[0137] In digital healthcare scenarios, the target version may include a medical image classification model component. The previous admission model version is selected as the baseline model version, and both the target and baseline models are run using the same medical image validation dataset to calculate accuracy, recall, F1 score, and processing time per image. When the overall accuracy meets the requirements, but the recall rate for a specific image category decreases beyond the category-level performance degradation threshold, the corresponding performance anomaly information is written into the second-version validation results.

[0138] Through steps S641 to S644 above, the performance differences between the target model version and the benchmark model version can be compared under the same verification data and operating conditions. The overall performance degradation or local category performance degradation caused by model updates can be identified, and the model performance verification results can be incorporated into the second version verification results, providing corresponding admission criteria for the target version containing machine learning model components.

[0139] S7. Based on the approval and verification results, the first version verification results, and the second version verification results, determine whether the target version meets the preset access conditions, and update the access status of the target version according to the judgment results.

[0140] Specifically, preset admission criteria are used to limit the data verification, version content verification, and operational testing requirements that the target version must meet before entering the release process. The approval verification results are used to indicate whether the version data is complete and consistent with each other. The first version verification results are used to indicate whether the version content, digital signature, and version differences meet the requirements. The second version verification results are used to indicate whether the functionality and performance of the target version meet the corresponding standards.

[0141] During the access determination process, the verification status and anomaly information from the approval verification results, the first version verification results, and the second version verification results are read and matched against the preset access conditions. If all three types of results meet the corresponding requirements and there are no blocking anomalies, the target version is determined to meet the preset access conditions, and the access status is updated to "Access Passed." If any result has a blocking anomaly, or if key functions or key performance indicators do not meet the requirements, the target version is determined to not meet the preset access conditions, and the access status is updated to "Access Failed." For issues that can be resolved by supplementing data or correcting anomaly handling, the access status can be updated to "Pending Supplementation" or "Pending Review."

[0142] The admission status update log can include the target version identifier, the status before the update, the status after the update, the judgment time, and the reason for failure. For target versions that pass admission, an admission pass flag can be generated. For target versions that fail admission, an admission block flag can be generated to restrict the target version from entering the subsequent release process.

[0143] By making a unified judgment on the three types of verification results, we can avoid determining the version access status based on only a single verification result, and make the access status update have a clear verification basis.

[0144] The software version access control method provided in this application receives a version access request including a target system identifier and user identity information. First, it authenticates the request initiator and obtains a set of candidate versions awaiting approval based on the authentication result, thus limiting subsequent version processing to areas with access permissions. Then, it parses the version manifest file corresponding to each candidate version and matches the system ownership identifier with the target system identifier to determine the target version corresponding to the current access task from multiple candidate versions. Simultaneously, it loads the approval verification rules and version verification rules matching the target version. Based on this, it performs structured processing, integrity verification, and consistency verification on version metadata, change information, dependency information, and version verification data, identifying missing items, format anomalies, and dependency anomalies to obtain the approval verification result. Furthermore, it verifies the content integrity, source credibility, and actual change scope of the target version through content digest matching, digital signature verification, and version difference analysis. Finally, it performs functional and performance tests in multiple test environments corresponding to the target release environment to obtain the functional output and performance of the target version under different operating conditions. For target versions that include machine learning model components, performance degradation caused by model updates can be identified by comparing the performance of the target model version with that of the baseline model version. Finally, based on the approval verification results, the first version verification results, and the second version verification results, a unified judgment is made as to whether the target version meets the preset admission conditions, and the admission status of the target version is updated accordingly. This enables the identification authentication, target version screening, version data verification, version content verification, and runtime testing to form a continuous automated processing chain, reducing data omissions, version mismatches, and inconsistencies that may occur during manual approval. This improves the accuracy, completeness, and traceability of software version admission judgments and reduces the risk of software versions that do not meet release requirements entering subsequent release processes.

[0145] Please continue reading. Figure 5 , Figure 5 This is a schematic diagram of the system structure of the software version access control device provided in the embodiments of this application, such as... Figure 5As shown, the software version access control device 50 includes: an access request receiving module 51, used to receive version access requests, which include a target system identifier and user identity information; a user identity authentication module 52, used to authenticate the user based on the user identity information and obtain a set of candidate versions in the pending approval state from the version management system; a target version filtering module 53, used to filter target versions from the candidate version set based on the target system identifier and obtain the version metadata, change information, dependency information, and version verification data corresponding to the target version; a version data verification module 54, used to perform integrity verification and consistency verification on the version metadata, change information, dependency information, and version verification data to obtain the approval verification result; a version content verification module 55, used to perform content integrity verification, digital signature verification, and version difference analysis on the target version to obtain the first version verification result; and a version operation testing module 56, used to perform functional testing and performance testing on the target version in a preset operating environment to obtain the second version verification result. The access status control module 57 is used to determine whether the target version meets the preset access conditions based on the approval verification results, the first version verification results, and the second version verification results, and to update the access status of the target version based on the judgment results.

[0146] It should be noted that the above-mentioned software version access control device can execute the software version access control method provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects of the method. Technical details not described in detail in the embodiments of the software version access control device can be found in the software version access control method provided in the embodiments of this application.

[0147] Figure 6 This is a schematic diagram of the hardware structure of the electronic device implementing the software version access control method provided in the embodiments of this application, as shown below. Figure 6 As shown, the electronic device 600 includes: One or more processors 610 and memory 620, Figure 6 Take the 610 processor as an example.

[0148] The processor 610 and the memory 620 can be connected via a bus or other means. Figure 6 Taking the example of a connection between China and Israel via a bus.

[0149] The memory 620, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the software version access control method in the embodiments of this application. The processor 610 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 620, thereby implementing the software version access control method in the above-described method embodiments.

[0150] The memory 620 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the software version access control device. Furthermore, the memory 620 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 620 may optionally include memory remotely located relative to the processor 610, and these remote memories may be connected to the software version access control device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0151] The one or more modules are stored in the memory 620. When executed by the one or more processors 610, they perform the software version access control method in any of the above method embodiments, for example, the method described above. Figure 2 Method steps S1 to S7, Figure 3 Method steps S51 to S54, Figure 4 Method steps S641 to S644 are implemented. Figure 5 The functions of modules 51-57 in the document.

[0152] The above-described product can perform the methods provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects for performing the methods. Technical details not described in detail in this embodiment can be found in the methods provided in the embodiments of this application.

[0153] This application provides a non-volatile computer-readable storage medium storing computer-executable instructions that are executed by one or more processors, for example... Figure 6 One of the processors 610 can enable the one or more processors to execute the software version admission control method in any of the above method embodiments, for example, to execute the above-described... Figure 2 Method steps S1 to S7, Figure 3 Method steps S51 to S54, Figure 4 Method steps S641 to S644 are implemented. Figure 5 The functions of modules 51-57 in the document.

[0154] This application provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions that, when executed by an electronic device, enable the electronic device to perform the software version access control method in any of the above method embodiments, for example, to perform the above-described software version access control method. Figure 2 Method steps S1 to S7, Figure 3 Method steps S51 to S54, Figure 4 Method steps S641 to S644 are implemented. Figure 5 The functions of modules 51-57 in the document.

[0155] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0156] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software and a general-purpose hardware platform, or of course, using hardware. Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0157] It should be noted that any AI models, software tools, or components not belonging to this company appearing in the embodiments of this application are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this application has been authorized (with the knowledge and consent) by the relevant parties or has been fully authorized by all parties, and the executing entity may obtain it through various legal and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.

[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of this application as described above, which are not provided in detail for the sake of brevity; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A software version access control method, characterized in that, include: Receive a version access request, the version access request including the target system identifier and user identity information; The user's identity information is used for authentication, and a set of candidate versions in the pending approval state is obtained from the version management system. Based on the target system identifier, the target version is selected from the candidate version set, and the version metadata, change information, dependency information and version verification data corresponding to the target version are obtained; The integrity and consistency of the version metadata, change information, dependency information, and version verification data are verified to obtain the approval verification results. The target version is subjected to content integrity verification, digital signature verification, and version difference analysis to obtain the first version verification result; The target version is subjected to functional and performance tests in a preset operating environment to obtain the verification results of the second version. Based on the approval verification results, the first version verification results, and the second version verification results, it is determined whether the target version meets the preset access conditions, and the access status of the target version is updated according to the determination results.

2. The software version access control method according to claim 1, characterized in that, The step of authenticating identity based on the user's identity information includes: Perform a hash operation on the authentication data in the user identity information to obtain an authentication digest; The identity authentication digest and user identifier are sent to the authentication server for identity matching and verification. If the identity verification is successful, the system receives the identity authentication token generated by the authentication server and accesses the version management system based on the identity authentication token.

3. The software version access control method according to claim 1, characterized in that, The step of filtering the target version from the candidate version set includes: Parse the version list file corresponding to each candidate version to obtain the system affiliation identifier of each candidate version; The system ownership identifier is matched with the target system identifier, and the candidate version that matches successfully is determined as the target version; Based on the target system identifier, load the approval verification rules and version verification rules corresponding to the target version.

4. The software version access control method according to claim 3, characterized in that, The integrity verification and consistency verification include: According to the field mapping relationship in the approval and verification rules, the version metadata, change information, dependency information and version verification data are structured to obtain version verification records; Based on the format constraints and mandatory constraints in the approval and verification rules, identify missing items and format anomalies in the version verification record; Cross-validation is performed based on the relationship between the change information and the dependency information, and the approval verification result is generated based on the cross-validation result, the missing items, and the format anomalies.

5. The software version access control method according to claim 1, characterized in that, The process of performing content integrity verification, digital signature verification, and version difference analysis on the target version includes: A hash operation is performed on the version content of the target version to obtain a target content digest, and the target content digest is matched with the corresponding reference content digest; The digital signature of the target version is verified using the public key corresponding to the version signature private key; The editing path between the target version and the corresponding historical version is calculated based on the differential algorithm, and a set of version change fragments is generated based on the editing path; The first version verification result is generated based on the content digest matching result, the digital signature verification result, and the set of version change fragments.

6. The software version access control method according to claim 1, characterized in that, The functional and performance testing of the target version in a preset operating environment includes: The target version is deployed to multiple test environments corresponding to the target release environment; The test case set corresponding to the target system identifier is invoked to drive the target version to run in each test environment; Collect the functional output and runtime performance metrics of the target version, match the functional output with the expected output, and compare the runtime performance metrics with the corresponding performance benchmarks; The second version verification result is generated based on the matching and comparison results corresponding to each test environment.

7. The software version access control method according to claim 6, characterized in that, When the version content corresponding to the target version includes machine learning model components, generating the second version verification result further includes: Determine the target model version, baseline model version, and target validation dataset corresponding to the machine learning model components; Under the same test environment, the target model corresponding to the target model version and the benchmark model corresponding to the benchmark model version are run respectively based on the target validation dataset to obtain the target model performance index and the benchmark model performance index. Based on the target model performance index and the benchmark model performance index, calculate the performance change corresponding to each model performance index. Each of the aforementioned performance changes is compared with the corresponding performance degradation threshold, and the second version verification result is updated based on the comparison result.

8. A software version access control device, characterized in that, include: The access request receiving module is used to receive version access requests, which include target system identifier and user identity information; The user identity authentication module is used to authenticate the user's identity information and obtain a set of candidate versions in the pending approval state from the version management system. The target version filtering module is used to filter the target version from the candidate version set according to the target system identifier, and obtain the version metadata, change information, dependency information and version verification data corresponding to the target version; The version data verification module is used to perform integrity and consistency verification on the version metadata, change information, dependency information and version verification data to obtain the approval verification result. The version content verification module is used to perform content integrity verification, digital signature verification, and version difference analysis on the target version to obtain the first version verification result. The version runtime testing module is used to perform functional and performance tests on the target version in a preset runtime environment to obtain the second version verification results. The access status control module is used to determine whether the target version meets the preset access conditions based on the approval verification result, the first version verification result and the second version verification result, and update the access status of the target version based on the judgment result.

9. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the software version admission control method according to any one of claims 1-7.

10. A non-volatile computer-readable storage medium, characterized in that, The non-volatile computer-readable storage medium stores computer-executable instructions, which, when executed by an electronic device, cause the electronic device to perform the software version access control method according to any one of claims 1-7.