Data processing method and device, storage medium, program product and electronic equipment

By conducting branch verification and independent deployment of functional branches in the project, the problem of low project production efficiency under the traditional project delivery model is solved, independent testing and production of functional branches are realized, and the overall production efficiency and reliability of the project are improved.

CN120045223APending Publication Date: 2025-05-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510185021.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

Traditional project delivery and commissioning are based on the project version, resulting in low project production efficiency. If a functional module or requirement item cannot be completed on time, the delivery progress of the entire project version will be seriously affected.

Method used

By obtaining the developed functional branches of the target project, branch verification is performed based on the target environment, and after the verification is passed, the functional branches are delivered to the target storage area. Deploy other feature branches to the production environment when they have been delivered or deployed by the feature branches.

Benefits of technology

It realizes independent testing of independent functional branches in the project, decoupling the dependence of different functional requirements in the project in the test dimension, and improving testing efficiency. At the same time, through the deployment of functional branches after verification and approval in the production environment, the decoupling of different functional requirements in the project in the production dimension is achieved, the project production efficiency is improved, and the dependence relationship between functional branches is considered, which avoids the situation where the functional branches cannot be used normally after they are put into production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045223A_ABST
    Figure CN120045223A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, a storage medium, a program product and electronic equipment. The method comprises the following steps: acquiring a developed function branch of a target project; performing branch verification on the functional branch based on a target environment, the target environment including at least one of the following: a development verification environment, a test environment, and a planned production environment; under the condition that the function branch verification is passed, the function branch is delivered to the target storage area; for the delivered function branch in the target storage area, under the condition that other function branches on which the function branch depends are delivered or deployed, the function branch is deployed to the production environment, and the other function branches refer to the function branches except the function branch in the target project. Through the method and the device, the problem of low project commissioning efficiency caused by performing project delivery based on a project version for commissioning use in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of fintech or other fields. Specifically, it relates to a data processing method, apparatus, storage medium, program product, and electronic device. Background Art

[0002] Currently, traditional project delivery and production use usually adopt a delivery mode based on project versions, which plays an important role in project management. In the traditional project delivery method, a project version may include multiple functional modules or requirement items, which makes the development, testing, and deployment of each functional module tightly coupled. When the project approaches the delivery point, if a certain functional module or requirement item cannot be completed on time due to various reasons (such as technical problems, requirement changes, etc.), the delivery progress of the entire project version will be seriously affected, resulting in low project production efficiency.

[0003] In view of the above problems in the related art, no effective solution has been proposed yet. Summary of the Invention

[0004] The main purpose of this application is to provide a data processing method, apparatus, storage medium, program product, and electronic device to solve the problem of low project production efficiency caused by project delivery and production use based on project versions in the related art.

[0005] To achieve the above objective, according to one aspect of this application, a data processing method is provided. The method includes: obtaining the developed functional branches of the target project; performing branch verification on the functional branches based on the target environment, where the target environment includes at least one of the following: development verification environment, test environment, and pre-production environment; in the case where the functional branches pass the verification, delivering the functional branches to the target storage area; for the functional branches delivered in the target storage area, in the case where the other functional branches on which the functional branches depend have been delivered or deployed, deploying the functional branches to the production environment, where the other functional branches refer to the functional branches other than the functional branches in the target project.

[0006] Further, the data processing method includes: constructing an image package corresponding to the functional branch and determining the project version to which the functional branch belongs; deploying the image package in the development verification environment corresponding to the project version; performing functional verification on the image package through the development verification environment to obtain a first verification result.

[0007] Further, the data processing method includes: constructing an image package corresponding to the functional branch and determining the project version to which the functional branch belongs; deploying the image package in the test environment corresponding to the project version; performing regression verification on the image package through the test environment to obtain a second verification result.

[0008] Further, the data processing method includes: constructing an image package corresponding to a functional branch; deploying the image package in a quasi-production environment; and performing simulated production verification on the image package through the quasi-production environment to obtain a third verification result.

[0009] Further, the data processing method includes: performing functional verification on a functional branch based on a development verification environment to obtain a first verification result; performing regression verification on the functional branch based on a test environment when the first verification result indicates that the functional verification is passed to obtain a second verification result; and performing simulated production verification on the functional branch based on a quasi-production environment when the second verification result indicates that the regression verification is passed to obtain a third verification result.

[0010] Further, the data processing method includes: after delivering a functional branch to a target storage area, obtaining dependency information associated with the functional branch, where the dependency information includes branch identifiers of other functional branches on which the functional branch depends and project versions; and determining target information based on the branch identifiers and project versions in the dependency information, and the stored data in the target storage area and the deployment information of the production environment, where the target information indicates whether other functional branches on which the functional branch depends have been delivered and deployed.

[0011] Further, the data processing method includes: after performing branch verification on a functional branch based on a target environment, when the branch verification of the functional branch fails, determining branch problem information of the functional branch; determining a problem repair strategy matching the branch problem information based on the branch problem information; repairing the functional branch based on the problem repair strategy, and re-performing branch verification on the repaired functional branch.

