Skip to content

Introduce engine version for workflow executions - #1617

Merged
sadeemsaleh merged 47 commits into
masterfrom
charles-environment-version
Oct 5, 2022
Merged

sadeemsaleh merged 47 commits into
masterfrom
charles-environment-version

Conversation

@liqinye

@liqinye liqinye commented Aug 7, 2022 •

Copy link
Copy Markdown
Contributor
  • fix issue that the file doesn't exist when running the APP. either manually create it and add it to the PR, or write a piece of code to handle creating the file for the first time

This PR introduces Texera engine version to each workflow execution. The engine version is a hash code created automatically when the Texera is run. The engine version is not shown in the front end but can be checked in the sql for now.
The database schema has changed -- a new column "environment_version" is added to the table workflow_executions. The corresponding ALTER TABLE command is: ALTER TABLE workflow_executions ADD COLUMN environment_version VARCHAR(128) NOT NULL.

@liqinye liqinye added feature ddl-change Changes to the TexeraDB DDL labels Aug 7, 2022
@liqinye
liqinye requested a review from sadeemsaleh August 7, 2022 05:36
@liqinye liqinye self-assigned this Aug 7, 2022

@sadeemsaleh sadeemsaleh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks nice, please address the minor comments.

@liqinye

liqinye commented Aug 12, 2022

Copy link
Copy Markdown
Contributor Author

Operator version is introduced. Any modification of the operators in the Texera will be traced (from the code implementation perspective). The Operator version we generated is the git commit hash code that is related to the latest operator implementation changes.
Now, the environment version that is associated with each execution would have engine version (front end) and operator version

Screen Shot 2022-08-12 at 12 18 34 AM

@liqinye
liqinye force-pushed the charles-environment-version branch from 1998e04 to 1740fb7 Compare August 27, 2022 04:30
@liqinye

liqinye commented Aug 27, 2022

Copy link
Copy Markdown
Contributor Author
  • Instead of having one operator version for all, we retrieve the latest git commit hash code for each operator individually.
  • The latest version of all operators are retrieved and updated once the Texera Web Application start to run and are stored into a file named operator_version.properties.
  • Each operator's own version is displayed like a footnote in the operator property editor (see the GIF below)
  • The corresponding version of the operator will be stored in sql so that it can be retrieved when we want to view a particular execution and see if the operator version has changed.

operator_version

@liqinye
liqinye requested a review from sadeemsaleh August 27, 2022 06:26
@liqinye

liqinye commented Aug 29, 2022

Copy link
Copy Markdown
Contributor Author

Operator version frontend display updated
Screen Shot 2022-08-29 at 10 55 01 AM

@sadeemsaleh sadeemsaleh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please address the comments

@sadeemsaleh

Copy link
Copy Markdown
Contributor

please add test cases

@liqinye

liqinye commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

Enable to highlight operator version if the operator version is different in workflow version track.
Demo:
opVersionHighlight

@liqinye
liqinye requested a review from sadeemsaleh September 8, 2022 07:44
# Conflicts:
#	core/new-gui/src/app/workspace/component/property-editor/operator-property-edit-frame/operator-property-edit-frame.component.ts
# Conflicts:
#	core/amber/src/main/scala/edu/uci/ics/texera/web/model/jooq/generated/tables/WorkflowExecutions.java
#	core/amber/src/main/scala/edu/uci/ics/texera/web/model/jooq/generated/tables/daos/WorkflowExecutionsDao.java
#	core/amber/src/main/scala/edu/uci/ics/texera/web/model/jooq/generated/tables/interfaces/IWorkflowExecutions.java
#	core/amber/src/main/scala/edu/uci/ics/texera/web/model/jooq/generated/tables/pojos/WorkflowExecutions.java
#	core/amber/src/main/scala/edu/uci/ics/texera/web/model/jooq/generated/tables/records/WorkflowExecutionsRecord.java
#	core/amber/src/main/scala/edu/uci/ics/texera/web/model/websocket/request/WorkflowExecuteRequest.scala
#	core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala
#	core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowJobService.scala
#	core/new-gui/src/app/workspace/service/execute-workflow/execute-workflow.service.ts
@sadeemsaleh
sadeemsaleh merged commit d3991cb into master Oct 5, 2022
@sadeemsaleh
sadeemsaleh deleted the charles-environment-version branch October 5, 2022 21:18
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
- [x] fix issue that the file doesn't exist when running the APP. either manually create it and add it to the PR, or write a piece of code to handle creating the file for the first time

This PR introduces Texera engine version to each workflow execution. The engine version is a hash code created automatically when the Texera is run. The engine version is not shown in the front end but can be checked in the sql for now.
The database schema has changed -- a new column "environment_version" is added to the table workflow_executions. The corresponding ALTER TABLE command is: `ALTER TABLE workflow_executions ADD COLUMN environment_version VARCHAR(128) NOT NULL`.

- [x] need to test if the version is changed, PR apache#1503 will highlight the label.

Co-authored-by: Liqin Ye <[email protected]>
Co-authored-by: sadeem <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ddl-change Changes to the TexeraDB DDL feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants