Commit Graph

788 Commits

Author SHA1 Message Date
David Anderson 44f5e9af73 Change doc URLs from trac wiki to github wiki in source code and project files.
No functional changes.
2023-10-08 13:20:05 -07:00
David Anderson 9c240e6e40 Many comments in the source code (C++ and PHP) referred to Trac wiki pages.
Change these to the Github wiki.

Web: change a couple of links from Trac to Github wiki.

text_transform.inc: the [github]wiki:xxx[/github] tag linked
to a non-existent boinc-dev-doc repo.
Link to the Github wiki instead.
2023-05-25 12:59:56 -07:00
Anna “CyberTailor” 51a2e33e2b
Automake: use $(libexecdir) instead of $(libdir)
For server binaries, examples and tools.
2023-05-17 15:27:06 +05:00
Vitalii Koshura 44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02:00
David Anderson c29a4dac80 Fix a few compile warnings in client simulator.
Use snprintf() instead of sprintf() in a few places
(should eventually do it everywhere)

Notes:

(void)x;
seems to work (cross-platform) for suppressing unused arg warnings.

int n;
n = snprintf(buf, sizeof(buf), ....)
(void)n;

works in some cases for suppressing buffer-size warnings.
But not all cases.  Not sure why.
2023-03-22 17:09:43 -07:00
Vitalii Koshura 11739f2a88
Merge remote-tracking branch 'upstream/master' into vko_fix_linux_build_with_fcgi_enabled
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-02-12 21:29:11 +01:00
Vitalii Koshura 92a9b34e9c
[linux] Move all fcgi dependent stdio functions to the separate 'boinc_stdio.h' header only file
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-02-12 19:50:22 +01:00
Anna “CyberTailor” d727a3d616
Automake: use $(libdir) instead of hardcoded "lib"
Accounts for systems with "lib64" directory.
2023-02-05 17:50:54 +05:00
lfield e561655596
Merge pull request #5031 from BOINC/dpa_uv2
update_versions: fix spurious PHP warning
2022-12-01 21:53:25 +01:00
David Anderson ae29bf51a2 change name of Linux/ARM platform to match wiki 2022-11-30 22:19:11 -08:00
David Anderson 7027c0fdb3 - add a couple more platforms 2022-11-30 17:13:05 -08:00
David Anderson 9b393d779c Add Android ARM64 to default platform list (tools/project.xml).
Note: there's some inconsistency between this list and
https://boinc.berkeley.edu/trac/wiki/BoincPlatforms
2022-11-30 16:06:13 -08:00
David Anderson 4505544168 update_versions: fix spurious PHP warning 2022-11-29 12:59:59 -08:00
Dávid Bolvanský 1657380d7c
Fix broken confirm in process_version
PHP Notice:  Undefined variable: confirm in /home/boincadm/projects/fitcrack/bin/update_versions on line 480
2022-11-19 01:17:58 +01:00
David Anderson bc660d981f make update_versions executable again 2022-11-05 16:12:00 -07:00
David Anderson fe2b8a37c1 update_versions: add --noconfirm option 2022-11-04 20:12:00 -07:00
Vitalii Koshura 21531692f6
Fix missing '-lz' parameter when building 'stage_file_native' tool
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2022-08-03 13:37:06 +02:00
Svyatoslav Krasnov 28773f3faa fix gz resource leakage 2022-07-21 12:29:42 +00:00
Svyatoslav Krasnov cfae9595c2 remove stage_file_native bin from PR 2022-07-12 11:54:27 +00:00
Svyatoslav Krasnov f0f023a695 replace sprintf->snprintf, strcmp->strncmp where possible 2022-07-12 11:48:37 +00:00
Svyatoslav Krasnov ba2754d36b replace array int sizes to MAXPATHLEN and MD5_LEN where possible 2022-07-12 10:56:38 +00:00
Svyatoslav Krasnov 0e6eec0046 rename run_stage_file to stage_file_native 2022-07-12 10:18:15 +00:00
Svyatoslav Krasnov a2969d5882 return stage_file php script as default impl of staging files 2022-06-29 21:27:24 +03:00
Svyatoslav Krasnov 08f2ff41c2 add stage_file.cpp to build; rename old stage_file tool to stage_file.php 2022-06-25 20:20:59 +00:00
Svyatoslav Krasnov 7293ee7935 add stage file implementation 2022-06-25 20:17:46 +00:00
barton26 9e5ff22dfd
Merge branch 'BOINC:master' into spelling 2021-10-11 03:55:52 -04:00
barton26 0a6a48759d Sched + Tests + Misc typos 2021-10-06 14:42:17 -04:00
barton26 d22ed53f6a Remove semicolons in python code 2021-10-01 00:23:26 -04:00
Christian Beer b6e54cbc6e
Merge pull request #3283 from smoe/gui_urls_xml_added_to_Makefile
Complete list of files to be installed for tools
2020-12-31 14:18:25 +01:00
Kevin Reed 2ffd661925
Merge pull request #4043 from BOINC/dpa_python3_2
Change python scripts to use python3.
2020-10-23 15:23:21 -05:00
David Anderson 43c98bff3d Change python3 to python in 2 scripts
These scripts work with python 2 and 3
2020-10-09 12:43:50 -07:00
Rytis Slatkevičius 03b2e00990
Merge pull request #4030 from BOINC/dpa_submit_batch
remote job submission: specify all fields on batch creation.
2020-10-03 10:29:49 +03:00
David Anderson e725f9bd62 manage_privileges, badge_assign.php: fix DB inserts
For newer MySQLs, need to specify values for all fields
2020-10-01 15:08:10 -07:00
David Anderson d5763440c6 Make python scripts work with python2 as well as python3
- Use from __future__ import print_function
- fix input/raw_input discrepancy
2020-09-30 21:09:02 -07:00
David Anderson 506cb29932 Change python scripts to use python3.
You have to install mysqlclient for python3;
that has the same interface as mysqldb, which we used with python2.
2020-09-30 01:58:12 -07:00
David Anderson dd332d61ed remote job submission: specify all fields on batch creation.
Newer versions of MySQL error out if you don't.
2020-09-24 22:06:53 -07:00
David Anderson 3e903d0e36 Remote job submission was always using allocation-based prioritization.
This is not necessarily the right thing.
For example, nanoHUB submits batches of jobs that are mixtures
of speculative and user-submitted;
these simply need to be given low and high priorities.