[0012] To achieve the above object, according to another aspect of the present application, there is provided a data processing apparatus. The apparatus includes: a first acquisition module, configured to acquire a developed functional branch of a target project; a first processing module, configured to perform branch verification on the functional branch based on a target environment, where the target environment includes at least one of the following: a development verification environment, a test environment, and a quasi-production environment; a second processing module, configured to deliver the functional branch to a target storage area when the branch verification of the functional branch is passed; and a third processing module, configured to deploy the functional branch to a production environment when other functional branches on which the functional branch depends in the target storage area have been delivered or deployed, where the other functional branches refer to functional branches other than the functional branch in the target project.

[0013] Further, the first processing module further includes: a first construction sub-module, configured to construct an image package corresponding to a functional branch and determine the project version to which the functional branch belongs; a first deployment sub-module, configured to deploy the image package in a development and verification environment corresponding to the project version; a first verification sub-module, configured to perform functional verification on the image package through the development and verification environment to obtain a first verification result.

[0014] Further, the first processing module further includes: a second construction sub-module, configured to construct an image package corresponding to a functional branch and determine the project version to which the functional branch belongs; a second deployment sub-module, configured to deploy the image package in a test environment corresponding to the project version; a second verification sub-module, configured to perform regression verification on the image package through the test environment to obtain a second verification result.

[0015] Further, the first processing module further includes: a third construction sub-module, configured to construct an image package corresponding to a functional branch; a third deployment sub-module, configured to deploy the image package in a production-ready environment; a third verification sub-module, configured to perform simulated production verification on the image package through the production-ready environment to obtain a third verification result.

[0016] Further, the first processing module further includes: a fourth verification sub-module, configured to perform functional verification on the functional branch based on the development and verification environment to obtain a first verification result; a fifth verification sub-module, configured to perform regression verification on the functional branch based on the test environment when the first verification result indicates that the functional verification is passed to obtain a second verification result; a sixth verification sub-module, configured to perform simulated production verification on the functional branch based on the production-ready environment when the second verification result indicates that the regression verification is passed to obtain a third verification result.

[0017] Further, the data processing device further includes: a second acquisition module, configured to acquire dependency information associated with the functional branch, where the dependency information includes the branch identifier of other functional branches on which the functional branch depends and the project version; a first determination module, configured to determine target information according to the branch identifier and project version in the dependency information, and the stored data in the target storage area and the deployment information of the production environment, where the target information indicates whether other functional branches on which the functional branch depends have been delivered and deployed.

[0018] Further, the data processing device further includes: a second determination module, configured to determine branch problem information of the functional branch when the verification of the functional branch fails; a third determination module, configured to determine a problem repair strategy matching the branch problem information based on the branch problem information; a fourth processing module, configured to repair the functional branch based on the problem repair strategy and re-perform branch verification on the repaired functional branch.

[0019] To achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium, which includes a stored executable program. When the executable program runs, it controls the device where the computer-readable storage medium is located to execute the above data processing method.

[0020] To achieve the above object, according to another aspect of the present application, there is provided an electronic device, which includes a memory storing an executable program; and a processor for running the program. When the program runs, it executes the above data processing method.

[0021] To achieve the above object, according to another aspect of the present application, there is provided a computer program product, which includes computer instructions. When the computer instructions are executed by a processor, the steps of the above data processing method are implemented.

[0022] In the embodiments of the present application, by obtaining the developed functional branches of the target project and performing branch verification on the functional branches based on the target environment, independent testing of the independent functional branches in the project is achieved, thereby realizing the decoupling of different functional requirements in the project in the test dimension. When testing with the project version as the branch, if there are problems, it is necessary to conduct a code review of the entire code volume, which improves the testing efficiency. After the functional branch verification passes, when other functional branches on which the delivered functional branch depends have been delivered or deployed, the functional branch is deployed to the production environment. On the one hand, the decoupling of different functional requirements in the project in the production dimension is realized, improving the project production efficiency. On the other hand, the consideration of the dependency relationship between functional branches is realized, avoiding the situation where the functional branch cannot be used normally after being put into production, and improving the reliability of the functional branch production. It can be seen that the method provided by the present application achieves the purpose of independently delivering and putting into production different functional requirements in the project, realizes the technical effect of improving the project production efficiency, and solves the technical problem of low project production efficiency in the related art where project delivery and production use are based on the project version. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:

[0024] Figure 1 is a hardware structure block diagram of a computer terminal provided according to an embodiment of the present application;

[0025] Figure 2 is a flowchart of a data processing method provided according to an embodiment of the present application;

[0026] Figure 3It is a schematic diagram of a data processing device provided by an embodiment of the present application;

[0027] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present application. Detailed implementation manners

[0028] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0030] It should be noted that the data processing method, device, storage medium, program product and electronic device of the present disclosure can be used in the field of fintech, and can also be used in any field other than the field of fintech. The application fields of the data processing method, device, storage medium, program product and electronic device of the present disclosure are not limited.

[0031] It should be noted that the information collected in the present application (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data and other processing comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. For example, an interface is set between the present system and relevant users or institutions to provide corresponding operation entrances for users to choose to agree or refuse the automated decision-making results; if the user chooses to refuse, the expert decision-making process will be entered.

[0032] Embodiment 1

[0033] According to an embodiment of the present application, an embodiment of a data processing method is further provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0034] The method embodiment provided by the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the data processing method is shown. As Figure 1 shown, the computer terminal 10 (or mobile device) may include one or more (shown as 102a, 102b,..., 102n in the figure) processors 102 (the processor 102 may include, but is not limited to, processing devices such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may further include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply, and / or a camera. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only schematic and does not limit the structure of the above-mentioned electronic device. For example, the computer terminal 10 may further include more or fewer components than those Figure 1 shown, or have a different configuration from that Figure 1 shown.

[0035] It should be noted that the above one or more processors 102 and / or other data processing circuits are generally referred to as "data processing circuits" in this article. The data processing circuit can be embodied in software, hardware, firmware or any combination thereof, in whole or in part. In addition, the data processing circuit can be a single independent processing module, or be incorporated in whole or in part into any one of the other elements in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit is a kind of processor control (such as the selection of a variable resistor terminal path connected to an interface).

[0036] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage devices corresponding to the data processing method in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the above-mentioned data processing method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the computer terminal 10 through a network. Examples of the above-mentioned network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.

[0037] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal 10. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0038] The display can be, for example, a touch-screen liquid crystal display (LCD), and the liquid crystal display enables a user to interact with the user interface of the computer terminal 10 (or mobile device).

[0039] Under the above operating environment, the present application provides a data processing method as Figure 2 shown. Figure 2 It is a flowchart of the data processing method according to Embodiment 1 of the present application.

[0040] Step S201, obtain the developed functional branches of the target project.

[0041] Optionally, devices such as electronic devices, application systems, and servers can be used as the execution subject. In this embodiment, the target processing system is used as the execution subject to execute the above-mentioned data processing method.

[0042] Optionally, the target project refers to a software project that is under development, testing, and deployment. It can be a project to be upgraded. According to different actual application scenarios, the business content of the target project is also different. For example, in a financial scenario, the target project can be an application for providing financial payment functions. Therefore, in this embodiment, the specific content of the target project is not specifically limited.

[0043] Optionally, in this embodiment, the target project is decomposed into multiple relatively independent functional branches. Each functional branch corresponds to a specific functional requirement. There may be dependencies between some of the functional branches, and each functional branch can be responsible for by multiple developers. The essence of a functional branch is code.

[0044] Optionally, developers can develop functions according to the business description information to obtain functional branches, and after the development is completed, submit the functional branches to the code repository. The target processing system can obtain the developed functional branches of the target project from the code repository.

[0045] Step S202: Perform branch verification on the functional branches based on the target environment, where the target environment includes at least one of the following: a development verification environment, a test environment, and a pre-production environment.

[0046] In some embodiments, the target environment includes at least one of the following: a development verification environment, a test environment, and a pre-production environment.

[0047] In some embodiments, the target environment includes a development verification environment, a test environment, and a pre-production environment.

[0048] Optionally, the development verification environment is used to perform functional verification on the functional branches, that is, to initially verify the correctness and functional integrity of the functional branches to ensure that the code logic is correct.

[0049] Optionally, the test environment is used to perform regression verification on the functional branches, that is, to perform regression testing and integration testing on the functional branches to ensure the compatibility and stability between the new functions and the existing functions of the target project.

[0050] Optionally, the pre-production environment is used to perform simulated production verification on the functional branches, that is, to simulate the configuration and conditions of the production environment and perform final performance, security, and stability tests on the functional branches.

[0051] In some embodiments, the target processing system can build an image package corresponding to the functional branch and then deploy the image package on the target environment to perform functional verification on the functional branch through the target environment.

[0052] Step S203: Deliver the functional branch to the target storage area when the functional branch verification is passed.

[0053] In some embodiments, when the target environment includes a development verification environment, a test environment, and a pre-production environment, the target processing system can determine that the functional branch verification is passed when the functional branch passes the verification in the development verification environment, the test environment, and the pre-production environment. Conversely, if any environment fails, it is determined that the functional branch verification fails.

[0054] Optionally, if the functional branch passes the verification, it is determined that the functional branch meets all test criteria and requirements. In this case, the functional branch can be delivered to the target storage area. For example, the image package corresponding to the functional branch can be stored in the target storage area to complete the delivery. The target storage area can be a database, a cloud server, etc.

[0055] Optionally, the functional branch can be automatically delivered after passing the verification. For example, once it is detected that the functional branch passes the verification, the functional branch is delivered to the target storage area.

[0056] Optionally, the functional branch can also be delivered manually after passing the verification. For example, after passing the verification, information indicating that the verification has passed is sent to the dedicated personnel. After receiving the information indicating that the verification has passed, the dedicated personnel can send a delivery instruction to the target processing system. Thus, when the target processing system receives the delivery instruction, the functional branch is delivered to the target storage area.

[0057] Step S204, for the functional branch that has been delivered to the target storage area, when other functional branches on which this functional branch depends have been delivered or deployed, this functional branch is deployed to the production environment, where other functional branches refer to functional branches in the target project other than this functional branch.

[0058] Optionally, there may be dependencies between some functional branches in the target project. For functional branches with dependencies, it is necessary to ensure that the dependent party is deployed in the production environment in advance relative to the dependent branch, or can be deployed in the production environment together with the dependent branch, to ensure that the dependent branch can run normally in the production environment.

[0059] For example, currently a certain project is at version 1.0 in the production environment, and developers are currently developing version 2.0. Version 2.0 is divided into three functional branches: A, B, and C. Among them, the A functional branch of version 2.0 depends on the C functional branch of version 2.0. Then, the A functional branch of version 2.0 is equivalent to the dependent branch, and the C functional branch of version 2.0 is equivalent to the dependent party. In this case, if the A functional branch of version 2.0 has been delivered to the target storage area, the target processing system needs to determine whether the C functional branch of version 2.0 has been delivered or deployed.

[0060] If the C functional branch of version 2.0 has been deployed, the A functional branch of version 2.0 can be directly deployed to the production environment. If the C functional branch of version 2.0 has been delivered, the C functional branch of version 2.0 can be first deployed to the production environment, and then the A functional branch of version 2.0 can be deployed to the production environment.

[0061] If the C function branch of version 2.0 is not deployed or delivered, temporarily prohibit the deployment of the A function branch of version 2.0 to the production environment until it is detected that the C function branch of version 2.0 has been delivered.

[0062] In the embodiments of the present application, by obtaining the developed function branches of the target project and performing branch verification on the function branches based on the target environment, independent testing of the independent function branches in the project is achieved, thereby achieving decoupling of different functional requirements in the project in the test dimension. When testing with the project version as the branch, if there are problems, a full-code review of all codes is required, which improves the testing efficiency. After the function branch verification is passed, when other function branches on which the delivered function branch depends have been delivered or deployed, the function branch is deployed to the production environment. On the one hand, decoupling of different functional requirements in the project in the production dimension is achieved, improving the project production efficiency. On the other hand, consideration of the dependency relationship between function branches is achieved, avoiding the situation where the function branch cannot be used normally after being put into production, and improving the reliability of the function branch production. It can be seen that the method provided by the present application achieves the purpose of independent delivery and production of different functional requirements in the project, realizes the technical effect of improving the project production efficiency, and solves the technical problem of low project production efficiency in the related art when delivering and putting the project into production based on the project version.

[0063] Optionally, in the data processing method provided in the embodiments of the present application, when the target environment includes a development verification environment, performing branch verification on the function branch based on the target environment includes: constructing an image package corresponding to the function branch and determining the project version to which the function branch belongs; deploying the image package in the development verification environment corresponding to the project version; and performing function verification on the image package through the development verification environment to obtain a first verification result.

[0064] Optionally, after the target processing system obtains the function branch, it can rely on the build script to construct an image package corresponding to the function branch based on the function branch. The image package contains all the dependencies and environment configurations required to run the function branch, ensuring the runnability of the function branch in any environment.

[0065] Optionally, each function branch is clearly associated with a project version when it is created. The project version to which the function branch belongs can be recorded in the branch description of the function branch or in a relevant table.

[0066] In order to improve the verification effect of functional branches, in this embodiment, different development verification environments are set for different project versions of the target project. After determining the project version to which the functional branch belongs, the target processing system can determine the development verification environment construction script corresponding to the project version, and then execute the development verification environment construction script to construct the development verification environment corresponding to the project version. Among them, the mapping relationship between the project version and the development verification environment construction script can be pre-stored in the target processing system.

[0067] Optionally, after constructing the development verification environment corresponding to the project version, the target processing system can deploy the image package in this development verification environment. This deployment method ensures the test independence of the functional branch through environment isolation, avoids environment conflicts and function interference, and improves the accuracy and efficiency of testing.

[0068] Optionally, after completing the deployment of the image package, the target processing system can execute the automated test script associated with the development verification environment in the development verification environment to perform functional verification on the functional branch. For example, perform interface testing, unit testing, etc. on the image package through the automated test script, so as to obtain the first verification result. Among them, the first verification result indicates whether the functional verification passes.

[0069] In some embodiments, the target processing system can also respond to the test instruction sent by the relevant staff and perform functional verification on the functional branch based on the test instruction.

[0070] It should be noted that by automatically building the image package and performing functional verification in the development verification environment, the speed of functional development and testing is effectively improved, the errors and delays of manual operations are reduced, and the code quality and software stability are improved. By testing the functional branch based on the development verification environment corresponding to the project version, the accuracy of the verification result can be effectively improved.

[0071] Optionally, in the data processing method provided in the embodiments of the present application, when the target environment includes a test environment, performing branch verification on the functional branch based on the target environment includes: building an image package corresponding to the functional branch and determining the project version to which the functional branch belongs; deploying the image package in the test environment corresponding to the project version; performing regression verification on the image package through the test environment to obtain the second verification result.

[0072] Optionally, after obtaining the functional branch, the target processing system can rely on the construction script to build the image package corresponding to the functional branch based on the functional branch. The image package contains all the dependencies and environment configurations required to run this functional branch, ensuring the runnability of the functional branch in any environment.

[0073] Optionally, each feature branch is explicitly associated with a project version when it is created. The project version to which the feature branch belongs can be recorded in the branch description of the feature branch or in a relevant table.

[0074] To improve the verification effect of feature branches, in this embodiment, different test environments are set for different project versions of the target project. After determining the project version to which the feature branch belongs, the target processing system can determine the test environment construction script corresponding to the project version, and then execute the test environment construction script to construct the test environment corresponding to the project version. Among them, the mapping relationship between the project version and the test environment construction script can be pre-stored in the target processing system.

[0075] Optionally, after constructing the test environment corresponding to the project version, the target processing system can deploy the image package in this test environment. This deployment method ensures the test independence of the feature branch through environment isolation, avoids environment conflicts and function interference, and improves the accuracy and efficiency of testing.

