CN114064113A - Host version control method and device - Google Patents

Host version control method and device Download PDF

Info

Publication number
CN114064113A
CN114064113A CN202111428417.4A CN202111428417A CN114064113A CN 114064113 A CN114064113 A CN 114064113A CN 202111428417 A CN202111428417 A CN 202111428417A CN 114064113 A CN114064113 A CN 114064113A
Authority
CN
China
Prior art keywords
host
version
git
version management
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111428417.4A
Other languages
Chinese (zh)
Inventor
楚慧静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202111428417.4A priority Critical patent/CN114064113A/en
Publication of CN114064113A publication Critical patent/CN114064113A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The disclosure provides a host version control method, and relates to the technical field of cloud computing. The method comprises the following steps: deploying a distributed version management tool GIT in a Unix service system of a host, and writing a character escape module in a configuration environment of the Unix service system; responding to a GIT operation command initiated to a host by a user through a version management visualization platform, storing a storage path of a character escape module, a configuration path of the host and the GIT operation command in a database, reading data stored in the database by a command transceiver module, and installing a version management execution module in the configuration path of the Unix service system; the version management visualization platform establishes project mapping between a storage path of a file management system of the host and a configuration path of the Unix service system by calling the command transceiver module, and copies files stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping. The present disclosure also provides a host version control device, an electronic apparatus, a storage medium, and a program product.

Description

