Skip to content

Commit 1efbe5e

Browse files
committed
Fixing some typos.
1 parent f267aa9 commit 1efbe5e

11 files changed

Lines changed: 38 additions & 38 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ set(SOURCE_FILES
156156
${TASKS_DIR}/internal/mkdir_task.cpp
157157
${TASKS_DIR}/internal/rm_task.h
158158
${TASKS_DIR}/internal/rm_task.cpp
159-
${TASKS_DIR}/internal/archivate_task.h
160-
${TASKS_DIR}/internal/archivate_task.cpp
159+
${TASKS_DIR}/internal/archive_task.h
160+
${TASKS_DIR}/internal/archive_task.cpp
161161
${TASKS_DIR}/internal/extract_task.h
162162
${TASKS_DIR}/internal/extract_task.cpp
163163
${TASKS_DIR}/internal/fetch_task.h

recodex-worker.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
%define name recodex-worker
22
%define short_name worker
33
%define version 1.9.1
4-
%define unmangled_version 885c6bb4b3fa8e21400636f1bee1aefed19956e9
5-
%define release 1
4+
%define unmangled_version f267aa9d46aa908c56632af351d51f140de7e01c
5+
%define release 2
66

77
%define spdlog_name spdlog
88
%define spdlog_version 0.13.0

src/config/task_results.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum class task_status { OK, FAILED, SKIPPED };
2323

2424
/**
2525
* Sandbox results.
26-
* @note Not all items must be returned from sandbox, so some defaults may aply.
26+
* @note Not all items must be returned from sandbox, so some defaults may apply.
2727
*/
2828
struct sandbox_results {
2929
/**
@@ -42,7 +42,7 @@ struct sandbox_results {
4242
*/
4343
float wall_time = 0;
4444
/**
45-
* Flag if program exited normaly or was killed.
45+
* Flag if program exited normally or was killed.
4646
* Default: false
4747
*/
4848
bool killed = false;
@@ -139,7 +139,7 @@ struct task_results {
139139
std::unique_ptr<sandbox_results> sandbox_status = nullptr;
140140

141141
/**
142-
* Constructor with default values initiazation.
142+
* Constructor with default values initialization.
143143
*/
144144
task_results() = default;
145145
/**

src/job/job.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace fs = std::filesystem;
2626
* Job is built from configuration in which all information should be provided.
2727
* Job building results in task tree and task queue in which task should be evaluated.
2828
* @note During construction job_metadata structure is given. This structure is editable and
29-
* there is posibility it can be changed by whoever constructed a job class.
29+
* there is possibility it can be changed by whoever constructed a job class.
3030
* In actual ReCodEx worker this situation can never happen. But be aware of this and keep it in mind in other coding.
3131
* Also do not change job_metadata or task_metadata structure between construction of tasks and its execution.
3232
* If you do it, you should watch your back, devil will be always very close!
@@ -41,7 +41,7 @@ class job
4141
* @param job_meta
4242
* @param worker_conf
4343
* @param working_directory Directory for temporary saving of files by tasks. Example
44-
* use case is storing isolate's meta log file.
44+
* use case is storing sandbox's meta log file.
4545
* @param source_path path to source codes of submission
4646
* @param result_path path to directory containing all results
4747
* @param factory used in creation of task objects
@@ -120,7 +120,7 @@ class job
120120
*/
121121
void prepare_job_vars();
122122
/**
123-
* Replace occurences of job config variables and return the resulting string
123+
* Replace occurrences of job config variables and return the resulting string
124124
* @param src scanned string for variables
125125
* @return new string with all variables replaced with values
126126
*/

src/sandbox/isolate_sandbox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ void isolate_sandbox::isolate_run(const std::string &binary, const std::vector<s
296296
waitpid(childpid, &status, 0);
297297
// Kill control process. If it already exits, nothing will be done
298298
kill(controlpid, SIGKILL);
299-
// Remove zombie from controll process.
299+
// Remove zombie from control process.
300300
waitpid(controlpid, NULL, 0);
301301

302302
// isolate was killed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include "archivate_task.h"
1+
#include "archive_task.h"
22
#include "archives/archivator.h"
33

44

5-
archivate_task::archivate_task(std::size_t id, std::shared_ptr<task_metadata> task_meta) : task_base(id, task_meta)
5+
archive_task::archive_task(std::size_t id, std::shared_ptr<task_metadata> task_meta) : task_base(id, task_meta)
66
{
77
if (task_meta_->cmd_args.size() != 2) {
88
throw task_exception(
@@ -11,7 +11,7 @@ archivate_task::archivate_task(std::size_t id, std::shared_ptr<task_metadata> ta
1111
}
1212

1313

14-
std::shared_ptr<task_results> archivate_task::run()
14+
std::shared_ptr<task_results> archive_task::run()
1515
{
1616
std::shared_ptr<task_results> result(new task_results());
1717

Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
#ifndef RECODEX_WORKER_INTERNAL_ARCHIVATE_TASK_H
2-
#define RECODEX_WORKER_INTERNAL_ARCHIVATE_TASK_H
1+
#ifndef RECODEX_WORKER_INTERNAL_ARCHIVE_TASK_H
2+
#define RECODEX_WORKER_INTERNAL_ARCHIVE_TASK_H
33

44
#include "tasks/task_base.h"
55

66

77
/**
8-
* Create archive using @ref archivator.
8+
* Create archive using @ref archivist.
99
*/
10-
class archivate_task : public task_base
10+
class archive_task : public task_base
1111
{
1212
public:
1313
/**
1414
* Constructor with initialization.
15-
* @param id Unique identificator of load order of tasks.
15+
* @param id Unique identifier of load order of tasks.
1616
* @param task_meta Variable containing further info about task. It's required that
1717
* @a cmd_args entry has just 2 arguments - directory to be archived and name of the archive.
18-
* For more info about archivation see @ref archivator class.
18+
* For more info about activation see @ref archivist class.
1919
* @throws task_exception on invalid number of arguments.
2020
*/
21-
archivate_task(std::size_t id, std::shared_ptr<task_metadata> task_meta);
21+
archive_task(std::size_t id, std::shared_ptr<task_metadata> task_meta);
2222
/**
2323
* Destructor.
2424
*/
25-
~archivate_task() override = default;
25+
~archive_task() override = default;
2626
/**
2727
* Run the action.
2828
* @return Evaluation results to be pushed back to frontend.
2929
*/
3030
std::shared_ptr<task_results> run() override;
3131
};
3232

33-
#endif // RECODEX_WORKER_INTERNAL_ARCHIVATE_TASK_H
33+
#endif // RECODEX_WORKER_INTERNAL_ARCHIVE_TASK_H

src/tasks/task_factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ std::shared_ptr<task_base> task_factory::create_internal_task(std::size_t id, st
2121
task = std::make_shared<rename_task>(id, task_meta);
2222
} else if (task_meta->binary == "rm") {
2323
task = std::make_shared<rm_task>(id, task_meta);
24-
} else if (task_meta->binary == "archivate") {
25-
task = std::make_shared<archivate_task>(id, task_meta);
24+
} else if (task_meta->binary == "archive") {
25+
task = std::make_shared<archive_task>(id, task_meta);
2626
} else if (task_meta->binary == "extract") {
2727
task = std::make_shared<extract_task>(id, task_meta);
2828
} else if (task_meta->binary == "fetch") {

src/tasks/task_factory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "task_factory_interface.h"
66
#include "external_task.h"
77
#include "root_task.h"
8-
#include "internal/archivate_task.h"
8+
#include "internal/archive_task.h"
99
#include "internal/cp_task.h"
1010
#include "internal/dump_dir_task.h"
1111
#include "internal/truncate_task.h"

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ add_test_suite(tasks
117117
${TASKS_DIR}/internal/mkdir_task.cpp
118118
${TASKS_DIR}/internal/rename_task.cpp
119119
${TASKS_DIR}/internal/rm_task.cpp
120-
${TASKS_DIR}/internal/archivate_task.cpp
120+
${TASKS_DIR}/internal/archive_task.cpp
121121
${TASKS_DIR}/internal/extract_task.cpp
122122
${TASKS_DIR}/internal/fetch_task.cpp
123123
${TASKS_DIR}/internal/truncate_task.cpp

0 commit comments

Comments
 (0)