Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
ef8651a
Create main.yml
jbarritaud Jul 31, 2023
8336f39
add branch
jbarritaud Jul 31, 2023
797e3a5
add key for buildozer and list files
jbarritaud Jul 31, 2023
e462219
add current repo checkout
jbarritaud Jul 31, 2023
5db86f4
try to run buildozer first time
jbarritaud Aug 1, 2023
ccdfeac
try fixing erroring path
jbarritaud Aug 1, 2023
4059203
fix buildozer using path
jbarritaud Aug 1, 2023
937fbd3
try with buster and recent php version
jbarritaud Aug 1, 2023
6ea9d5d
remove debug and rebuild from /
jbarritaud Aug 1, 2023
a7907c1
finnaly understanding the pathing
jbarritaud Aug 1, 2023
840598e
finnaly understanding the pathing 2
jbarritaud Aug 1, 2023
db29ac9
try to resplit directory because home is overriding itself
jbarritaud Aug 1, 2023
347e8d8
try double build with 2 version
jbarritaud Aug 1, 2023
766cb5e
try matrix to build multiple image
jbarritaud Aug 2, 2023
4b27c55
fix indentation
jbarritaud Aug 2, 2023
76ddf0d
try matrixing also the description
jbarritaud Aug 2, 2023
1ac7bdb
remove the fail-fast default strategy because we want to build as muc…
jbarritaud Aug 2, 2023
64aa8b8
add new // jobs for centos
jbarritaud Aug 2, 2023
229245e
try to put packages as artifact
jbarritaud Aug 2, 2023
9d5118f
try gzip again
jbarritaud Aug 2, 2023
2ca9295
fix possible segfault in zend_functions_info
Korrigan Aug 3, 2023
ea3b04c
change upload method
jbarritaud Aug 3, 2023
add210b
tests centos builds
jbarritaud Aug 3, 2023
763e75f
add bullseye for debian builds
jbarritaud Aug 3, 2023
bb6140a
cleanup
Korrigan Aug 3, 2023
974721b
cleanup TSRMLS_* macros usage (deprecated in PHP7)
Korrigan Aug 3, 2023
755e259
fixed potential use-after-free
Korrigan Aug 3, 2023
081f935
updated gitignore
Korrigan Aug 3, 2023
05bc427
added #if DEBUG_QUANTA guard to avoid compilation warnings
Korrigan Aug 3, 2023
54a142c
fixed zend_read_property usage for PHP8
Korrigan Aug 3, 2023
5b7759b
rebuild
jbarritaud Aug 3, 2023
eacb0f7
fixed PHP8 compat for hijacking zend_compile_string
Korrigan Aug 3, 2023
8f76b4d
Merge branch 'icemax-workflow-test-01' into php8
jbarritaud Aug 3, 2023
5355431
test bullseye with php 8
jbarritaud Aug 3, 2023
e33ece7
remove support for PHP < 7
Korrigan Aug 3, 2023
f8a70c5
remove deleted files from config.m4
Korrigan Aug 3, 2023
d43cec0
Merge branch 'php8' of github.com:quanta-computing/quanta-php-module …
Korrigan Aug 3, 2023
46b27e8
try version 81 82 83 full bullseye
jbarritaud Aug 4, 2023
0b99342
try all php versions on bookworm
jbarritaud Aug 4, 2023
7cfa7d5
add centos
jbarritaud Aug 8, 2023
0b7f000
try auto build for centos 7 full versions
jbarritaud Aug 9, 2023
e5a00a7
build for centos 8 and php all
jbarritaud Aug 9, 2023
045b6e8
try centos 9 builds
jbarritaud Aug 10, 2023
7ddab64
rebuild every debian
jbarritaud Aug 10, 2023
11fb2a7
try pelletesteuse on bullseye
jbarritaud Aug 11, 2023
c45d07f
try pelletesteuse in the workflow
jbarritaud Aug 11, 2023
0ce24b5
remove the sleep and test again
jbarritaud Aug 11, 2023
fb38f41
try to launch pelletesteuse again
jbarritaud Aug 11, 2023
b641f7c
tests for bookworm
jbarritaud Aug 11, 2023
1b40716
test centos 8 with pelletesteuse on php7.3 only for now
jbarritaud Aug 11, 2023
da1f0fd
try 8,3 for debian
jbarritaud Aug 11, 2023
32255d6
try to pelletest the buster php versions
jbarritaud Aug 21, 2023
358158d
test centos 8 on workflow
jbarritaud Aug 22, 2023
a6549bc
cleanup
Korrigan Aug 25, 2023
be2f1af
bump version
Korrigan Aug 25, 2023
f6a0b07
Merge branch 'php8' of github.com:quanta-computing/quanta-php-module …
Korrigan Aug 25, 2023
983a842
cleanup
Korrigan Aug 25, 2023
5ad5fdc
try building php for every ubuntu
jbarritaud Aug 25, 2023
8a312f2
change the title to also have the php version
jbarritaud Aug 25, 2023
9d205ab
get the correct path for php-module
jbarritaud Aug 25, 2023
450caee
all version of phps for all os
jbarritaud Aug 25, 2023
93d5cac
fix workflow
jbarritaud Aug 25, 2023
08ec0f1
rebuild ubuntu
Korrigan Aug 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Quanta PHP Module builder

on:
pull_request:
branches:
- '**'
types:
- opened
- edited
- synchronize
- labeled

workflow_dispatch:

permissions:
id-token: write
contents: read

env:
PACKER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
builds:
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'release')
environment: build
name: '[${{ matrix.os }}][${{ matrix.version }}][${{ matrix.php-version }}] - Quanta PHP Module Builds'
runs-on: ubuntu-latest
# needs: detect-version
strategy:
fail-fast: false
matrix:
# os: [debian, centos, ubuntu]
os: [ubuntu]
version: [jammy, kinetic, lunar]
# version: [buster, bullseye, bookworm, 7, 8, 9, jammy, kinetic, lunar]
php-version: [php73, php74, php80, php81, php82, php83]
# exclude:
# - os: debian
# version: 7
# - os: debian
# version: 8
# - os: debian
# version: 9
# - os: debian
# version: jammy
# - os: debian
# version: kinetic
# - os: debian
# version: lunar
# - os: centos
# version: buster
# - os: centos
# version: bullseye
# - os: centos
# version: bookworm
# - os: centos
# version: jammy
# - os: centos
# version: kinetic
# - os: centos
# version: lunar
# - os: ubuntu
# version: buster
# - os: ubuntu
# version: bullseye
# - os: ubuntu
# version: bookworm
# - os: ubuntu
# version: 7
# - os: ubuntu
# version: 8
# - os: ubuntu
# version: 9


steps:
- name: Clone Quanta PHP module repository
uses: actions/checkout@v3
with:
path: quanta-php-module

- name: Clone Buildozer repository
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.BUILDOZER_DEPLOY_KEY }}
repository: quanta-computing/buildozer
ref: 'new-packages-worflow'
persist-credentials: true
path: tools

- name: Build php module packages
run: |
cd tools
./buildozer -t ${{ matrix.php-version }}-quanta-mon -o ${{ matrix.os }} -v ${{ matrix.version }} -s ../quanta-php-module/extension/ -r 1.3.4

- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.version }}_${{ matrix.php-version }}-quanta-mon-1.3.4.tgz
path: tools/${{ matrix.os }}/${{ matrix.version }}/pkg/

# - name: Pelletesting
# run: |
# cd tools
# ./pelletesteuse -t ${{ matrix.php-version }}-quanta-mon -o debian -v ${{ matrix.debian-version }} -r 1.3.4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.ko
*.obj
*.elf
*.dep

# Precompiled Headers
*.gch
Expand Down Expand Up @@ -102,6 +103,7 @@ extension/config.nice
extension/config.status
extension/config.sub
extension/configure
extension/configure.ac
extension/configure.in
extension/install-sh
extension/libtool
Expand Down
35 changes: 0 additions & 35 deletions extension/Makefile.local

This file was deleted.

1 change: 0 additions & 1 deletion extension/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ if test "$PHP_QUANTAMON" != "no"; then
src/utils/safe_get_constant.c \
src/utils/this.c \
src/utils/timing.c \
src/utils/zend_hash.c \
src/utils/zend_obj.c \
src/utils/zend_zval.c \
src/applications.c, $ext_shared,,-W -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE)
Expand Down
8 changes: 4 additions & 4 deletions extension/gen_app_trees.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def print depth, text
def compile_node app_name, node, depth = 0
if node[:children].empty?
print depth, "++hp_globals.internal_match_counters.function;"
print depth, "const char *class_name = hp_get_class_name(data TSRMLS_CC);";
print depth, "const char *class_name = hp_get_class_name(data);";
print depth, "if (!class_name) return NULL;"
node[:value].each do |value|
print depth, "if (!strcmp(class_name, \"#{value[:class_name].gsub '\\', '\\\\\\\\'}\"))"
Expand All @@ -64,7 +64,7 @@ def compile_node app_name, node, depth = 0
end

def compile_tree app_name, tree
puts "profiled_function_t *#{app_name}_match_function(const char* function_name, zend_execute_data* data TSRMLS_DC) {"
puts "profiled_function_t *#{app_name}_match_function(const char* function_name, zend_execute_data* data) {"
puts " ++hp_globals.internal_match_counters.total;"
compile_node app_name, tree
puts "}"
Expand Down Expand Up @@ -153,7 +153,7 @@ def compile_profiled_application name, app
def compile_app_first_node node, depth = 0
if node[:children].empty?
print depth, "++hp_globals.internal_match_counters.function;"
print depth, "const char *class_name = hp_get_class_name(data TSRMLS_CC);";
print depth, "const char *class_name = hp_get_class_name(data);";
print depth, "if (!class_name) return NULL;"
node[:value].each do |value|
print depth, "if (!strcmp(class_name, \"#{value[:class_name].gsub '\\', '\\\\\\\\'}\"))"
Expand All @@ -171,7 +171,7 @@ def compile_app_first_node node, depth = 0

def compile_app_first_tree tree
puts "profiled_application_t *qm_match_first_app_function(const char* function_name,"
puts "zend_execute_data* data TSRMLS_DC) {"
puts "zend_execute_data* data) {"
puts " ++hp_globals.internal_match_counters.total;"
compile_app_first_node tree
puts "}"
Expand Down
110 changes: 0 additions & 110 deletions extension/gen_tree.rb

This file was deleted.

10 changes: 0 additions & 10 deletions extension/include/compat.h

This file was deleted.

10 changes: 5 additions & 5 deletions extension/include/magento1.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
#define QM_MAGENTO1_H_

int magento1_record_reindex_event(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *execute_data TSRMLS_DC);
zend_execute_data *execute_data);
int magento1_record_cache_clean_event(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *execute_data TSRMLS_DC);
zend_execute_data *execute_data);
int magento1_record_process_index_event(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *execute_data TSRMLS_DC);
zend_execute_data *execute_data);

int magento1_block_before_render(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *execute_data TSRMLS_DC);
zend_execute_data *execute_data);

int magento1_fetch_version(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *data TSRMLS_DC);
zend_execute_data *data);

#endif /* end of include guard: QM_MAGENTO1_H_ */
8 changes: 4 additions & 4 deletions extension/include/magento2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#define QM_MAGENTO2_H_

int magento2_block_before_render(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *execute_data TSRMLS_DC);
zend_execute_data *execute_data);

int magento2_record_reindex_event(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *execute_data TSRMLS_DC);
zend_execute_data *execute_data);
int magento2_record_cache_clean_event(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *execute_data TSRMLS_DC);
zend_execute_data *execute_data);

int magento2_fetch_version(profiled_application_t *app, profiled_function_t *function,
zend_execute_data *ex TSRMLS_DC);
zend_execute_data *ex);

#endif /* end of include guard: QM_MAGENTO2_H_ */
Loading