Skip to content

Commit

Permalink
train platform docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nautaa committed Feb 25, 2025
1 parent 5a9669c commit 39d791e
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 0 deletions.
66 changes: 66 additions & 0 deletions docs/docs/dev-env/how_to_submit_for_testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
title: 训练营平台使用说明
---

# 训练营平台使用说明

[训练营平台](https://open.oceanbase.com/train) 是 OceanBase 为学生和数据库开发者设计的数据库学习与练习平台,旨在帮助用户更高效地掌握数据库基础知识。通过该平台,开发者可以从零开始逐步理解数据库的底层原理和实现方式,参与数据库实践与开发练习。训练营平台支持为 MiniOB/OceanBase 代码提交测试,通过运行自动化测试用例,反馈用户提交代码的运行结果和问题。

## 如何使用训练营提交代码测试

用户可根据下面的流程进行提测。

### 1. 进入训练营平台并登陆训练营平台

打开训练营网站:https://open.oceanbase.com/train

你会看到训练营主页。

![](images/train_mainpage.png)

点击训练营主页上方的登陆/注册按钮登陆训练营平台。

### 2. 报名具体的训练营课题进行提测

登陆后再点击 `广场` 中的训练营课题的 `报名参加` 按钮报名具体的训练营课题。目前公开的训练营课题包含 `MiniOB` 对应 2021 年大赛题目;`MiniOB 2022` 对应 2022 年大赛题目;`MiniOB 2023` 对应 2023 年大赛题目;`MiniOB 2024` 对应 2024 年大赛题目。后续会增加更多的训练营课题。

![](images/train_miniob_2024.png)

### 3. 报名参考训练营课题并查看训练营课题的具体题目

对于不需要报名的训练营课题,在点击 `报名参加` 后,会自动跳转到训练营课题的题目页面。
对于需要报名的训练营课题,需要在点击 `报名参加` 后,填写自己的报名信息,再进入训练营课题的题目页面。(**注意**:如果找不到自己已报名的训练营课题,可以点击 `我加入的` 页面进行查看。)

进入到训练营课题你会看到如下页面。用户可以在题目列表查看该训练营课题对应的所有题目。如果要查看此题目排行榜,可点击「排行榜」按钮,目前只显示前 10 名及个人成绩,根据总分降序排列。
![](images/train_miniob_2024_question.png)

通过点击题目可以查看题目的详细描述,请参考题目的详细描述进行代码编写,和自测。
![](images/train_miniob_2024_question_detail1.png)
![](images/train_miniob_2024_question_detail2.png)

### 4. 提交代码测试
在完成本地代码编写和自测后,请将代码提交到 Github/Gitee 仓库中。
代码提交方法请参考[Github 代码提交](https://oceanbase.github.io/miniob/game/github-introduction/)[Gitee 代码提交](https://oceanbase.github.io/miniob/game/gitee-instructions/)

点击「立即提测」按钮后,会弹出代码提交窗口。请填写仓库地址,commit id 和 branch 等必要信息并点击提交按钮。

![](images/train_miniob_2024_submit_code.png)

### 5. 查看提测结果
提交代码后,训练营平台会运行自动化测试用例,并反馈用户提交代码的运行结果和问题(如果等待时间过长(miniob 相关课题等待超过 1 小时,oceanbase 相关题目超过 6 小时)可联系相关工作人员)。

![](images/train_contact_us.png)

可以点击 「查看提测记录」按钮查看提测结果。对于失败的测试用例,请点击下图中的按钮,即可查看失败的详细原因。

![](images/train_miniob_result.png)

如果在使用训练营平台的过程中有问题可以在 https://ask.oceanbase.com/ 提问,问题分类请选择 "训练营"。








Binary file added docs/docs/dev-env/images/train_contact_us.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docs/dev-env/images/train_mainpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docs/dev-env/images/train_miniob_2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docs/dev-env/images/train_miniob_result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ nav:
- dev-env/how_to_dev_miniob_by_docker_on_windows.md
- dev-env/how_to_dev_miniob_by_vscode.md
- dev-env/miniob-how-to-debug.md
- dev-env/how_to_submit_for_testing.md
- 设计文档:
- design/miniob-architecture.md
- design/miniob-buffer-pool.md
Expand Down

0 comments on commit 39d791e

Please # to comment.