[0076] Optionally, after completing the deployment of the image package, the target processing system can execute the automated test script associated with the test environment in the test environment to perform regression verification on the feature branch. The regression verification is used to check the integration and compatibility of the new function (i.e., the feature branch being tested this time) of the target project with the existing functions (i.e., the functions already deployed in the production environment), ensure that no new problems and errors are introduced, and thus obtain the second verification result. Among them, the second verification result indicates whether the regression verification passes. Optionally, the regression verification includes but is not limited to regression testing, integration testing, performance and security testing, etc.

[0077] In some embodiments, the target processing system can also respond to the test instruction sent by the relevant staff and perform function verification on the feature branch based on the test instruction.

[0078] It should be noted that by automatically building the image package and performing regression verification in the test environment, the speed of function development and testing is effectively improved, the errors and delays of manual operations are reduced, and the code quality and software stability are improved. By testing the feature branch based on the test environment corresponding to the project version, the accuracy of the verification result can be effectively improved.

[0079] Optionally, in the data processing method provided in the embodiment of the present application, when the target environment includes a pre-production environment, performing branch verification on the feature branch based on the target environment includes: building an image package corresponding to the feature branch; deploying the image package in the pre-production environment; performing simulated production verification on the image package through the pre-production environment to obtain the third verification result.

[0080] Optionally, after obtaining the feature branch, the target processing system can rely on the build script to build the image package corresponding to the feature branch based on the feature branch.

[0081] Optionally, the pre-production environment is an environment highly similar to the production environment configuration, used for the final simulation production verification to ensure the correct operation and performance of the new feature (i.e., the current tested feature branch) in the actual production environment. In the pre-production environment, the new feature will undergo load and usage scenarios similar to those in the actual production environment to verify its performance, stability, and security. This includes, but is not limited to, stress testing, performance benchmark testing, security audits, and compatibility testing.

[0082] Optionally, the second verification result is used to represent whether the simulation production verification passes.

[0083] It should be noted that by building the image package and conducting simulation production verification in the pre-production environment, the stability and performance of the new feature in the actual production environment can be ensured, and the risk of failures in the production environment can be reduced. This method improves the accuracy and efficiency of verification through environment simulation and automated testing, and reduces production problems caused by environmental differences.

[0084] Optionally, in the data processing method provided in the embodiments of the present application, when the target environment includes a development verification environment, a test environment, and a pre-production environment, the branch verification of the feature branch based on the target environment includes: performing function verification on the feature branch based on the development verification environment to obtain a first verification result; when the first verification result represents that the function verification passes, performing regression verification on the feature branch based on the test environment to obtain a second verification result; when the second verification result represents that the regression verification passes, performing simulation production verification on the feature branch based on the pre-production environment to obtain a third verification result.

[0085] In some embodiments, when the target environment includes a development verification environment, a test environment, and a pre-production environment, the target processing system can sequentially perform function verification on the feature branch through the development verification environment, the test environment, and the pre-production environment.

[0086] Optionally, the target processing system can first perform function verification on the feature branch based on the development verification environment to obtain a first verification result. When the first verification result represents that the function verification fails, temporarily prohibit verifying the feature branch based on the test environment, but repair the problems of the feature branch so as to perform function verification again after the problems are repaired.

[0087] Optionally, when the first verification result indicates that the function verification is passed, regression verification is performed on the function branch based on the test environment to obtain a second verification result. When the second verification result indicates that the regression verification fails, temporarily prohibit verifying the function branch based on the quasi-production environment, but repair the problems of the function branch so that the function verification can be performed again after the problems are repaired.

[0088] Optionally, when the second verification result indicates that the regression verification is passed, simulation production verification is performed on the function branch based on the quasi-production environment to obtain a third verification result. When the third verification result indicates that the simulation production verification fails, temporarily prohibit delivering the function branch to the target storage area, but repair the problems of the function branch so that the function verification can be performed again after the problems are repaired.

[0089] Optionally, when the third verification result indicates that the simulation production verification is passed, it is determined that the function branch verification is passed, and the function branch can be delivered to the target storage area.

[0090] In some embodiments, when delivering the function branch to the target storage area, relevant personnel can set delivery precautions or a list of items to be known when launched into the market for the function branch, and generate a delivery version number.

[0091] It should be noted that through the above method, it is realized that the next verification is performed when the previous verification is passed, so that the situation of invalid verification can be avoided, and the verification efficiency can be effectively improved.

[0092] Optionally, in the data processing method provided in the embodiments of the present application, after delivering the function branch to the target storage area, the method further includes: obtaining dependency information associated with the function branch, where the dependency information includes the branch identifier and project version of other function branches on which the function branch depends; determining target information according to the branch identifier and project version in the dependency information, and the stored data in the target storage area and the deployment information of the production environment, where the target information indicates whether other function branches on which the function branch depends have been delivered and deployed.

[0093] Optionally, the dependency information associated with the function branch can be pre-entered into the target processing system by the staff. After the function branch is delivered to the target storage area, the target processing system can automatically read the dependency information of the function branch.

[0094] Optionally, the target processing system may search for the stored data in the target storage area based on the branch identifier and the project version. If the image package corresponding to the project version and the branch identifier can be found, it is determined that the dependent branch represented by the target information has been delivered. If the image package corresponding to the project version and the branch identifier cannot be found, the target processing system may determine whether the dependent branch has been deployed to the production environment based on the deployment information of the production environment. The deployment information includes at least the branch identifier and the project version of the deployed functional branch. If the dependent branch has been deployed to the production environment, it is determined that the dependent branch represented by the target information has been deployed. If the dependent branch has not been deployed to the production environment, it is determined that the dependent branch represented by the target information has not been delivered and not deployed.