Host version control method and device
Technical Field
The disclosure relates to the technical field of cloud computing, in particular to a host version control method and device.
Background
Because the text coding formats of the large host and the platform end are not consistent, the operation and maintenance department of the large host does not use version control software consistent with the platform end in the readability text management of REXX script programs, JCL and the like on the host. In this case, there are more technical drawbacks, such as: text modification, labor division development and version iteration are carried out, and normative records are lacked; all file entities are stored in a copy backup mode, and a large amount of host storage resources are occupied; versions that are not saved in time will not be able to rollback; the host file system is not communicated with the platform, and the coding formats are not consistent; all host files can only manage operations on the host console.
Specifically, for the transaction data management tool IBM host system of the banking system, the operation interface between the user and the host system is JCL job and REXX program, which are scripts that the class platform side initiates tasks and are stored in the host file management system DATASET. Because the management field is blank, the code is limited and the development management of the management field is not consistent and effective with the platform boundary, most of the management fields are backup and recovery by using a manual copying method at a host terminal, cross-platform interactive development cannot be carried out in the transformation process of a bank research and development architecture, and the efficiency of version iteration and combined research and development is seriously hindered.
Therefore, at present, a mature version management solution in the platform boundary needs to be borrowed to form a version control scheme of a large host computer, so as to break the bottleneck that the host computer and the platform are inconsistent in code.
Disclosure of Invention
In view of the above disadvantages of the prior art, the present disclosure provides a method and an apparatus for controlling a host version.
According to a first aspect of the present disclosure, there is provided a host version control method including: the distributed version management tool GIT is deployed in a Unix service system of a host, a character escape module is written in a configuration environment of the Unix service system, and the character escape module is used for converting an IBM-1047 encoded file into an ASCII encoded file; responding to a GIT operation command initiated to a host by a user through a version management visualization platform, storing a storage path of a character escape module, a configuration path of the host and the GIT operation command in a database, reading data stored in the database by a command transceiver module, and installing a version management execution module in the configuration path of the Unix service system; the version management visualization platform establishes project mapping between a storage path of a file management system of the host and a configuration path of the Unix service system by calling a command transceiver module, and copies files stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping; and the version management execution module performs GIT version management on the files under the configuration path of the Unix service system according to the GIT operation command, and the execution result of the GIT version management is returned to the version management visualization platform through the command transceiver module.
According to an embodiment of the present disclosure, the operating system of the host is a z/OS operating system, and the files stored in the file management system include a job control language JCL and a scripting programming language REXX.
According to an embodiment of the disclosure, the method further comprises: and displaying the execution result of the GIT version management on a version management visualization platform.
According to the embodiment of the disclosure, after the step of displaying the execution result of the GIT version management, the method further comprises: files under the configuration path of the Unix service system form an updated target file after GIT version management, and the updated target file is transmitted and covered on the storage path of the file management system of the host through the command transceiver module.
According to an embodiment of the present disclosure, the GIT operation command includes a modify operation command, a delete operation command, a rollback operation command, a create branch operation command, or a merge operation command.
According to the embodiment of the present disclosure, before the step of responding to the GIT operation command initiated by the user to the host through the version management visualization platform, the method further includes: and a command transceiver module for transmitting data between the version management visualization platform and the host is created in advance.
According to an embodiment of the present disclosure, the database includes a Redis KEY model that includes a KEY KEY including a version number ID and a type value corresponding to the KEY KEY including a version fingerprint record.
According to an embodiment of the disclosure, the method further comprises: and the command transceiver module restores the version fingerprint record into the original text content by reading the Redis cache and the HASH algorithm in the Redis key value model.
A second aspect of the present disclosure provides a host version control apparatus, including: the system comprises a GIT deployment and character escape writing-in unit, a Unix service system and a character escape module, wherein the GIT deployment and character escape writing-in unit is used for deploying a distributed version management tool GIT in the Unix service system of a host, and the character escape module is written in a configuration environment of the Unix service system and is used for converting an IBM-1047 encoding file into an ASCII encoding file; the version management execution module installation unit is used for responding to a GIT operation command initiated to the host by a user through the version management visual platform, storing the storage path of the character escape module, the configuration path of the host and the GIT operation command in a database, reading data stored in the database by the command transceiver module, and installing the version management execution module in the configuration path of the Unix service system; the path mapping establishing and file copying unit is used for establishing project mapping of a storage path of a file management system of the host and a configuration path of the Unix service system by the version management visual platform through calling the command transceiving module, and copying files stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping; and the GIT version management unit is used for carrying out GIT version management on the files under the configuration path of the Unix service system by the version management execution module according to the GIT operation command, and the execution result of the GIT version management is returned to the version management visual platform through the command transceiver module.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the host version control method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described host version control method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described host version control method.
Compared with the prior art, the host version control method and the host version control device provided by the disclosure at least have the following beneficial effects:
(1) the method solves the bottleneck that the host code is inconsistent with the platform code, automatically completes the conversion of the host code, ensures that the host file is transparent to users in the cross-platform version management scene, applies the mature and effective version management system and method of the platform boundary to the host, and ensures that host developers can quickly change and return the version of the host program.
(2) The method and the system establish a cross-host and platform version management system, fill the blank in the field of cross-platform file version management, and respond to the current research and development architecture mode of double cores of a host platform in the banking field.
(3) The method independently develops the webpage of the host version management platform, so that the host version management can be operated at a webpage end, the operation process is completely automatic, visual and easy to use, and the process of continuously switching between the OMVS and the z/OS system is transparent to a user. Under the platform trend of bank host business, the system is suitable for maintaining the development project version with the host and the platform in a cross-system manner, for non-host system operation and maintenance personnel, the host operation threshold is reduced, and the system is in seamless connection with tool operations such as Gitlab and the like, so that the host version management is more efficient.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates a system architecture of a host version control method and apparatus according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a host version control method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates an operational schematic diagram of a host version control method according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of a platform expose and version update process according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a visualization effect diagram of a version management visualization platform according to a specific embodiment of the present disclosure;
FIG. 6 schematically shows a block diagram of a host version control apparatus according to an embodiment of the present disclosure;
fig. 7 schematically shows a block diagram of an electronic device adapted to implement a host version control method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a host version control method, a host version control device, equipment, a storage medium and a program product, and relates to the technical field of cloud computing. The method comprises the following steps: the distributed version management tool GIT is deployed in a Unix service system of a host, a character escape module is written in a configuration environment of the Unix service system, and the character escape module is used for converting an IBM-1047 encoded file into an ASCII encoded file; responding to a GIT operation command initiated to a host by a user through a version management visualization platform, storing a storage path of a character escape module, a configuration path of the host and the GIT operation command in a database, reading data stored in the database by a command transceiver module, and installing a version management execution module in the configuration path of the Unix service system; the version management visualization platform establishes project mapping between a storage path of a file management system of the host and a configuration path of the Unix service system by calling a command transceiver module, and copies files stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping; and the version management execution module performs GIT version management on the files under the configuration path of the Unix service system according to the GIT operation command, and the execution result of the GIT version management is returned to the version management visualization platform through the command transceiver module.
Before describing in detail specific embodiments of the present disclosure, technical terms are first explained to facilitate a better understanding of the present disclosure.
The GIT is an open-source distributed version control tool which is most widely used and most effectively managed in the development field at present, and is a mature open-source project which is developed and continuously maintained based on the kernel of a Linux operating system. The distributed version control system is mainly characterized in that each local version control system of a developer has a complete mirror image of a code warehouse, each mirror image has all history submission and change records of the project file, all data of the project are stored, and the local version control systems can communicate with each other. The version control mainly solves the problem of single node failure of a centralized version control system, and simultaneously, special functions and improvements such as offline submission, cross-region collaborative development and the like are newly added.
IBM-1047 code: the IBM host is a built-in form of encoding.
ASCII encoding: is the most common single-byte coding system today and is equivalent to the international standard ISO/IEC 646.
DATASET: is a collection of data, usually in tabular form. Each column represents a particular variable. Each row corresponds to a question of a data set of a certain member.
The script programming language (REXX) was a programming language invented by IBM in the 1980's. Its interpreter or compiler is found primarily on IBM's Mainframe Computer (Mainframe Computer), and also on VSE, VM, OS/400, AIX, OS/2, and other IBM platforms.
Job Control Language (JCL) is an interface between a user and an operating system, and the user controls execution of a Job according to his/her intention by a JCL statement.
The z/OS operating system is an operating system run by an IBM mainframe and is a specialized commercial operating system.
Redis key-value model: a typical key-value database is often used as an important basis for caching, killing, distributed locking, etc. scenarios. For example, user information (user ID, name, age, gender, etc.) is usually stored in a relational database, and in this scenario, one user ID corresponds to one user information set, which is a data model of a key-value database.
KEY and type Value: the Redis KEY-Value model is stored in the form of a KEY KEY and a type Value, wherein the KEY KEY is of a string type, and the type Value supports 5 different data types, namely string, list, set, sortedset and hash.
Redis caching: the system is an open source log-type and Key-Value database which is written by using C language, supports network, can be based on memory and can also be persistent, and provides Application Program Interfaces (API) of a plurality of languages.
The HASH Algorithm (HASH Algorithm or HASH Algorithm) is an Algorithm for creating small numbers or fingerprints from any file, and can map binary plaintext with any length into a shorter binary string, and different plaintext is difficult to map into the same HASH value.
Fig. 1 schematically illustrates a system architecture 100 suitable for a host version control method and apparatus according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a version management visualization platform 101, a command transceiver module 102, and a host 103.
The version management visualization platform 101 is responsible for displaying a host Unix System Services (USS) and file management system DATASET (dtauset) transmission file list and file transmission results for a user, and providing a visualization console window for the GIT operation command in a unified manner to display execution results.
The command transceiver module 102 is used to transmit data, which may include commands and configuration data, between the version management visualization platform 101 and the host 103.
Host 103 is primarily referred to as a remote mainframe. The user may log into version management visualization platform 101 by initiating a version change request for a similar version software installation command to a connectable remote mainframe. Wherein the host 103 comprises a file management system DATASET and a Unix system service USS.
It should be understood that the number of version management visualization platforms, command transceiver modules, and hosts in FIG. 1 is merely illustrative. There may be any number of versioning visualization platforms, command transceiver modules, and hosts, as desired for an implementation.
The host version control method of the disclosed embodiment will be described in detail below with reference to fig. 2 and 3 based on the system architecture described in fig. 1.
Fig. 2 schematically shows a flowchart of a host version control method according to an embodiment of the present disclosure. Fig. 3 schematically illustrates an operational schematic diagram of a host version control method according to an embodiment of the present disclosure.
With reference to fig. 2 and 3, the host version control method of this embodiment may include operations S210 to S240.
In operation S210, the distributed version management tool GIT is deployed in the hosted Unix service system, and a character escape module for converting the IBM-1047 encoded file into an ASCII encoded file is written in a configuration environment of the Unix service system.
In operation S220, in response to a GIT operation command initiated by a user to a host through a version management visualization platform, a storage path of the character escape module, a configuration path of the host, and the GIT operation command are stored in a database, data stored in the database is read by the command transceiver module, and a version management execution module is installed in the configuration path of the Unix service system.
In operation S230, the version management visualization platform establishes a project mapping between a storage path of the file management system of the host and a configuration path of the Unix service system by calling the command transceiver module, and copies the file stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping.
In operation S240, the version management execution module performs GIT version management on the file in the configuration path of the Unix service system according to the GIT operation command, and an execution result of the GIT version management is returned to the version management visualization platform through the command transceiver module.
According to the embodiment of the disclosure, code management tool GIT software is deployed at a host end; operation S220 installs the version management execution module in the configuration path specified by the Unix service system of the host, and operation S210 writes the character escape module in the configuration environment of the Unix service system, so that all host files can be automatically subjected to character escape during version management performed by the GIT, and the process is transparent to the user. Therefore, the method and the system solve the bottleneck that the host code is inconsistent with the platform code, automatically complete the conversion of the host code, ensure that the host file is transparent to users in the cross-platform version management scene, apply the mature and effective version management system and method of the platform boundary to the host, and ensure that host developers can quickly change and return the version of the host program.
The character escape module converts the IBM-1047 encoded file into an ASCII encoded file and provides a character transcoding conversion configuration file of the host and the platform. The database is used for storing a storage path of the character escape module, a configuration path of the host and the GIT operation command. The command transceiver module is responsible for reading the operation command or path data stored in the database, and initiating and issuing the required operation command from the platform to the host. And the version management execution module is responsible for receiving the GIT operation command sent by the command transceiver module, providing an execution environment, performing version management on the host file, reading the execution result of the GIT operation command in the USS environment of the host, and returning the execution result to the version management visual platform.
Specifically, in the embodiment of the present disclosure, the operating system of the host is a z/OS operating system, and the file stored in the file management system includes a job control language JCL and a script programming language REXX. Thus, as can be seen from fig. 3, in operation S230, the version management visualization platform calls the command transceiver module to establish an item mapping between a storage path of a file management system (i.e., DATASET data set system) of the z/OS operating system and a host USS configuration path. By reading the GIT operation command stored in the database, the DATASET file stored in the file management system is copied to the path corresponding to the USS environment of the host computer and can be managed by the GIT. For example, a user installs a command for version software launched to the host on the version management visualization platform, reads an operation command and configuration data in the database through the command transceiver module, and issues the operation command and configuration data to the remote host for version management.
And after receiving a GIT operation command initiated by the platform, a version management execution module in the host performs GIT version management on the file under the configuration path of the Unix service system.
FIG. 4 schematically shows a flow diagram of a platform expose and version update process according to an embodiment of the present disclosure.
As shown in fig. 4, after the above operation S40, the host version control method of this embodiment may further include operations S410 to S420.
In operation S410, the execution result of the GIT versioning is presented on the versioning visualization platform.
In operation S420, files in the configuration path of the Unix service system are managed by the GIT version to form an updated target file, and the updated target file is transmitted and overlaid on the storage path of the file management system of the host through the command transceiver module.
By the embodiment of the disclosure, the execution result of the GIT version management under the USS environment of the host is returned to the version management visual platform for front-end display. And when the execution result of the GIT version management is returned every time, the command transceiver module also automatically transmits the updated version of the USS file of the host to a storage path of a DATASET file management system of the z/OS operating system for covering, and the version updating is completed.
In the embodiment of the present disclosure, before the step of responding to the GIT operation command initiated by the user to the host through the version management visualization platform, the method further includes: and a command transceiver module for transmitting data between the version management visualization platform and the host is created in advance. Specifically, the SSH communication protocol configured by the z/OS operating system is utilized to realize the safe communication between the host GIT and the version management visual platform end.
In the embodiment of the present disclosure, the GIT operation command includes a modify operation command, a delete operation command, a rollback operation command, a create branch operation command, or a merge operation command. Therefore, a user can execute operations such as file modification, deletion, rollback, branch creation, merging and the like on the version management visualization platform end, and all the operations are stored in the distributed version management tool GIT as version records. Therefore, the method and the system construct a version management system of program tracking, iteration and rollback of the large host.
In the embodiment of the disclosure, the database includes a Redis KEY model, the Redis KEY model includes a KEY and a type value corresponding to the KEY, the KEY includes a version number ID, and the type value includes a version fingerprint record. Therefore, the command transceiver module can synchronously store the version fingerprint records in the Redis key value model of the database.
Further, the host version control method may further include: and the command transceiver module restores the version fingerprint record into the original text content by reading the Redis cache and the HASH algorithm in the Redis key value model. Therefore, the command transceiver module can restore the version fingerprint record to the original text content by reading the Redis cache and the HASH algorithm, and simultaneously returns the original text content to the version management visual platform for front-end display. Host load may be reduced using the Redis key-value model.
The version management visual platform is a platform webpage end window for a user to operate a host version management command window, file transmission, file and path creation and modification. Meanwhile, the version management visualization platform receives a return result from the command transceiver module, and displays the result, the version state and other information of the host GIT operation command after execution on the platform device in a unified manner.
Fig. 5 schematically illustrates a visualization effect diagram of a version management visualization platform according to a specific embodiment of the present disclosure.
As shown in fig. 5, after the user logs in, the corresponding version management operation is performed by selecting the item and the management branch. By querying a Redis key value model in a database, the version fingerprint record can be restored into an ASCII text and a version management operation log thereof, and a user can query the version record or execute a modified text, a backspace version and the like quickly.
For example, when a user logs in a version management visualization platform as shown in fig. 5, entering "host version management" - "host local warehouse" may implement the following functions.
(1) OMVS path: the OMVS path of the host computer visible in the user authority range can be managed and checked, the content under each path corresponds to a certain version library of a specific host computer one by one, and the host computer end is a service end. Since REXX programs, JCL jobs and the like of the host are stored and run under the z/OS subsystem in a data set form, and the z/OS subsystem does not have the concept of a version library, all files needing to be managed can be placed under the dataset of the z/OS and are communicated with a certain OMVS path.
(2) Remote warehouse path: when the mainframe warehouse is established, a remote warehouse path corresponding to each OMVS path, namely a path of the Gitlab community platform warehouse, can be configured to be a server side of Git. The mainframe warehouse can be connected with the Gitlab through an S004 device, and all original version control operations of Git, such as commands of backspacing, code merging, branch creation and the like, can be graphically operated on the Gitlab. The version library can be pulled from the Gitlab end and pushed to the host; or push host latest modified version libraries to Gitlab. Version code conversion is carried out through the step 001, the step is integrated into a D001 version management visualization platform, and a user does not need to manually operate the step.
(3) z/OS DATASET path: the version library is connected to the z/OS subsystem that the host actually saves and executes, and can be pulled from or pushed to DATASET. The code conversion is carried out through the step 001, the step is integrated into a D001 version management visualization platform, and a user does not need to operate manually.
(4) Description of the warehouse: the description records of the version library may be edited.
(5) A version area: and displaying the latest pulled and edited warehouse contents, including branch information, commit submission id and corresponding version record, and tag version label for quickly returning and releasing new branches. The list shows all files in the corresponding host version library. COPY is the version of the file that can be selected to be copied between OMVS path and DATASET of z/OS to update the target; EDIT provides an EDIT text window, and can open a file and modify text content; EXEC executes (REXX) or commits (JCL) the file in the host-corresponding environment by automatically distinguishing the file type in order to transfer the file version to the z/OS subsystem.
(5) And the remote Gitlab is the Gitlab platform of the community version.
The method and the system rely on the deployment of the GIT on the USS to develop an easy-to-use version management operating platform under the z/OS of the host, overcome the defects of manual version management, construct a visual and normalized large-scale host version management system, effectively utilize the management advantages of the GIT at the platform end, and improve the host version iteration and product research and development efficiency.
Therefore, the version control operation of the whole process of the host can be visualized at the platform end through the transfer of the version management visualization platform. The independently developed host version management platform webpage enables host version management to be operated at a webpage end, the operation process is completely automatic, visual and easy to use, and the process of continuously switching between the omvs and the z/OS subsystem is transparent to users. Under the platform trend of the banking host service, the system is suitable for maintaining the development project version with the host and the platform in a cross-system manner, for non-host system operation and maintenance personnel, the host operation threshold is lowered, and the system is in seamless connection with tool operations such as Gitlab and the like, so that the host version management is more efficient.
Based on the host version control method, the disclosure also provides a host version control device. The apparatus will be described in detail below with reference to fig. 6.
Fig. 6 schematically shows a block diagram of a host version control device according to an embodiment of the present disclosure.
As shown in fig. 6, the host version control apparatus 600 of this embodiment includes a GIT deployment and character escape writing unit 610, a version management execution module installing unit 620, a path mapping and file copying unit 630, and a GIT version management unit 640.
A GIT deploying and character escaping writing unit 610, configured to deploy the distributed version management tool GIT to the Unix service system of the host, and write a character escaping module in a configuration environment of the Unix service system, where the character escaping module is configured to convert an IBM-1047 encoded file into an ASCII encoded file. In an embodiment, the GIT deploy and character escape write unit 610 may be configured to perform the operation S210 described above, and will not be described herein again.
The version management execution module installing unit 620 is configured to, in response to a GIT operation command initiated by a user to the host through the version management visualization platform, store the storage path of the character escape module, the configuration path of the host, and the GIT operation command in the database, read data stored in the database by the command transceiver module, and install the version management execution module in the configuration path of the Unix service system. In an embodiment, the version management execution module installing unit 620 may be configured to execute the operation S220 described above, which is not described herein again.
And the path mapping establishing and file copying unit 630 is configured to establish a project mapping between a storage path of the file management system of the host and a configuration path of the Unix service system by the version management visualization platform by calling the command transceiver module, and copy the file stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping. In an embodiment, the path mapping establishing and file copying unit 630 may be configured to perform the operation S230 described above, which is not described herein again.
And the GIT version management unit 640 is used for the version management execution module to perform GIT version management on the file under the configuration path of the Unix service system according to the GIT operation command, and the execution result of the GIT version management is returned to the version management visualization platform through the command transceiver module. In an embodiment, the GIT version management unit 640 may be configured to perform the operation S240 described above, which is not described herein again.
By the embodiment of the disclosure, the bottleneck that the host code is inconsistent with the platform code is solved, the conversion of the host code is automatically completed, the host file is transparent to a user in a cross-platform version management scene, and the version management system and method which are mature and effective in the platform boundary are applied to the host, so that a host developer can quickly change and rollback the version of a host program.
According to the embodiment of the present disclosure, any plurality of modules in the GIT deploying and character escaping writing unit 610, the version management execution module installing unit 620, the path mapping and file copying unit 630, and the GIT version management unit 640 may be combined into one module to be implemented, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to the embodiment of the present disclosure, at least one of the GIT deploying and character escaping writing unit 610, the version management execution module installing unit 620, the path mapping and establishing and file copying unit 630 and the GIT version management unit 640 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementation manners of software, hardware and firmware, or by a suitable combination of any of them. Alternatively, at least one of the GIT deploying and character escaping writing unit 610, the version management execution module installing unit 620, the path mapping and file copying unit 630, and the GIT version management unit 640 may be at least partially implemented as a computer program module, which may perform a corresponding function when the computer program module is executed.
Fig. 7 schematically shows a block diagram of an electronic device adapted to implement a host version control method according to an embodiment of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM 702 and RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 700 may also include input/output (I/O) interface 705, which input/output (I/O) interface 705 is also connected to bus 704, according to an embodiment of the present disclosure. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement a host version control method according to an embodiment of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 702 and/or the RAM 703 and/or one or more memories other than the ROM 702 and the RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the host version control method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 701. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A host version control method includes:
deploying a distributed version management tool GIT to a Unix service system of the host, and writing a character escape module in a configuration environment of the Unix service system, wherein the character escape module is used for converting an IBM-1047 encoded file into an ASCII encoded file;
responding to a GIT operation command initiated to a host by a user through a version management visualization platform, storing a storage path of a character escape module, a configuration path of the host and the GIT operation command in a database, reading data stored in the database by a command transceiver module, and installing a version management execution module in the configuration path of the Unix service system;
the version management visualization platform establishes project mapping between a storage path of a file management system of the host and a configuration path of the Unix service system by calling the command transceiver module, and copies files stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping;
and the version management execution module performs GIT version management on the files under the configuration path of the Unix service system according to the GIT operation command, and the execution result of the GIT version management is returned to the version management visualization platform through the command transceiver module.
2. The method of claim 1, wherein the operating system of the host is a z/OS operating system and the files stored in the file management system include a job control language JCL and a scripting programming language REXX.
3. The method of claim 1, wherein the method further comprises:
and displaying the execution result of the GIT version management on the version management visualization platform.
4. The method of claim 3, wherein the step of exposing the execution result of the GIT version management is followed by further comprising:
and the files under the configuration path of the Unix service system form an updated target file after being managed by the GIT version, and the updated target file is transmitted and covered on the storage path of the file management system of the host through a command transceiver module.
5. The method of claim 1, wherein the GIT operation command comprises a modify operation command, a delete operation command, a rollback operation command, a create branch operation command, or a merge operation command.
6. The method of claim 1, wherein the step of responding to a user initiated GIT operation command to the host through the version management visualization platform is preceded by the step of:
the command transceiver module for transmitting data between the version management visualization platform and a host is created in advance.
7. The method of claim 1, wherein the database includes a Redis KEY model that includes a KEY KEY including a version number ID and a type value corresponding to the KEY KEY including a version fingerprint record.
8. The method of claim 7, wherein the method further comprises:
and the command transceiver module restores the version fingerprint record into original text content by reading Redis cache and HASH algorithm in the Redis key value model.
9. A host version control device, comprising:
a GIT deployment and character escape writing unit, configured to deploy a distributed version management tool GIT to a Unix service system of the host, and write a character escape module in a configuration environment of the Unix service system, where the character escape module is configured to convert an IBM-1047 encoded file into an ASCII encoded file;
the version management execution module installation unit is used for responding to a GIT operation command initiated to the host by a user through the version management visualization platform, storing the storage path of the character escape module, the configuration path of the host and the GIT operation command in a database, reading data stored in the database by the command transceiver module, and installing the version management execution module in the configuration path of the Unix service system;
the path mapping establishing and file copying unit is used for the version management visualization platform to establish project mapping of a storage path of a file management system of the host and a configuration path of the Unix service system by calling the command transceiver module, and copy files stored in the file management system to the configuration path corresponding to the Unix service system according to the project mapping; and
and the GIT version management unit is used for performing GIT version management on the file under the configuration path of the Unix service system by the version management execution module according to the GIT operation command, and the execution result of the GIT version management is returned to the version management visual platform through the command transceiver module.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 8.
CN202111428417.4A 2021-11-26 2021-11-26 Host version control method and device Pending CN114064113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111428417.4A CN114064113A (en) 2021-11-26 2021-11-26 Host version control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111428417.4A CN114064113A (en) 2021-11-26 2021-11-26 Host version control method and device