The way things work now:
- if you want allocation-based prioritization,
    set the "allocation_priority" flag in the request object
    (Python or PHP API)
- or set the "priority" field in the request object;
    that sets the priority of all the jobs in the batch
- or set the "priority" field of jobs in the batch.

Updated wiki docs accordingly.

Also fixed a bug in the test script
(note to self: adding an object to an array adds a reference, not a copy).
2020-07-24 00:36:12 -07:00
Rytis Slatkevičius 70b29e55bd
Create download dir subdirs for app version files 2020-05-27 11:36:42 +03:00
Rytis Slatkevičius 88a92ca122
Add subdirectory support to update_versions 2020-05-27 11:25:42 +03:00
Vitalii Koshura c322be5231
Merge pull request #3640 from BOINC/dpa_aarch
Create aarch64-unknown-linux-gnu platform on project creation
2020-05-02 02:16:44 +02:00
David Anderson 49963a3a6a Create aarch64-unknown-linux-gnu platform on project creation 2020-04-24 15:11:51 -07:00
David Anderson b881ab8563 Make the upgrade and make_project scripts work again.
These scripts use the python mysqldb module, which is available only for Python 2.

To use Python 3 for these scripts, we'd need to find a new MySQL interface module,
and change our Python code to use it.
2020-04-15 12:31:26 -07:00
David Anderson 97f62d2e01 remote job submission: add set_timeout() to Python API 2019-11-19 16:00:21 +01:00
Uplinger fd7374e793
Merge pull request #3211 from BOINC/dpa_make_project
make_project: default to https:// in project URL
2019-09-20 11:45:22 -05:00
Steffen Moeller ce168b5168 Complete list of files to be installed for tools 2019-09-10 14:30:57 +02:00
Vitalii Koshura 1181640809
Fix broken master after 4af1ef748d
Remove deleted files tools/db_query and tool/watch_tcp from tools/Makefile.am

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-09-04 08:35:41 +02:00
Steffen Moeller 4af1ef748d Removing two scripts that have become obsolete
Following a comment by @davidpanderson on PR
https://github.com/BOINC/boinc/pull/3263
2019-09-04 00:25:59 +02:00
Kevin Reed 7c74e67295 tools: sample_work_generator should have the --app example_app argument added to it when a project is being created with the sample app (keeps it consistent with sample_bitwise_validator and sample_assimilator) 2019-08-02 16:31:52 -05:00
lfield 3945ac499f
Merge branch 'master' into dpa_python3 2019-07-16 11:12:19 +02:00
David Anderson ba056186d4 make_project: default to https:// in project URL 2019-07-05 14:57:15 -07:00