[0095] It should be noted that through the above method, the accurate determination of whether the dependent functional branch has been delivered and whether it has been deployed is realized, so as to improve the reliability of the production of the functional branch.

[0096] Optionally, in the data processing method provided in the embodiments of the present application, after performing branch verification on the functional branch based on the target environment, in the case where the branch verification of the functional branch fails, the branch problem information of the functional branch is determined, the problem repair strategy matching the branch problem information is determined based on the branch problem information, the functional branch is repaired based on the problem repair strategy, and the repaired functional branch is re-verified for branches.

[0097] Optionally, in the case where at least one of the function verification, regression verification, and simulation production verification fails, it is determined that the branch verification of the functional branch fails.

[0098] Optionally, when performing function verification, regression verification, and simulation production verification, the target processing system may automatically record and analyze the reasons for failure to generate branch problem information. The branch problem information includes, but is not limited to: specific descriptions and location information of problems such as code errors, configuration problems, missing or incompatible dependencies, etc.

[0099] In some embodiments, a matching relationship between branch problem information and problem repair strategies may be preset in the target processing system. The target processing system may determine the problem repair strategy matching the current branch problem information based on this matching relationship, and thus repair the functional branch based on the problem repair strategy. The repair of the functional branch may involve code modification, environment reconfiguration, dependency library update, etc.

[0100] After the repair of the functional branch is completed, the target processing system may automatically re-trigger the verification process, deploy the image package of the repaired functional branch to the target environment again for testing to confirm whether the problem has been solved and whether the functional branch can continue the subsequent delivery process.

[0101] In some embodiments, if there are problems with the test or the market changes, this function needs to be invalidated, or the delivery date to the market needs to be changed, and it will directly enter the invalidation process or the change process. After invalidation, it will no longer be used. If it goes through the change process, it will continue with the continuous integration and deployment processes such as modification and verification.

[0102] It should be noted that through the above method, when there are problems with the feature branch, the feature branch can be repaired in a timely manner, thereby further improving the project production efficiency.

[0103] Thus, the method provided by this application achieves the purpose of independently delivering and putting into production different functional requirements in the project, realizes the technical effect of improving the project production efficiency, and solves the technical problem in the related art that project delivery and production based on the project version lead to low project production efficiency.

[0104] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0105] Embodiment 2

[0106] The embodiment of the present application also provides a data processing device. It should be noted that the data processing device in the embodiment of the present application can be used to execute the data processing method provided by the embodiment of the present application. The data processing device provided by the embodiment of the present application is introduced below.

[0107] According to the embodiment of the present application, there is also provided a device for implementing the above data processing method, as Figure 3 shown, the device includes:

[0108] The first acquisition module 301 is used to acquire the developed feature branches of the target project;

[0109] The first processing module 302 is used to perform branch verification on the feature branch based on the target environment, where the target environment includes at least one of the following: development verification environment, test environment, and pre-production environment;

[0110] The second processing module 303 is used to deliver the feature branch to the target storage area when the feature branch verification is passed;

[0111] The third processing module 304 is used to deploy the feature branch in the target storage area to the production environment when the other feature branches on which the feature branch depends have been delivered or deployed, where the other feature branches refer to the feature branches other than this feature branch in the target project.

[0112] In an embodiment of the present application, by obtaining the developed functional branches of a target project and performing branch verification on the functional branches based on a target environment, independent testing of the independent functional branches in the project is achieved. Thus, decoupling of different functional requirements in the project in terms of the testing dimension is realized. When testing with the project version as the branch, if there are problems, a code review of the entire codebase is required. By using this method, the testing efficiency is improved. After the functional branch verification passes, when other functional branches upon which the delivered functional branch depends have been delivered or deployed, the functional branch is deployed to the production environment. On the one hand, decoupling of different functional requirements in the project in terms of the production dimension is realized, improving the project production efficiency. On the other hand, consideration of the dependency relationship between functional branches is realized, avoiding the situation where the functional branch cannot be used normally after production, and improving the reliability of the functional branch production. It can be seen that the method provided by the present application achieves the purpose of independent delivery and production of different functional requirements in the project, realizes the technical effect of improving the project production efficiency, and solves the technical problem in the related art that project delivery and production based on the project version result in low project production efficiency.

[0113] Optionally, in the data processing device provided in the embodiment of the present application, the first processing module further includes: a first building sub-module, configured to build an image package corresponding to the functional branch and determine the project version to which the functional branch belongs; a first deployment sub-module, configured to deploy the image package in a development verification environment corresponding to the project version; a first verification sub-module, configured to perform functional verification on the image package through the development verification environment to obtain a first verification result.

[0114] Optionally, in the data processing device provided in the embodiment of the present application, the first processing module further includes: a second building sub-module, configured to build an image package corresponding to the functional branch and determine the project version to which the functional branch belongs; a second deployment sub-module, configured to deploy the image package in a test environment corresponding to the project version; a second verification sub-module, configured to perform regression verification on the image package through the test environment to obtain a second verification result.

[0115] Optionally, in the data processing device provided in the embodiment of the present application, the first processing module further includes: a third building sub-module, configured to build an image package corresponding to the functional branch; a third deployment sub-module, configured to deploy the image package in a quasi-production environment; a third verification sub-module, configured to perform simulated production verification on the image package through the quasi-production environment to obtain a third verification result.

[0116] Optionally, in the data processing device provided in the embodiments of the present application, the first processing module further includes: a fourth verification sub-module, configured to perform functional verification on the function branch based on a development verification environment to obtain a first verification result; a fifth verification sub-module, configured to perform regression verification on the function branch based on a test environment when the first verification result indicates that the functional verification is passed to obtain a second verification result; a sixth verification sub-module, configured to perform simulated production verification on the function branch based on a quasi-production environment when the second verification result indicates that the regression verification is passed to obtain a third verification result.

[0117] Optionally, in the data processing device provided in the embodiments of the present application, the data processing device further includes: a second acquisition module, configured to acquire dependency information associated with the function branch, where the dependency information includes branch identifiers of other function branches on which the function branch depends and project versions; a first determination module, configured to determine target information based on the branch identifiers and project versions in the dependency information, and the stored data in the target storage area and the deployment information of the production environment, where the target information indicates whether other function branches on which the function branch depends have been delivered and deployed.

[0118] Optionally, in the data processing device provided in the embodiments of the present application, the data processing device further includes: a second determination module, configured to determine branch problem information of the function branch when the function branch verification fails; a third determination module, configured to determine a problem repair strategy matching the branch problem information based on the branch problem information; a fourth processing module, configured to repair the function branch based on the problem repair strategy and re-perform branch verification on the repaired function branch.

[0119] It should be noted here that the above first acquisition module 301, first processing module 302, second processing module 303, and third processing module 304 correspond to steps S201 to S204 in Embodiment 1. The instances and application scenarios implemented by the four modules and the corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1 above. It should be noted that the above modules or units may be hardware components or software components stored in a memory (for example, memory 104) and processed by one or more processors (for example, processors 102a, 102b,..., 102n). The above modules may also be part of a device and may run on the computer terminal 10 provided in Embodiment 1.

[0120] Embodiment 3

[0121] Embodiments of the present application may provide an electronic device. Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present application. As Figure 4 shown, the electronic device may include: one or more ( Figure 4Only one) processor 1002, memory 1004, storage controller, and peripheral interface are shown, where the peripheral interface is connected to a radio frequency module, an audio module, and a display.

[0122] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the methods and apparatuses in the embodiments of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implements the above-mentioned methods. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory may further include a memory remotely disposed relative to the processor, and these remote memories may be connected to the terminal through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0123] The processor can call the information and application programs stored in the memory through a transmission device to perform the following steps: obtaining the developed functional branches of the target project; performing branch verification on the functional branches based on the target environment, where the target environment includes at least one of the following: a development verification environment, a test environment, and a pre-production environment; in the case where the functional branch verification is passed, delivering the functional branch to the target storage area; for the functional branches delivered in the target storage area, in the case where other functional branches on which the functional branch depends have been delivered or deployed, deploying the functional branch to the production environment, where the other functional branches refer to the functional branches other than the functional branch in the target project.

[0124] The processor can also call the information and application programs stored in the memory through a transmission device to perform the following steps: constructing an image package corresponding to the functional branch, and determining the project version to which the functional branch belongs; deploying the image package in the development verification environment corresponding to the project version; performing functional verification on the image package through the development verification environment to obtain a first verification result.

[0125] The processor can also call the information and application programs stored in the memory through a transmission device to perform the following steps: constructing an image package corresponding to the functional branch, and determining the project version to which the functional branch belongs; deploying the image package in the test environment corresponding to the project version; performing regression verification on the image package through the test environment to obtain a second verification result.

[0126] The processor can also call the information and application programs stored in the memory through a transmission device to perform the following steps: constructing an image package corresponding to the functional branch; deploying the image package in the pre-production environment; performing simulated production verification on the image package through the pre-production environment to obtain a third verification result.

[0127] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: perform functional verification on the functional branch based on the development verification environment to obtain a first verification result; in the case where the first verification result indicates that the functional verification is passed, perform regression verification on the functional branch based on the test environment to obtain a second verification result; in the case where the second verification result indicates that the regression verification is passed, perform simulated production verification on the functional branch based on the quasi-production environment to obtain a third verification result.

[0128] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: after delivering the functional branch to the target storage area, obtain the dependency information associated with the functional branch, where the dependency information includes the branch identifiers and project versions of other functional branches on which the functional branch depends; determine the target information based on the branch identifiers and project versions in the dependency information, as well as the stored data in the target storage area and the deployment information of the production environment, where the target information indicates whether the other functional branches on which the functional branch depends have been delivered and deployed.

[0129] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: after performing branch verification on the functional branch based on the target environment, in the case where the branch verification of the functional branch fails, determine the branch problem information of the functional branch; determine the problem repair strategy matching the branch problem information based on the branch problem information; repair the functional branch based on the problem repair strategy, and re-perform branch verification on the repaired functional branch.

[0130] In the embodiments of the present application, by obtaining the developed functional branches of the target project and performing branch verification on the functional branches based on the target environment, independent testing of the independent functional branches in the project is realized, thereby realizing the decoupling of different functional requirements in the project in the test dimension. When testing with the project version as the branch, if there are problems, it is necessary to perform code review on the full amount of code, which improves the test efficiency. After the branch verification of the functional branch is passed, in the case where the other functional branches on which the delivered functional branch depends have been delivered or deployed, deploy the functional branch to the production environment. On the one hand, it realizes the decoupling of different functional requirements in the project in the production dimension, improves the project production efficiency, and on the other hand, it realizes the consideration of the dependency relationship between functional branches, avoids the situation where the functional branch cannot be used normally after being put into production, and improves the reliability of the functional branch put into production. It can be seen that the method provided by the present application achieves the purpose of independently delivering and putting into production different functional requirements in the project, realizes the technical effect of improving the project production efficiency, and solves the technical problem of low project production efficiency caused by project delivery and production using the project version in the related art.

[0131] Those of ordinary skill in the art can understand that Figure 4 the structure shown is only illustrative, and the electronic device can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and terminal devices such as Mobile Internet Devices (MID), PAD, etc. Figure 4 It does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, a display device, etc.) than those shown Figure 4 in it, or have a different configuration from that shown Figure 4 in it.

[0132] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by a program instructing the hardware related to the terminal device, and the program can be stored in a computer-readable storage medium. The storage medium may include: a flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disc, etc.

[0133] Embodiment 4

[0134] An embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the above storage medium can be used to save the program code executed by the data processing method provided in the first embodiment above.

[0135] Optionally, in this embodiment, the above storage medium can be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.

[0136] The present application also provides a computer program product, which is suitable for executing a program of the data processing method steps when executed on a data processing device.

[0137] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0138] In the above embodiments of the present application, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0139] In several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings, direct couplings, or communication connections shown or discussed with each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.

[0140] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] In addition, in each embodiment of this application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0142] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of this application. The foregoing storage medium includes: various media such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs that can store program codes.

[0143] The above is only the preferred embodiment of this application. It should be noted that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of this application.

Claims

1. A data processing method, characterized in that: include: Get the developed functional branch of the target project; Perform branch verification on the functional branch based on the target environment, wherein the target environment includes at least one of the following: a development verification environment, a test environment, and a quasi-production environment; If the functional branch passes the verification, delivering the functional branch to the target storage area; For a delivered functional branch in the target storage area, if other functional branches on which the functional branch depends have been delivered or deployed, the functional branch is deployed to the production environment, wherein the other functional branches refer to functional branches other than the functional branch in the target project.

2. The method according to claim 1, characterized in that In the case where the target environment includes a development verification environment, performing branch verification on the functional branch based on the target environment includes: Build the image package corresponding to the functional branch, and determine the project version to which the functional branch belongs; Deploy the image package in a development and verification environment corresponding to the project version; Functional verification is performed on the mirror package through the development verification environment to obtain a first verification result.

3. The method according to claim 1, characterized in that In the case where the target environment includes a test environment, performing branch verification on the functional branch based on the target environment includes: Build the image package corresponding to the functional branch, and determine the project version to which the functional branch belongs; Deploy the image package in a test environment corresponding to the project version; Regression verification is performed on the mirror package through the test environment to obtain a second verification result.

4. The method according to claim 1, characterized in that: In the case where the target environment includes a quasi-production environment, branch verification is performed on the functional branch based on the target environment, including: Build the mirror package corresponding to the functional branch; Deploy the image package in the simulated production environment; The mirror package is subjected to simulated production verification through the simulated production environment to obtain a third verification result.

5. The method according to claim 1, characterized in that When the target environment includes a development verification environment, a test environment, and a quasi-production environment, branch verification is performed on the functional branch based on the target environment, including: Performing functional verification on the functional branch based on the development verification environment to obtain a first verification result; When the first verification result indicates that the functional verification has passed, performing regression verification on the functional branch based on the test environment to obtain a second verification result; When the second verification result indicates that the regression verification has passed, a simulated production verification is performed on the functional branch based on the simulated production environment to obtain a third verification result.

6. The method according to claim 1, characterized in that After delivering the functional branch to the target storage area, the method further includes: Obtaining dependency information associated with the functional branch, wherein the dependency information includes branch identifiers and project versions of other functional branches that the functional branch depends on; The target information is determined based on the branch identifier and the project version in the dependency information, as well as the stored data in the target storage area and the deployment information of the production environment, wherein the target information represents whether other functional branches on which the functional branch depends have been delivered and deployed.

7. The method according to claim 1, characterized in that After performing branch verification on the functional branch based on the target environment, the method further includes: In the case that the functional branch verification fails, determining branch problem information of the functional branch; Determine, based on the branch problem information, a problem repair strategy that matches the branch problem information; The functional branch is repaired based on the problem repair strategy, and branch verification is re-performed on the repaired functional branch.

8. A data processing device, characterized in that: include: The first acquisition module is used to acquire the developed functional branches of the target project; A first processing module is used to perform branch verification on a functional branch based on a target environment, wherein the target environment includes at least one of the following: a development verification environment, a test environment, and a quasi-production environment; A second processing module is used to deliver the functional branch to a target storage area if the functional branch is verified to be successful; The third processing module is used to deploy the delivered functional branch in the target storage area to the production environment if other functional branches on which the functional branch depends have been delivered or deployed, wherein the other functional branches refer to functional branches other than the functional branch in the target project.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the computer-readable storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory storing an executable program; A processor, used to run the program, wherein the program executes the data processing method according to any one of claims 1 to 7 when running.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the data processing method according to any one of claims 1 to 7 are implemented.