This is an automated email from the ASF dual-hosted git repository.
wuzhiguo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/bigtop-manager.git
The following commit(s) were added to refs/heads/main by this push:
new b880b01 BIGTOP-4251: Add check typos on workflows (#88)
b880b01 is described below
commit b880b01c300b082046bcd280a22acdf65c89b143
Author: haopeng <[email protected]>
AuthorDate: Tue Oct 22 21:31:25 2024 +0800
BIGTOP-4251: Add check typos on workflows (#88)
---
.github/typos.toml | 2 ++
.github/workflows/ci.yml | 10 ++++++++++
README.md | 2 +-
.../org/apache/bigtop/manager/server/stack/dag/DAG.java | 2 +-
.../3.3.0/services/hdfs/configuration/hadoop-policy.xml | 4 ++--
.../bigtop/3.3.0/services/yarn/configuration/yarn-site.xml | 2 +-
bigtop-manager-ui/src/components/chatbot/chat-window.vue | 12 ++++++------
.../src/components/chatbot/platform-selection.vue | 4 ++--
bigtop-manager-ui/src/composables/use-chat-bot.ts | 14 +++++++-------
dev-support/README.md | 2 +-
10 files changed, 33 insertions(+), 21 deletions(-)
diff --git a/.github/typos.toml b/.github/typos.toml
new file mode 100644
index 0000000..7ef7094
--- /dev/null
+++ b/.github/typos.toml
@@ -0,0 +1,2 @@
+[default.extend-words]
+ser = "ser"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 01c878a..a20cc55 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,6 +24,16 @@ jobs:
cache: 'maven'
- run: ./mvnw clean spotless:check
+ check-typos:
+ name: "Check typos"
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@v4
+ - uses: crate-ci/typos@master
+ with:
+ config: .github/typos.toml
+
unit-tests-java:
name: "Run unit test(Java)"
runs-on: ubuntu-latest
diff --git a/README.md b/README.md
index 391f00a..299a695 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ mvn clean package -DskipTests
2. Run SQL DDL Script at
`bigtop-manager-server/src/main/resources/ddl/MySQL-DDL-CREATE.sql`
3. Insert Test SQL Data at `dev-support/example/bigtop_manager/user.sql`
4. Start bigtop-manager-server
`bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/ServerApplication.java`
-5. Start bigtop-manager-agent `similiar with run bm-server`
+5. Start bigtop-manager-agent `similar with run bm-server`
6. Start bigtop-manager-ui `configure nodejs environmment, default folder is
bigtop-manager-ui/node, then run with package.json`
7. Visit `http://localhost:5173/`, default login user & password are `"admin"`
diff --git
a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/stack/dag/DAG.java
b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/stack/dag/DAG.java
index 7e3733c..4d4dc4c 100644
---
a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/stack/dag/DAG.java
+++
b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/stack/dag/DAG.java
@@ -448,7 +448,7 @@ public class DAG<Node, NodeInfo, EdgeInfo> {
// save the node whose degree is not 0
Map<Node, Integer> notZeroIndegreeNodeMap = new HashMap<>();
- // Scan all the vertices and push vertexes with an entry degree of 0
to queue
+ // Scan all the vertices and push vertices with an entry degree of 0
to queue
for (Map.Entry<Node, NodeInfo> vertices : nodesMap.entrySet()) {
Node node = vertices.getKey();
int inDegree = getIndegree(node);
diff --git
a/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/hdfs/configuration/hadoop-policy.xml
b/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/hdfs/configuration/hadoop-policy.xml
index ac9aae6..93564f7 100644
---
a/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/hdfs/configuration/hadoop-policy.xml
+++
b/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/hdfs/configuration/hadoop-policy.xml
@@ -133,7 +133,7 @@
<name>security.mrhs.client.protocol.acl</name>
<value>*</value>
<description>ACL for HSClientProtocol, used by job clients to
- communciate with the MR History Server job status etc.
+ communicate with the MR History Server job status etc.
The ACL is a comma-separated list of user and group names. The
user and
group list is separated by a blank. For e.g. "alice,bob
users,wheel".
A special value of "*" means all users are allowed.
@@ -213,7 +213,7 @@
<name>security.job.client.protocol.acl</name>
<value>*</value>
<description>ACL for MRClientProtocol, used by job clients to
- communciate with the MR ApplicationMaster to query job status etc.
+ communicate with the MR ApplicationMaster to query job status etc.
The ACL is a comma-separated list of user and group names. The
user and
group list is separated by a blank. For e.g. "alice,bob
users,wheel".
A special value of "*" means all users are allowed.
diff --git
a/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/yarn/configuration/yarn-site.xml
b/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/yarn/configuration/yarn-site.xml
index 653fd96..8ff4395 100644
---
a/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/yarn/configuration/yarn-site.xml
+++
b/bigtop-manager-server/src/main/resources/stacks/bigtop/3.3.0/services/yarn/configuration/yarn-site.xml
@@ -121,7 +121,7 @@
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
<description>
- Auxilliary services of NodeManager.
+ Auxiliary services of NodeManager.
A valid service name should only contain a-zA-Z0-9_ and can not
start with numbers
</description>
</property>
diff --git a/bigtop-manager-ui/src/components/chatbot/chat-window.vue
b/bigtop-manager-ui/src/components/chatbot/chat-window.vue
index 713d203..7a63246 100644
--- a/bigtop-manager-ui/src/components/chatbot/chat-window.vue
+++ b/bigtop-manager-ui/src/components/chatbot/chat-window.vue
@@ -41,7 +41,7 @@
const {
loading,
receiving,
- messageReciver,
+ messageReceiver,
fetchSendChatMessage,
fetchThreadChatHistory
} = useChatBot()
@@ -58,7 +58,7 @@
)
const tempMsg = computed<ChatThreadHistoryItem>(() => ({
sender: 'AI',
- message: messageReciver.value || '...'
+ message: messageReceiver.value || '...'
}))
watch(isExpand, () => handleScrollToBottom())
@@ -80,7 +80,7 @@
inputText.value = (e.target as Element)?.textContent || ''
}
- const reciveMessage = async () => {
+ const receiveMessage = async () => {
try {
receiving.value = true
const { threadId, authId } = chatPayload.value
@@ -124,7 +124,7 @@
updateThreadChatHistory('USER', inputText.value as string)
handleScrollToBottom()
clearUpInputContent()
- reciveMessage()
+ receiveMessage()
}
const handleScrollToBottom = () => {
@@ -138,7 +138,7 @@
</script>
<template>
- <div class="platfrom-chat">
+ <div class="platform-chat">
<section class="chat-container">
<chat-msg-item
v-for="(chatItem, index) of tempHistory"
@@ -182,7 +182,7 @@
</template>
<style lang="scss" scoped>
- .platfrom-chat {
+ .platform-chat {
@include flexbox($direction: column, $justify: space-between);
position: relative;
height: 100%;
diff --git a/bigtop-manager-ui/src/components/chatbot/platform-selection.vue
b/bigtop-manager-ui/src/components/chatbot/platform-selection.vue
index c5ddb59..58a7208 100644
--- a/bigtop-manager-ui/src/components/chatbot/platform-selection.vue
+++ b/bigtop-manager-ui/src/components/chatbot/platform-selection.vue
@@ -50,7 +50,7 @@
})) as Option[]
})
- const platformSeletions = computed<SelectData[]>(() => [
+ const platformSelections = computed<SelectData[]>(() => [
{
title: t('ai.select_platform_to_authorize'),
hasDel: false,
@@ -86,7 +86,7 @@
<template>
<div class="platform-selection">
<a-spin :spinning="loading">
- <select-menu :select-data="platformSeletions" @select="onSelect" />
+ <select-menu :select-data="platformSelections" @select="onSelect" />
</a-spin>
</div>
</template>
diff --git a/bigtop-manager-ui/src/composables/use-chat-bot.ts
b/bigtop-manager-ui/src/composables/use-chat-bot.ts
index 227b373..feca96e 100644
--- a/bigtop-manager-ui/src/composables/use-chat-bot.ts
+++ b/bigtop-manager-ui/src/composables/use-chat-bot.ts
@@ -46,7 +46,7 @@ const useChatBot = () => {
const receiving = ref(false)
const checkLoading = ref(false)
const canceler = ref<Canceler>()
- const messageReciver = ref('')
+ const messageReceiver = ref('')
function formatAuthCredentials<T extends Object>(
authFormData: T
@@ -132,10 +132,10 @@ const useChatBot = () => {
}
}
- async function fetchCreateChatThread(platfromInfo: ChatThreadCondition) {
+ async function fetchCreateChatThread(platformInfo: ChatThreadCondition) {
try {
loading.value = true
- const data = await createChatThread(platfromInfo)
+ const data = await createChatThread(platformInfo)
return Promise.resolve(data)
} catch (error) {
console.log('error :>> ', error)
@@ -198,7 +198,7 @@ const useChatBot = () => {
}
const onMessageReceive = ({ event }: AxiosProgressEvent) => {
- messageReciver.value = event.target.responseText
+ messageReceiver.value = event.target.responseText
.split('data:')
.map((s: string) => {
return s.trimEnd()
@@ -207,8 +207,8 @@ const useChatBot = () => {
}
const onMessageComplete = () => {
- const formatResultMsg = messageReciver.value
- messageReciver.value = ''
+ const formatResultMsg = messageReceiver.value
+ messageReceiver.value = ''
cancelSseConnect()
return Promise.resolve({ message: formatResultMsg, state: true })
}
@@ -221,7 +221,7 @@ const useChatBot = () => {
}
return {
- messageReciver,
+ messageReceiver,
loading,
receiving,
checkLoading,
diff --git a/dev-support/README.md b/dev-support/README.md
index 5a7d735..98222b9 100644
--- a/dev-support/README.md
+++ b/dev-support/README.md
@@ -35,7 +35,7 @@ git clone https://github.com/apache/bigtop-manager.git
> You need to change the `node.version` in the `pom.xml` file under the
> `bigtop-manager-ui` module to `16.x` if you are using CentOS-7.
### **Step 3**: Build develop basic image
-Run the setup command, you will get `bigtop-manager/develop:trunk-rocky-8`
image. It has the enviroment needed to compile Bigtop-Manager and run servers
such as Bigtop-Manager Server, Bigtop-Manager Agent, Mysql, etc.
+Run the setup command, you will get `bigtop-manager/develop:trunk-rocky-8`
image. It has the environment needed to compile Bigtop-Manager and run servers
such as Bigtop-Manager Server, Bigtop-Manager Agent, Mysql, etc.
**RHEL (Rocky 8) :**
```shell