1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

73 Commits

Author SHA1 Message Date
Nick Liu
f6a225a979
Tests: Add Ubuntu 22.04 to acceptance test operating systems 2022-12-11 22:55:09 -06:00
Nick Liu
ada4ed13be
Tests: Rework acceptance tests to set up LAMP at testing time
We may be able to test different operating systems this way.
2022-12-07 21:18:41 -06:00
Nick Liu
f564f95640
BUG_REPORT.md: Update sed regex match to skip other HTML attributes
A line can now be:

    <h2><a id="module_bcmath" href="#module_bcmath">bcmath</a></h2>

Instead of just:

    <h2><a id="module_bcmath">bcmath</a></h2>
2023-01-02 14:21:35 +01:00
Nick Liu
25a8b68753
Tests: Opt out of Git mitigation of CVE-2022-24765
We are always a single user when running unit tests in the container.

Suppresses this error:

```
$ git submodule update --init --recursive --remote
fatal: detected dubious ownership in repository at '/__w/e107/e107'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/e107/e107
```
2022-12-14 17:57:52 -06:00
Nick Liu
8ae4fe15c0
Tests: Add new service versions: MariaDB 10.6, MariaDB 10.10
PHP 8.2: Not yet because of a segmentation fault:

```
php: /tmp/php-build/source/8.2.0/Zend/zend_builtin_functions.c:763: zif_get_object_vars: Assertion `!(((__ht)->u.flags & (1<<2)) != 0)' failed.
```
2022-12-10 19:50:02 -06:00
Nick Liu
0251897e41
Tests: Pin Xdebug 3.1.6 for PHP 7.2 through PHP 7.4
Xdebug 3.2.0 and newer dropped support for PHP 7.2 through PHP 7.4.

Source: https://bugs.xdebug.org/bug_view_page.php?bug_id=00002014
2022-12-10 17:24:38 -06:00
Nick Liu
9d4aba8438
Tests: Disable broken acceptance tests
Planning to add them back when I make them more robust…
2022-12-10 17:06:34 -06:00
Cameron
ca41cee19a Cleanup 2022-04-07 16:18:57 -07:00
Cameron
404425caf1 Added PHP 8.1 image to workflow. 2022-01-13 12:26:48 -08:00
Cameron
f8d5157121 Updated ver.php to v2.3.2 (git)
Removed closing PHP tag from generated ver.php file during build.
2021-12-02 14:51:18 -08:00
Cameron
d56b75e422 Deltik's workflow updates. 2021-11-25 07:45:39 -08:00
Nick Liu
5c355d57a3
CI: Update Debian archive keyring for unmaintained containers 2021-08-31 00:25:17 +02:00
Nick Liu
cad29d50cf
test-unit: Use older git/curl/libcurl3-gnutls
buster-backports has a libcurl3-gnutls=7.74.0-1.2~bpo10+1 regression
that causes this error:

```
root@86c99eb1984b:/__w/e107/e107# GIT_CURL_VERBOSE=1 GIT_TRACE=1 /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c0385ad7ac0b226971fd875db2b1f36ea119164c:refs/remotes/origin/master
20:25:00.030675 git.c:444               trace: built-in: git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c0385ad7ac0b226971fd875db2b1f36ea119164c:refs/remotes/origin/master
20:25:00.030913 run-command.c:663       trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/e107inc/e107
20:25:00.032174 git.c:729               trace: exec: git-remote-https origin https://github.com/e107inc/e107
20:25:00.032264 run-command.c:663       trace: run_command: git-remote-https origin https://github.com/e107inc/e107
20:25:00.037725 http.c:756              == Info: Couldn't find host github.com in the .netrc file; using defaults
20:25:00.086739 http.c:756              == Info:   Trying 140.82.112.3:443...
20:25:00.138406 http.c:756              == Info: Connected to github.com (140.82.112.3) port 443 (#0)
20:25:00.161613 http.c:756              == Info: found 411 certificates in /etc/ssl/certs
20:25:00.161658 http.c:756              == Info: ALPN, offering h2
20:25:00.161663 http.c:756              == Info: ALPN, offering http/1.1
20:25:00.211239 http.c:756              == Info: SSL connection using TLS1.3 / ECDHE_RSA_AES_128_GCM_SHA256
20:25:00.212011 http.c:756              == Info:         server certificate verification OK
20:25:00.212024 http.c:756              == Info:         server certificate status verification SKIPPED
20:25:00.212136 http.c:756              == Info:         common name: github.com (matched)
20:25:00.212149 http.c:756              == Info:         server certificate expiration date OK
20:25:00.212156 http.c:756              == Info:         server certificate activation date OK
20:25:00.212172 http.c:756              == Info:         certificate public key: EC/ECDSA
20:25:00.212179 http.c:756              == Info:         certificate version: #3
20:25:00.212218 http.c:756              == Info:         subject: C=US,ST=California,L=San Francisco,O=GitHub\, Inc.,CN=github.com
20:25:00.212232 http.c:756              == Info:         start date: Thu, 25 Mar 2021 00:00:00 GMT
20:25:00.212243 http.c:756              == Info:         expire date: Wed, 30 Mar 2022 23:59:59 GMT
20:25:00.212265 http.c:756              == Info:         issuer: C=US,O=DigiCert\, Inc.,CN=DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1
20:25:00.212282 http.c:756              == Info: ALPN, server accepted to use h2
20:25:00.212343 http.c:756              == Info: Using HTTP2, server supports multi-use
20:25:00.212352 http.c:756              == Info: Connection state changed (HTTP/2 confirmed)
20:25:00.212361 http.c:756              == Info: Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
20:25:00.212372 http.c:756              == Info: Failed sending HTTP2 data
20:25:00.212382 http.c:756              == Info: Connection #0 to host github.com left intact
fatal: unable to access 'https://github.com/e107inc/e107/': Failed sending HTTP2 data
```

Downgrading to libcurl3-gnutls=7.64.0-4+deb10u2 resolves the problem.
2021-04-19 16:15:06 -05:00
Nick Liu
b5923169a6
Automated acceptance tests
Includes a Dockerfile that can be used to build the
ghcr.io/e107inc/e107/e107-dev
container
2020-12-28 23:42:57 +01:00
Nick Liu
8a0f098ab6
Automated tests: Typo fixup 2020-12-10 18:49:15 +01:00
Cameron
4a8ef41688 Syntax error fix. 2020-12-10 09:47:37 -08:00
Nick Liu
ccede2f404
PHP 5.6 tests: GD WebP support 2020-12-10 17:59:20 +01:00
Cameron
2b77aa89d4 Take II 2020-12-09 14:52:36 -08:00
Cameron
7fa047bfa3 Adding default GD bundle to workflow environment for webp support 2020-12-09 14:27:25 -08:00
Nick Liu
b1645e9aeb
Run tests on php:8.0 instead of php:8.0-rc 2020-12-06 22:25:43 +01:00
Nick Liu
ef06f382cb
Allow test libraries to be updated for varying PHP versions 2020-11-30 12:55:03 +01:00
Nick Liu
f256b924ce
Fix all PHP 8.0 test failures 2020-11-30 12:55:00 +01:00
Nick Liu
4021f403c6
Xdebug 3 compatibility 2020-11-26 15:32:53 +01:00
Nick Liu
3fcbcd34c0
More accurate version generator in e107_make.php build script
No longer trips up on hyphens in the tagged releases
2020-07-08 14:44:50 -05:00
Nick Liu
8caa640af4
CoreImage: Un-blacklist current plugins and themes
For fine-tuning what should be counted as "old" in the core image.

Plugins and themes removed from core but may still be valid plugins are
no longer considered "old".

Current plugins and themes may contain "old" files.

And some removed plugins should be considered "old" anyway.
2020-05-22 14:50:16 -05:00
Nick Liu
da893e4f20
CoreImage: Ignore old plugins and themes
Otherwise, the admin may be confused by why File Inspector wants their
no-longer-core plugins and themes to be deleted.
2020-05-21 16:36:29 -05:00
Nick Liu
2e0664dad4
Moved placeholder core_image.phar to e107_system
Also made naming of "core_image.phar" consistent everywhere
2020-05-11 15:34:16 -05:00
Cameron
e7a79edcd0 Moved core-image to e107_system/ and renamed to core_image.phar 2020-05-11 13:28:01 -07:00
Nick Liu
7291ebc8b1
Fixes #4114 - Better file inspector corruption warning message
Now advises admins to reupload using binary mode if the admin uploads
files with FTP
2020-04-29 10:50:50 -05:00
Nick Liu
594f3b543c
Build Release: Include core image by itself in release files
Also fixed an E_NOTICE pertaining to array_shift()
2020-04-04 17:53:58 -05:00
Nick Liu
729694b266
e107_make.php: Remove export folder after creating releases 2020-04-04 17:40:18 -05:00
Nick Liu
6253020c92
CoreImage: Support path exclusions
install.php and robots.txt should not be in the database.
2020-04-01 13:29:46 -05:00
Nick Liu
07f5bebab5
Code cleanup for automated release builds
Low-hanging resolutions for Code Climate
2020-03-27 21:57:51 -05:00
Nick Liu
6f6556178f
e_file_inspector_json_phar: Smaller core image
e_file_inspector_json_phar is an extended implementation of
e_file_inspector_json that encapsulates a JSON core image into a
gzip-compressed phar.

This results in space savings of over 60% compared to plain JSON.
2020-03-27 17:06:14 -05:00
Nick Liu
b425b4e45d
CoreImage: API rework 2020-03-27 17:06:14 -05:00
Nick Liu
b8ed70693f
Restored JSON core image generator for performance
PDO SQLite was performing unacceptably poorly.
Let's just load the entire integrity image into RAM…
2020-03-27 17:06:13 -05:00
Nick Liu
695774569c
Add old e107 releases to workflow build-release.yml 2020-03-27 17:06:12 -05:00
Nick Liu
e828d61b28
Add bzip2 support to workflow test-unit.yml 2020-03-27 17:06:11 -05:00
Nick Liu
84081c3d3d
CoreImage: Pack SQLite into phar
This has two benefits:

1. Protects the SQLite database from being accessed on the Internet by
   having the e107_INIT constant check.
2. Compresses the SQLite database, saving over ⅔ of the space!
2020-03-27 17:06:11 -05:00
Nick Liu
d3539cd5b5
CoreImage: Table for versions, slight space savings 2020-03-27 17:06:10 -05:00
Nick Liu
6a9bfeee5f
CoreImage: Performance optimization for removed files
Much faster checksumming of deleted files by using git-checkout instead
of git-show
2020-03-27 17:06:10 -05:00
Nick Liu
caa0826c5e
CoreImage: Replaced JSON with SQLite
Looks like SQLite scales better when there are more files to put in the
database.
2020-03-27 17:06:10 -05:00
Deltik
6aeee58ac2
JSON reimplementation of CoreImage 2020-03-27 17:06:09 -05:00
Nick Liu
e8a68f15d1
Reimplemented core_image.php deprecated checksums
Format is different and currently incompatible.  The checksum has been
replaced with an associated array where the keys are the e107 version
and the values are the checksum from that e107 version.
2020-03-27 17:06:09 -05:00
Nick Liu
0cf9483075
Defensive cleanup of e107_make.php 2020-03-27 17:06:09 -05:00
Nick Liu
0d80b82b49
Bare minimum to build releases in GitHub Actions 2020-03-27 17:06:08 -05:00
Nick Liu
537106c64f
Code warning cleanup of e107_make.php 2020-03-27 17:06:08 -05:00
Nick Liu
a9d8344659
Reformatted e107_make.php 2020-03-27 17:06:08 -05:00
Nick Liu
39c097953f
Updated make.ini for #4099
App root files introduced in https://github.com/e107inc/e107/pull/4099
2020-03-27 17:06:08 -05:00
Nick Liu
554baf07e8
Imported e107_make.php and make.ini to begin release builds
(Code from @CaMer0n)
2020-03-27 17:06:07 -05:00