Publications (1)

Publication Number Publication Date
CN114064113A true CN114064113A (en) 2022-02-18

Family

ID=80276983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111428417.4A Pending CN114064113A (en) 2021-11-26 2021-11-26 Host version control method and device

Country Status (1)

Country Link
CN (1) CN114064113A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002121A (en) * 2022-08-03 2022-09-02 浩鲸云计算科技股份有限公司 Method for realizing one-master multi-slave Git cluster based on preemption lock
CN117648122A (en) * 2024-01-25 2024-03-05 北京一谈网络科技有限公司 Visual code warehouse optimization method, system, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002121A (en) * 2022-08-03 2022-09-02 浩鲸云计算科技股份有限公司 Method for realizing one-master multi-slave Git cluster based on preemption lock
CN117648122A (en) * 2024-01-25 2024-03-05 北京一谈网络科技有限公司 Visual code warehouse optimization method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
US8250568B2 (en) Installing and upgrading an application in a computer system
US11429365B2 (en) Systems and methods for automated retrofitting of customized code objects
US20200183795A1 (en) Method and apparatus for processing information
US7937698B2 (en) Extensible mechanism for automatically migrating resource adapter components in a development environment
US20120167090A1 (en) Hypervisor for starting a virtual machine
US9658944B2 (en) Generic test automation for graphical user interface (GUI) applications
CN114064113A (en) Host version control method and device
US10846081B2 (en) System and method for code synchronization between mainframe environment and distributed environment
US10565162B2 (en) Systems and methods for customized operating system conversion
US11714747B2 (en) Executing integration scenario regression tests in customer landscapes
CN107368353B (en) Method and device for realizing hot addition of virtual machine memory
US20200409686A1 (en) Systems and methods for updating virtual machines
US10877681B2 (en) Systems and methods for redundant array data alignment
US11288062B2 (en) Automatic source code refactoring
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
US11853752B2 (en) Migration of web applications between different web application frameworks
CN110865829B (en) Database upgrading method, system, equipment and storage medium
CN111459506B (en) Deep learning platform cluster deployment method and device, medium and electronic equipment
CN113377342B (en) Project construction method and device, electronic equipment and storage medium
US11593098B2 (en) Synchronization of source code under development in multiple concurrent instances of an integrated development environment
CN114035864A (en) Interface processing method, interface processing device, electronic device, and storage medium
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium
US11853275B2 (en) Upgrading a database management system deployed in a cloud platform
US20230401182A1 (en) Migrating deployment infrastructure containers across different databases
US20240036840A1 (en) Deferred formula computation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination