Software version integration method and system, electronic equipment and storage medium
By receiving and parsing the integration configuration file, installing the compilation environment and compiling the autonomous driving software version, the problem of integration difficulty and low efficiency in module development is solved, and flexible integration and efficient development of the software version are achieved.
Patent Information
- Application Number
- CN202310333886.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
During the module development process in the autonomous driving software system, the integration team can only integrate released versions of modules, which lacks flexibility, resulting in low software development efficiency and difficulty in verifying the integration effects of different module versions.
By receiving the integration configuration file sent by the client, it parses the environment, module and process configuration information, installs the compilation environment, pulls the source code of the target module, compiles and integrates the software version based on the process steps, and supports the integration of multiple platforms and any version.
It achieves flexible integration of software versions, improves development efficiency and problem analysis capabilities, enables developers of each module to integrate software versions by themselves, and reduces integration difficulty.
Smart Images

Figure CN118733100A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of software integration technology, and in particular to a software version integration method, system, electronic device and storage medium. Background Art
[0002] At present, the autonomous driving software system is usually composed of multiple modules, such as sensor fusion module, longitudinal control module, lateral control module, HMI module, etc. Each module is often developed by a different team. After the development of each module is completed, the integration team is responsible for integrating the release version of each module for testing. After passing the test, the autonomous driving software version is released to the outside world.
[0003] During the development of each module, if you need to verify the running effect after the entire integration, you need to wait until the integration team integrates a version before you can verify it. The integration team will often only integrate the module versions required for the current version release. If developers want to verify the effects of different versions of different modules at the same time, they can only coordinate different module developers to provide the corresponding versions of their modules, and then manually integrate them together for verification. The integration process is very troublesome and inflexible.
[0004] Therefore, how to flexibly integrate software versions and improve software development efficiency is a technical problem to be solved urgently in the present invention. Summary of the invention
[0005] The embodiments of the present invention provide a software version integration method, system, electronic device and storage medium, aiming to flexibly integrate software versions and improve software development efficiency.
[0006] A first aspect of an embodiment of the present invention provides a software version integration method, which is applied to a server, and the method includes:
[0007] Receiving an integration configuration file sent by a client, where the integration configuration file is generated by the client according to the acquired environment configuration information, module configuration information, and process configuration information;
[0008] Parsing the integration configuration file to obtain the environment configuration information, the module configuration information and the process configuration information;
[0009] Install the compilation environment according to the environment configuration information;
[0010] Pull the target version source code corresponding to the multiple target modules according to the module configuration information;
[0011] Based on the compilation environment and in accordance with the process steps in the process configuration information, the source code of the target version corresponding to each target module is compiled in turn to obtain multiple compilation results, and the integrated software of the target software version is obtained based on the compilation results.
[0012] Optionally, the environment configuration information includes at least: target framework version information and target platform SDK version information;
[0013] The step of installing the compilation environment according to the environment configuration information includes:
[0014] Pull the installation packages of the target framework version and the target platform SDK version according to the target framework version information and the target platform SDK version information;
[0015] The target framework corresponding to the target framework version is installed according to the installation package, and the target SDK corresponding to the SDK version of the target platform is installed.
[0016] Optionally, based on the compilation environment and according to the process steps in the process configuration information, the source code of the target version corresponding to each target module is compiled in sequence to obtain multiple compilation results, and the integrated software of the target software version is obtained based on the compilation results, including:
[0017] Determining multiple target platforms and process information corresponding to the multiple target platforms according to the process configuration information;
[0018] According to the process steps in the process information corresponding to each target platform, based on the target framework and the target SDK, the source code of the target version corresponding to each target module is compiled in each target platform in turn to obtain multiple compilation results under each target platform;
[0019] Integrate all compilation results under each target platform into integrated software of the target software version under each target platform;
[0020] Until the integration software of the target software version under all target platforms is integrated.
[0021] Optionally, after the integration of the integrated software of the target software versions under all target platforms is completed, the method further includes:
[0022] The integrated software of the target software versions under all the target platforms is saved, and functional verification is performed in sequence.
[0023] Optionally, when the process configuration information includes result uploading, the method further includes:
[0024] The integrated software of the target software version is uploaded to the integrated product hosting platform.
[0025] A second aspect of an embodiment of the present invention provides a software version integration method, which is applied to a client, and the method includes:
[0026] In response to the user's configuration operation, obtaining the environment configuration information, module configuration information and process configuration information configured by the user;
[0027] Generate an integration configuration file according to the environment configuration information, the module configuration information and the process configuration information;
[0028] The integration configuration file is sent to a server so that the server installs a compilation environment according to the environment configuration information in the integration configuration file, pulls source codes of target versions corresponding to multiple target modules according to the module configuration information in the integration configuration file, and compiles the source code of the target version corresponding to each target module in turn based on the compilation environment and the process steps in the process configuration information in the integration configuration file to obtain multiple compilation results, and integrates the target software version based on the compilation results.
[0029] A third aspect of an embodiment of the present invention provides a software version integration system, which is applied to a server, and the system includes:
[0030] A receiving module, used to receive an integration configuration file sent by a client, wherein the integration configuration file is generated by the client according to the acquired environment configuration information, module configuration information and process configuration information;
[0031] A parsing module, used to parse the integration configuration file to obtain the environment configuration information, the module configuration information and the process configuration information;
[0032] An environment compilation module, used to install a compilation environment according to the environment configuration information;
[0033] A source code pulling module, used to pull the source code of the target version corresponding to multiple target modules according to the module configuration information;
[0034] The version integration module is used to compile the source code of the target version corresponding to each target module in turn based on the compilation environment and according to the process steps in the process configuration information to obtain multiple compilation results, and integrate the integrated software of the target software version based on the compilation results.
[0035] Optionally, the environment configuration information includes at least: target framework version information and target platform SDK version information;
[0036] The environment compilation module includes:
[0037] An installation package acquisition module is used to pull the installation package of the target framework version and the SDK version of the target platform according to the target framework version information and the SDK version information of the target platform;
[0038] The environment compilation submodule is used to install the target framework corresponding to the target framework version according to the installation package, and to install the target SDK corresponding to the SDK version of the target platform.
[0039] Optionally, the version integration module includes:
[0040] A determination module, used to determine multiple target platforms and process information corresponding to the multiple target platforms according to the process configuration information;
[0041] A compilation result determination module is used to compile the source code of the target version corresponding to each target module on each target platform in turn according to the process steps in the process information corresponding to each target platform, based on the target framework and the target SDK, to obtain multiple compilation results on each target platform;
[0042] A first integration submodule is used to integrate all compilation results under each target platform into integrated software of the target software version under each target platform;
[0043] The second integration submodule is used to complete the integration of the target software versions under all target platforms.
[0044] Optionally, the system further includes:
[0045] The saving module is used to save the integrated software of the target software versions under all target platforms after the integration of the integrated software of the target software versions under all target platforms is completed, and perform function verification in sequence.
[0046] Optionally, when the process configuration information includes result uploading, the system further includes:
[0047] The uploading module is used to upload the integrated software of the target software version to the integrated product hosting platform.
[0048] A fourth aspect of an embodiment of the present invention provides a software version integration system, which is applied to a client, and the system includes:
[0049] An acquisition module, used to obtain the environment configuration information, module configuration information and process configuration information configured by the user in response to the configuration operation of the user;
[0050] A file generation module, used to generate an integrated configuration file according to the environment configuration information, the module configuration information and the process configuration information;
[0051] A sending module is used to send the integration configuration file to a server so that the server installs a compilation environment according to the environment configuration information in the integration configuration file, pulls source codes of target versions corresponding to multiple target modules according to the module configuration information in the integration configuration file, and compiles the source code of the target version corresponding to each target module in turn based on the compilation environment and the process steps in the process configuration information in the integration configuration file to obtain multiple compilation results, and obtains integrated software of the target software version based on the compilation results.
[0052] A fifth aspect of an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the software version integration method of the first aspect of the embodiment of the present invention or the software version integration method of the second aspect of the embodiment of the present invention is implemented.
[0053] A sixth aspect of an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the software version integration method of the first aspect of the embodiment of the present invention or the software version integration method of the second aspect of the embodiment of the present invention.
[0054] Through the software version integration method provided by the embodiment of the present invention, the server receives the integration configuration file sent by the client; parses the configuration file to obtain environment configuration information, module configuration information and process configuration information; installs the compilation environment according to the environment configuration information; pulls the source code of the target version corresponding to multiple target modules according to the module configuration information; based on the compilation environment and according to the process steps in the process configuration information, compiles the source code of the target version corresponding to each target module in turn to obtain multiple compilation results, and obtains the integrated software of the target software version based on the compilation results. In this way, this embodiment provides a very flexible software version integration method, through which various integration environments can be flexibly configured, any versions of each module that needs to be integrated, and any configuration process that can be specified, and then the integrated software of the target software version can be quickly integrated, making software integration very flexible and efficient, and also enabling the developers of each module to have the ability to integrate software versions, improving development efficiency and problem analysis capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0056] Figure 1 is a flow chart of a software version integration method shown in one embodiment of the present invention;
[0057] Figure 2 is a flow chart of a software version integration method shown in one embodiment of the present invention;
[0058] Figure 3 is a schematic diagram of an integrated configuration interface of an autonomous driving software version provided by an embodiment of the present invention;
[0059] Figure 4 is a flowchart of an autonomous driving software version integration method shown in one embodiment of the present invention;
[0060] Figure 5 is a structural block diagram of a software version integration system provided by an embodiment of the present invention;
[0061] Figure 6 is a structural block diagram of a software version integration system provided by an embodiment of the present invention;
[0062] Figure 7 It is a schematic diagram of an electronic device shown in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] refer to Figure 1 , Figure 1 FIG. 1 is a flow chart of a software version integration method according to an embodiment of the present invention. Figure 1 As shown, the software version integration method of this embodiment can be used for a server. The server of this embodiment can be a background server, which corresponds to a front end and a client. For example, the server can be a computer connected to the client for communication, etc. The software version integration method of this embodiment can include the following steps:
[0065] Step S11: receiving an integrated configuration file sent by a client, wherein the integrated configuration file is generated by the client according to the acquired environment configuration information, module configuration information and process configuration information.
[0066] The purpose of this embodiment is to integrate multi-module software versions, such as autonomous driving software versions and other software composed of multiple modules. In this embodiment, the server can receive an integration configuration file sent by the client, which is used for software version integration and is a configuration file generated by the client based on the acquired environment configuration information, module configuration information and process configuration information. In other words, the integration configuration file at least includes the environment configuration information, module configuration information and process configuration information selected by the user, so that the server can subsequently perform software version integration based on the integration configuration file.
[0067] Step S12: Parse the integration configuration file to obtain the environment configuration information, the module configuration information and the process configuration information.
[0068] In this embodiment, after receiving the integration configuration file sent by the client, the server can parse the integration configuration file, thereby parsing the environment configuration information, module configuration information and process configuration information in the integration configuration file. Among them, the environment configuration information is used to configure the compilation environment of the software; the module configuration information is used to determine the target module selected by the user and the target version corresponding to each target module; the process configuration information is used to determine the integration steps of the software.
[0069] Step S13: Install the compilation environment according to the environment configuration information.
[0070] In this embodiment, after parsing the environment configuration information in the integration configuration file, the server can install the corresponding compilation environment according to the environment configuration information, thereby ensuring that it is in the correct compilation environment subsequently, so as to ensure that the target software version can be integrated safely and quickly.
[0071] Step S14: Pull the source code of the target version corresponding to the multiple target modules according to the module configuration information.
[0072] In this embodiment, after parsing the module configuration information in the integrated configuration file, the server can determine multiple target modules and the target version corresponding to each target module according to the module configuration information. Among them, the module configuration information at least includes the module identifiers of multiple target modules and the version identifiers of the target versions corresponding to the target modules. Among them, the target module in this embodiment is the module determined according to the user's configuration operation, that is, the module selected by the user for software integration; the target version in this embodiment is the version corresponding to the target module determined according to the user's configuration operation, that is, the version corresponding to the target module selected by the user for software integration. For example, the server can determine that the target module is a map module according to the module configuration information, and the target version corresponding to the map module is the IF33_NID3.0 version.
[0073] In this embodiment, the server determines the module identifiers of multiple target modules and the version identifiers of the target versions corresponding to the target modules. According to the module identifiers of the multiple target modules and the version identifiers of the target versions corresponding to each target module, the server can pull the source codes of the target versions corresponding to the multiple target modules from the database and save them locally, thereby preparing for compilation.
[0074] Step S15: Based on the compilation environment and according to the process steps in the process configuration information, compile the source code of the target version corresponding to each target module in turn to obtain multiple compilation results, and integrate the integrated software of the target software version based on the compilation results.
[0075] In this embodiment, after installing the compilation environment and locally saving the source code of the target version corresponding to multiple target modules, the source code of the target version corresponding to each target module in the source code of the target version corresponding to the multiple target modules can be compiled in sequence based on the installed compilation environment according to the process steps in the process configuration information obtained by parsing, to obtain multiple compilation results, and then software integration is performed based on the obtained compilation results to obtain the integrated software of the target software version. Among them, the integrated software in this embodiment can refer to a software installation package, can also refer to software source code, and can also refer to a software identifier, and this embodiment does not impose any restrictions on this.
[0076] In this embodiment, a flexibly configurable software version integration method is provided, so that based on the integration environment, integration modules and versions, and integration process steps flexibly configured by the user, the integrated software of the target software version can be quickly integrated, so that each developer can quickly integrate the software version for testing and use, so that the development efficiency is improved, the integration difficulty is greatly reduced, and the development efficiency is further improved.
[0077] In combination with the above embodiments, in one implementation, an embodiment of the present invention further provides a software version integration method. In this method, the environment configuration information at least includes: target framework version information and target platform SDK version information; the above step S13 may specifically include the following steps:
[0078] Step A: Pull the installation packages of the target framework version and the SDK version of the target platform according to the target framework version information and the SDK version information of the target platform.
[0079] In this embodiment, the environment configuration information obtained by parsing the integration configuration file may at least include: target framework version information and target platform SDK version information. The target framework version information is the version information of the software development framework selected by the user, and the target platform is the platform selected by the user to use the target software version, that is, the software versions of which platforms need to be integrated as determined by the user. Each target platform has its own corresponding SDK (Software Development Kit), so the user can configure the SDK version of the target platform to specify the SDK under the target platform.
[0080] Based on this, this embodiment can pull the installation package of the target framework version corresponding to the target framework version information from the database, and pull the installation package of the SDK version of the target platform corresponding to the SDK version information of the target platform from the database according to the acquired target framework version information and the SDK version information of the target platform. Among them, the database for pulling the installation package of the target framework version, the database for pulling the installation package of the SDK version of the target platform, and the database for pulling the source code of the target versions corresponding to multiple target modules can be the same database or different databases, and this embodiment does not impose any restrictions on this.
[0081] Step B: installing the target framework corresponding to the target framework version and the target SDK corresponding to the SDK version of the target platform according to the installation package.
[0082] In this embodiment, after obtaining the installation package of the target framework version and the installation package of the SDK version of the target platform, the target framework corresponding to the target framework version can be installed according to the installation package of the target framework version, and the target SDK corresponding to the SDK version of the target platform can be installed according to the installation package of the SDK version of the target platform, thereby completing the installation of the compilation environment and ensuring that the subsequent compilation environment is correct.
[0083] In combination with the above embodiments, in one implementation, the present invention also provides a software version integration method. In this method, the above step S15 may specifically include the following steps:
[0084] Step C: Determine multiple target platforms and process information corresponding to the multiple target platforms according to the process configuration information.
[0085] In this embodiment, the user configures multiple target platforms for software version integration. The server can determine multiple target platforms and process information corresponding to each of the multiple target platforms based on the process configuration information obtained by parsing. In this embodiment, the user can select the target platform when performing process configuration, and select the process steps under each target platform.
[0086] For example, the target platform may be an X86 platform, an 8155 platform, etc., and based on each target platform, the process configuration corresponding to each target platform may be selected. For example, for the X86 platform, the selectable process steps may include but are not limited to: X86 compilation, X86 run check, result upload, etc.; and for the 8155 platform, the selectable process steps may include but are not limited to: 8155 platform compilation, source code pull, result upload, etc. The above are just some examples, and this embodiment does not impose any restrictions on this.
[0087] Step D: According to the process steps in the process information corresponding to each target platform, based on the target framework and the target SDK, compile the source code of the target version corresponding to each target module in each target platform in turn to obtain multiple compilation results in each target platform.
[0088] In this embodiment, after obtaining multiple target platforms and the process information corresponding to each of the multiple target platforms, the server can compile the source code of the target version corresponding to each target module on each target platform in turn according to the process steps in the process information corresponding to each target platform, based on the installed target framework and target SDK, thereby obtaining multiple compilation results on each target platform.
[0089] Step E: Integrate all compilation results under each target platform into integrated software of the target software version under each target platform.
[0090] In this embodiment, for each target platform, all compilation results under each target platform are obtained, and then software version integration can be performed based on all compilation results under each target platform, so as to integrate the integrated software of the target software version under each target platform based on all compilation results under each target platform.
[0091] Furthermore, after obtaining the compilation result for each target platform, the compilation result may be checked, so that all compilation results after the compilation check are integrated into integrated software of a target software version for each target platform.
[0092] Step F: until the integration software of the target software version under all target platforms is integrated.
[0093] In this embodiment, for each target platform configured by the user, the target software version under each target platform can be integrated through the above steps D and E until the integrated software of the target software versions under all target platforms is integrated.
[0094] Among them, in this embodiment, the order of integrating the target software versions of multiple target platforms can be random, or can be determined according to the order of configuration, or can be determined according to the order specified by the user, and this embodiment does not impose any restrictions on this.
[0095] It should be noted that this embodiment is for the case where the user configures multiple target platforms. Similarly, this embodiment is also applicable to the case where the user configures only one target platform.
[0096] In combination with the above embodiments, in one implementation, the present invention also provides a software version integration method. In this method, after the above step F, the following steps may also be included:
[0097] Step G: Save the integrated software of the target software versions under all the target platforms, and perform functional verification in sequence.
[0098] In this embodiment, after the target software versions under all target platforms are integrated, the integrated software of the target software versions under all target platforms can be saved, and the integrated software of all target software versions can be functionally verified or used in sequence. For functional verification, the integrated software of the target software version that has passed the functional verification can be pushed to the client, so that the user can use the integrated software of the target software version.
[0099] In combination with the above embodiments, in one implementation, an embodiment of the present invention further provides a software version integration method. In this method, when the process configuration information includes result upload, the method may further include the following steps in addition to the above steps:
[0100] Step H: Upload the integrated software of the target software version to the integrated product hosting platform.
[0101] In this embodiment, when the process configuration information configured by the user includes a "result upload" step, after the integrated software of the target software version is integrated, the integrated software of the target software version can be uploaded to the integrated product hosting platform.
[0102] In one embodiment, the integrated software of the target software version and the target software version identifier may be uploaded to the integrated product hosting platform in correspondence, so that the corresponding integrated software can be subsequently pulled according to the target software version identifier.
[0103] refer to Figure 2 , Figure 2 FIG. 1 is a flow chart of a software version integration method according to an embodiment of the present invention. Figure 2 As shown, the software version integration method of this embodiment can be used for the client. The client of this embodiment can refer to a program that provides local services to users. The client can implement the same software function in different program forms; for example, the client can be an application software APP, a small program, a web browser, etc. The software version integration method of this embodiment may include the following steps:
[0104] S21: In response to the configuration operation of the user, the environment configuration information, module configuration information and process configuration information configured by the user are obtained.
[0105] In this embodiment, the user can perform configuration operations for software version integration in the client, specifically, the configuration of environment information, module information and process information can be performed in the UI configuration interface of the client. For example, when the user needs to integrate a software version, firstly, the environment required for integration, modules to be integrated and the integration process need to be specified.
[0106] like Figure 3 As shown, Figure 3 It is a schematic diagram of an integrated configuration interface of an autonomous driving software version provided by an embodiment of the present invention. Figure 3 The configuration interface in includes multiple configuration options, such as environment configuration options, process configuration options, and component (i.e., module) configuration options, etc. Users can flexibly configure any autonomous driving software integration as needed. Among them, in the configuration interface, when the environment configuration item is initialized, it will automatically search for the available autonomous driving framework versions and third-party SDK versions of various platforms in the list, so that users can select the autonomous driving framework version and third-party SDK version to specify the environment configuration information required for integration.
[0107] Similarly, in Figure 3 The interface also lists all the autonomous driving software modules and all versions of each module. By checking the modules and the corresponding module source code versions, you can configure which versions of which modules to integrate. In addition, since the autonomous driving software can run on many platforms, it is necessary to configure which platforms' software versions to integrate. In the interface, users can configure the integration process by selecting the steps in the process configuration, thereby deciding which platforms' autonomous driving software versions to integrate.
[0108] The user can perform configuration operations in the configuration interface of the client, and the client can respond to the user's configuration operations and obtain the environment configuration information, module configuration information, and process configuration information configured by the user.
[0109] Step S22: Generate an integrated configuration file according to the environment configuration information, the module configuration information and the process configuration information.
[0110] In this embodiment, after the client obtains the environment configuration information, module configuration information and process configuration information configured by the user, it can generate an integration configuration file based on the environment configuration information, module configuration information and process configuration information. The configuration file at least includes the selected environment configuration options, integrated module information and process information, so that the subsequent integration process is completely integrated according to the integration configuration file.
[0111] Step S23: Send the integration configuration file to the server so that the server installs the compilation environment according to the environment configuration information in the integration configuration file, pulls the source code of the target version corresponding to multiple target modules according to the module configuration information in the integration configuration file, and compiles the source code of the target version corresponding to each target module in turn based on the compilation environment and the process steps in the process configuration information in the integration configuration file to obtain multiple compilation results, and obtains the integrated software of the target software version based on the compilation results.
[0112] In this embodiment, after the client generates an integration configuration file, it can send the integration configuration file to the server corresponding to the client, so that the server installs the compilation environment according to the environment configuration information in the integration configuration file, pulls the source code of the target version corresponding to multiple target modules according to the module configuration information in the integration configuration file, and compiles the source code of the target version corresponding to each target module in turn based on the compilation environment and the process steps in the process configuration information in the integration configuration file to obtain multiple compilation results, and obtains the integrated software of the target software version based on the compilation results.
[0113] Specifically, the specific description of software integration performed by the server may refer to any of the above-mentioned embodiments applied to the server, and this embodiment will not be described in detail here.
[0114] In this embodiment, a software version integration configuration interface is provided that can flexibly configure the integration environment, which modules to integrate, and which process steps to integrate, so that each developer can quickly integrate software versions for testing and use, so that development efficiency is improved, the integration difficulty is greatly reduced, and development efficiency is further improved.
[0115] In another embodiment, Figure 4 As shown, Figure 4 It is a flowchart of an autonomous driving software version integration method shown in an embodiment of the present invention.
[0116] exist Figure 4 In step 1: When you need to integrate an autonomous driving software version, you first need to specify the environment required for integration, which modules to integrate, and the integration process. Users can make relevant configurations in a UI configuration interface provided by the autonomous driving software version integration client. In this configuration interface, when the environment configuration item is initialized, it will automatically search for the available autonomous driving framework version and the third-party SDK versions of various platforms that the compilation depends on to the list. By selecting the autonomous driving framework version and the third-party SDK version that the compilation depends on, the environment configuration required for integration is specified;
[0117] Then, in the interface, all the autonomous driving software modules and all versions of each module are also listed. By checking the modules and the corresponding module source code versions, you can configure which versions of which modules to integrate.
[0118] In addition, since the autonomous driving software can run on many platforms, it is necessary to configure which software versions on which platforms to integrate. In the interface, the integration process is configured by selecting the steps in the process configuration, that is, the sequence of integration steps, to decide which versions on which platforms to integrate.
[0119] Step 2: After the environment, integration modules and integration processes required for integration are configured, the client will generate a configuration file based on the configuration information. The configuration file contains the selected environment configuration options, integration module information and process information. The subsequent integration process is completely based on this configuration file, that is, a configuration file for compiling integration dependencies is generated.
[0120] Step 3: After the configuration file is generated, the client can send the configuration file to the server so that the server can integrate the software version according to the configuration file:
[0121] 1. Install the compilation environment according to the configuration file: First, parse the compilation environment configuration required for integration (that is, the autonomous driving framework version and third-party SDK version selected through the interface) according to the configuration file, and then install the corresponding version of the autonomous driving framework version and third-party SDK version according to the configuration to complete the installation of the compilation environment and ensure that the subsequent compilation environment is correct.
[0122] 2. Pull the module code configured in the configuration file: Then parse the modules that need to be integrated and the corresponding version numbers from the configuration file, and pull the source code of the corresponding version of each module to the local in turn, ready for compilation.
[0123] 3. Compile the module code according to the configuration process in the configuration file: When the source code of the corresponding versions of the modules to be integrated are all pulled together and installed locally, compile each module on different platforms in turn according to the process configuration in the configuration file and check the compilation results. Integrate all the results after the compilation check into a software version of the compilation platform and store them temporarily. When the software versions of all platforms in the process configuration are integrated, you can copy the integration results to the temporary directory for function verification or use.
[0124] 4.Transfer the integration results: After all the configured platform versions are compiled according to the integration process in the configuration file, if the integration process contains the option to upload the compilation results, all the integrated versions will be uploaded to the integration product hosting platform; if this step is not configured, the results will not be uploaded.
[0125] As described above, this embodiment provides an autonomous driving software version integration method that can flexibly configure the integration environment and which modules to integrate. In this way, each developer can quickly integrate the software version for testing and use, thereby improving development efficiency, greatly reducing the difficulty of integration, and further improving development efficiency.
[0126] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0127] Based on the same inventive concept, an embodiment of the present invention provides a software version integration system 500, which is applied to a server. Figure 5 , Figure 5 FIG. 1 is a structural block diagram of a software version integration system provided by an embodiment of the present invention. Figure 5 As shown, the system 500 includes:
[0128] The receiving module 501 is used to receive an integrated configuration file sent by a client, where the integrated configuration file is generated by the client according to the acquired environment configuration information, module configuration information and process configuration information;
[0129] A parsing module 502 is used to parse the integration configuration file to obtain the environment configuration information, the module configuration information and the process configuration information;
[0130] An environment compilation module 503, used to install a compilation environment according to the environment configuration information;
[0131] A source code pulling module 504 is used to pull source codes of target versions corresponding to multiple target modules according to the module configuration information;
[0132] The version integration module 505 is used to compile the source code of the target version corresponding to each target module in turn based on the compilation environment and according to the process steps in the process configuration information to obtain multiple compilation results, and integrate the integrated software of the target software version based on the compilation results.
[0133] Optionally, the environment configuration information includes at least: target framework version information and target platform SDK version information;
[0134] The environment compilation module 503 includes:
[0135] An installation package acquisition module is used to pull the installation package of the target framework version and the SDK version of the target platform according to the target framework version information and the SDK version information of the target platform;
[0136] The environment compilation submodule is used to install the target framework corresponding to the target framework version according to the installation package, and to install the target SDK corresponding to the SDK version of the target platform.
[0137] Optionally, the version integration module 505 includes:
[0138] A determination module, used to determine multiple target platforms and process information corresponding to the multiple target platforms according to the process configuration information;
[0139] A compilation result determination module is used to compile the source code of the target version corresponding to each target module on each target platform in turn according to the process steps in the process information corresponding to each target platform, based on the target framework and the target SDK, to obtain multiple compilation results on each target platform;
[0140] A first integration submodule is used to integrate all compilation results under each target platform into integrated software of the target software version under each target platform;
[0141] The second integration submodule is used to complete the integration of the target software versions under all target platforms.
[0142] Optionally, the system 500 further includes:
[0143] The saving module is used to save the integrated software of the target software versions under all target platforms after the integration of the integrated software of the target software versions under all target platforms is completed, and perform function verification in sequence.
[0144] Optionally, when the process configuration information includes result uploading, the system 500 further includes:
[0145] The uploading module is used to upload the integrated software of the target software version to the integrated product hosting platform.
[0146] Based on the same inventive concept, an embodiment of the present invention provides a software version integration system 600, which is applied to a client. Figure 6 , Figure 6 FIG. 1 is a structural block diagram of a software version integration system provided by an embodiment of the present invention. Figure 6 As shown, the system 600 includes:
[0147] The acquisition module 601 is used to acquire the environment configuration information, module configuration information and process configuration information configured by the user in response to the configuration operation of the user;
[0148] A file generation module 602, used to generate an integrated configuration file according to the environment configuration information, the module configuration information and the process configuration information;
[0149] The sending module 603 is used to send the integration configuration file to the server so that the server installs the compilation environment according to the environment configuration information in the integration configuration file, pulls the source code of the target version corresponding to multiple target modules according to the module configuration information in the integration configuration file, and compiles the source code of the target version corresponding to each target module in turn based on the compilation environment and the process steps in the process configuration information in the integration configuration file to obtain multiple compilation results, and obtains the integrated software of the target software version based on the compilation results.
[0150] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the software version integration method described in any of the above embodiments of the present invention are implemented.
[0151] Based on the same inventive concept, another embodiment of the present invention provides an electronic device 700, such as Figure 7 shown. Figure 7 701 is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device includes a memory 702, a processor 701, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the steps in the software version integration method according to any of the above embodiments of the present invention are implemented.
[0152] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0153] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0154] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, embodiments of the present invention may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Moreover, embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0155] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0158] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0159] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0160] The above is a detailed introduction to a software version integration method, system, electronic device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A software version integration method, applied to a server, characterized in that: The method comprises: Receiving an integration configuration file sent by a client, where the integration configuration file is generated by the client according to the acquired environment configuration information, module configuration information, and process configuration information; Parsing the integration configuration file to obtain the environment configuration information, the module configuration information and the process configuration information; Install the compilation environment according to the environment configuration information; Pull the target version source code corresponding to the multiple target modules according to the module configuration information; Based on the compilation environment and in accordance with the process steps in the process configuration information, the source code of the target version corresponding to each target module is compiled in turn to obtain multiple compilation results, and the integrated software of the target software version is obtained based on the compilation results.
2. The software version integration method according to claim 1, characterized in that: The environment configuration information at least includes: target framework version information and target platform SDK version information; The step of installing the compilation environment according to the environment configuration information includes: Pull the installation packages of the target framework version and the target platform SDK version according to the target framework version information and the target platform SDK version information; The target framework corresponding to the target framework version is installed according to the installation package, and the target SDK corresponding to the SDK version of the target platform is installed.
3. The software version integration method according to claim 2, characterized in that: The method of compiling the target version source code corresponding to each target module in turn based on the compilation environment and according to the process steps in the process configuration information to obtain multiple compilation results, and integrating the target software version based on the compilation results, includes: Determining multiple target platforms and process information corresponding to the multiple target platforms according to the process configuration information; According to the process steps in the process information corresponding to each target platform, based on the target framework and the target SDK, the source code of the target version corresponding to each target module is compiled in each target platform in turn to obtain multiple compilation results under each target platform; Integrate all compilation results under each target platform into integrated software of the target software version under each target platform; Until the integration software of the target software version under all target platforms is integrated.
4. The software version integration method according to claim 3, characterized in that: After the integration of the integrated software of the target software versions under all target platforms is completed, the method further includes: The integrated software of the target software versions under all the target platforms is saved, and functional verification is performed in sequence.
5. The software version integration method according to any one of claims 1 to 4, characterized in that: In the case where the process configuration information includes result uploading, the method further includes: The integrated software of the target software version is uploaded to the integrated product hosting platform.
6. A software version integration method, applied to a client, characterized in that: The method comprises: In response to the user's configuration operation, obtaining the environment configuration information, module configuration information and process configuration information configured by the user; Generate an integration configuration file according to the environment configuration information, the module configuration information and the process configuration information; The integration configuration file is sent to a server so that the server installs a compilation environment according to the environment configuration information in the integration configuration file, pulls source codes of target versions corresponding to multiple target modules according to the module configuration information in the integration configuration file, and compiles the source code of the target version corresponding to each target module in turn based on the compilation environment and the process steps in the process configuration information in the integration configuration file to obtain multiple compilation results, and integrates the target software version based on the compilation results.
7. A software version integration system, applied to a server, characterized in that: The system comprises: A receiving module, used to receive an integration configuration file sent by a client, wherein the integration configuration file is generated by the client according to the acquired environment configuration information, module configuration information and process configuration information; A parsing module, used to parse the integration configuration file to obtain the environment configuration information, the module configuration information and the process configuration information; An environment compilation module, used to install a compilation environment according to the environment configuration information; A source code pulling module, used to pull the source code of the target version corresponding to multiple target modules according to the module configuration information; The version integration module is used to compile the source code of the target version corresponding to each target module in turn based on the compilation environment and according to the process steps in the process configuration information to obtain multiple compilation results, and integrate the integrated software of the target software version based on the compilation results.
8. A software version integration system, applied to a client, characterized in that: The system comprises: An acquisition module, used to obtain the environment configuration information, module configuration information and process configuration information configured by the user in response to the configuration operation of the user; A file generation module, used to generate an integrated configuration file according to the environment configuration information, the module configuration information and the process configuration information; A sending module is used to send the integration configuration file to a server so that the server installs a compilation environment according to the environment configuration information in the integration configuration file, pulls source codes of target versions corresponding to multiple target modules according to the module configuration information in the integration configuration file, and compiles the source code of the target version corresponding to each target module in turn based on the compilation environment and the process steps in the process configuration information in the integration configuration file to obtain multiple compilation results, and obtains integrated software of the target software version based on the compilation results.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by the processor, the software version integration method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the software version integration method according to any one of claims 1 to 6 is implemented.
