Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make zeebe-chaos compatible to 1.x #54

Merged
merged 2 commits into from
Apr 16, 2021

Conversation

korthout
Copy link
Member

This PR is created using a modified version of the script from camunda/camunda#6455:

#!/bin/bash

set -euo pipefail

ENGINE_PATTERN='(?![-\s]+(?i)engine)'
REPLACE_PATTERN="s/WORKFLOWS([\b-_\s])/WORKFLOWES\$1/g; s/(?i)(workflow)(?-i)s/\$1es/g; s/WORKFLOW${ENGINE_PATTERN}/PROCESS/g; s/w(?i)orkflow${ENGINE_PATTERN}/process/g; s/W(?i)orkflow${ENGINE_PATTERN}/Process/g; s/([Pp])rocesskey/\$1rocessDefinitionKey/gi;"

git mv chaos-experiments/scripts/await-workflows-with-result.sh chaos-experiments/scripts/await-processes-with-result.sh
git add -A
git commit -anm 'chore(project): rename workflow to process in filenames'


grep --exclude-dir={.git,node_modules,target,.ci,.github,vendor,docs} -i -e "workflow" -r . -l | xargs -n1 perl -i -wpl -e "${REPLACE_PATTERN}"

git add -A
git commit -anm 'chore(project): rename workflow to process in files'

This leaves usage of the word workflow only to files related to blog posts:

find ./ -name '*workflow*'
.//docs/_posts/2021-03-09-cont-workflow-instance.md
.//docs/assets/2020-08-06/resources-one-workflow.png
.//docs/assets/2020-08-06/general-one-workflow.png
ack 'workflow' --files-with-matches
docs/_posts/2020-06-04-first-chaos-day.md
docs/_posts/2020-07-16-big-multi-instance.md
docs/_posts/2020-07-30-experiment-without-exporters.md
docs/_posts/2020-08-20-experiment-with-camunda-cloud.md
docs/_posts/2020-10-20-non-graceful-shutdown.md
docs/_posts/2021-03-09-cont-workflow-instance.md
docs/_posts/2021-04-03-bpmn-meets-chaos-engineering.md
docs/_posts/2020-07-09-timer-and-huge-variables.md
docs/_posts/2021-01-26-deployments.md
docs/_posts/2020-11-03-investigate-failing-tests.md
docs/_posts/2020-08-06-low-load.md
docs/_posts/2020-11-11-job-timeouts.md
docs/_posts/2021-02-23-automate-deployments-dist.md
docs/_posts/2020-06-18-correlate-message-after-failover.md
docs/_posts/2020-11-24-message-correlation-after-failover.md
docs/_posts/2020-10-13-multiple-leader-changes.md
docs/_posts/2020-06-11-high-cpu-gateway.md
docs/assets/2020-10-27/README.md

@korthout korthout requested a review from ChrisKujawa April 13, 2021 09:00
Copy link
Member

@ChrisKujawa ChrisKujawa left a comment

Choose a reason for hiding this comment

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

@ChrisKujawa
Copy link
Member

Thanks 💯

@ChrisKujawa ChrisKujawa merged commit 5ab8249 into master Apr 16, 2021
@ChrisKujawa ChrisKujawa deleted the korthout-53-zeebe-1x-compatibility branch April 16, 2021 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants