Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Attempt to generate artifacts through CircleCI #39

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f89c989
apt-update for ubuntu github actions
Mar 10, 2021
d75dd85
Load mode as a byte array (#55)
XapaJIaMnu Mar 22, 2021
34228d3
Collapse Service into one class instead of three (#62)
Mar 23, 2021
12e9232
Patch WASM artifacts to run optimized (wormhole enabled) inference (#68)
abhi-agg Mar 24, 2021
a3250b4
Marian compatible documentation tooling (#67)
Mar 24, 2021
f38a0bf
Remove AbstractTranslationModel class and its references
abhi-agg Mar 24, 2021
fdbce57
Update marian-dev submodule to master
abhi-agg Mar 25, 2021
e0dca1b
Renamed github workflow files
abhi-agg Mar 26, 2021
bfb5e78
Alignments + weak quality scores capability in Service (#46)
Mar 31, 2021
47db7e2
Change bergamot app to process stdin texts
eu9ene Mar 27, 2021
3068ed5
Explictly install gcc version and use 8 (#81)
kpu Apr 1, 2021
2e5daac
Marian submodule update (#74)
abhi-agg Apr 1, 2021
f654ab0
Enable binary shortlist loading from bytebuffer (#69)
qianqianzhu Apr 1, 2021
27a3a32
Make AlignedMemory the means of passing in memory (#86)
kpu Apr 6, 2021
b71b3a1
Removes vocabs and propogates fixes for breaks (#79)
Apr 7, 2021
5e15d73
Consistent api usage (#91)
XapaJIaMnu Apr 9, 2021
b345b0e
Rudimentary validator for binary files (#94)
XapaJIaMnu Apr 12, 2021
3daa024
Strengthen the Annotation class: Handle empty sentences and tests (#85)
Apr 12, 2021
e4b5835
Clarify misleading comment (#99)
XapaJIaMnu Apr 14, 2021
f1fc4f8
Fix the target_include_directories (#98)
XapaJIaMnu Apr 14, 2021
c00c263
Moving small tests to GitHub CI (#93)
Apr 16, 2021
1184875
Windows PCQueue support without Boost (#106)
kpu Apr 22, 2021
fc6976a
Remove dead code (#107)
XapaJIaMnu Apr 22, 2021
7d2e74f
Changed underlying template parameter of AlignedMemory class (#111)
abhi-agg Apr 26, 2021
fdf9e66
Windows workflows and mac framework accelerate (#108)
XapaJIaMnu Apr 26, 2021
fa2003e
Cleanup API: Refactor request on-complete transition (#80)
Apr 27, 2021
4be96a9
Handle empty translation requests
Apr 27, 2021
e5ec5bd
Control validating the config options via a boolean flag (#116)
abhi-agg Apr 29, 2021
de0abfd
JS bindings for loading model and shortlist files as bytes (#117)
abhi-agg Apr 29, 2021
fcc285e
Safe transfer of bindings through typedefs
Apr 29, 2021
c58072d
Removing Translation* files and bringing in counterparts
Apr 29, 2021
934e53c
Merge branch 'main' into jp/tgt-mozilla-collapse-bindings
Apr 29, 2021
f2939c3
Merge branch 'jp/collapse-wasm-bindings' into jp/tgt-mozilla-collapse…
Apr 29, 2021
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
32 changes: 0 additions & 32 deletions .github/workflows/macos-custom-marian-native.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/macos.yml

This file was deleted.

108 changes: 108 additions & 0 deletions .github/workflows/native-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Native MacOS

on:
push:
branches: [ main, ci-sandbox ]
pull_request:
branches: [ main, ci-sandbox ]

jobs:
build-macos:
strategy:
fail-fast: false
matrix:
include:
- name: "full-marian"
os: macos-10.15
test_tags: ""
cmake:
CMAKE_BUILD_TYPE: "Release"
COMPILE_TESTS: "ON"
USE_WASM_COMPATIBLE_SOURCE: "OFF"
USE_FBGEMM: "OFF"
USE_STATIC_LIBS: "OFF"
COMPILE_SERVER: "OFF"
COMPILE_EXAMPLES: "OFF"

- name: "minimal-marian"
os: macos-10.15
test_tags: "'#wasm'"
cmake:
CMAKE_BUILD_TYPE: "Release"
COMPILE_TESTS: "OFF" # Minimal marian has no sqlite support and compile tests fail
USE_WASM_COMPATIBLE_SOURCE: "ON"
USE_FBGEMM: "OFF"
# explicitly set due to requirement of minimal marian being used
# within WASM. This is some yaml ugliness, but issok.
USE_STATIC_LIBS: "ON"
COMPILE_SERVER: "OFF"
COMPILE_EXAMPLES: "OFF"

name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install dependencies
run: |
brew update
brew install openblas protobuf coreutils

# Openblas location is exported explicitly because openblas is keg-only,
# which means it was not symlinked into /usr/local/.
- name: Set BLAS Environment variables
run: |
echo "LDFLAGS=-L/usr/local/opt/openblas/lib" >> $GITHUB_ENV
echo "CPPFLAGS=-I/usr/local/opt/openblas/include" >> $GITHUB_ENV
if: matrix.cmake.USE_WASM_COMPATIBLE_SOURCE == 'OFF'

# CMake cannot find BLAS on GitHub runners if Marian is being compiled
# statically, hence USE_STATIC_LIBS=off
- name: Configure CMake
run: |
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake.CMAKE_BUILD_TYPE }}\
-DCOMPILE_TESTS=${{ matrix.cmake.COMPILE_TESTS }}\
-DCOMPILE_EXAMPLES=${{ matrix.cmake.COMPILE_EXAMPLES }} \
-DCOMPILE_SERVER=${{ matrix.cmake.COMPILE_SERVER }} \
-DUSE_STATIC_LIBS=${{ matrix.cmake.USE_STATIC_LIBS }} \
-DUSE_WASM_COMPATIBLE_SOURCE=${{ matrix.cmake.USE_WASM_COMPATIBLE_SOURCE }} \
-DUSE_FBGEMM=${{ matrix.cmake.USE_FBGEMM }}

- name: Compile
working-directory: build
run: make -j2

- name: Run unit tests
working-directory: build
run: make test
if: matrix.cmake.COMPILE_TESTS == 'ON'

- name: Print versions
working-directory: build
run: |
./app/bergamot-translator-app --version

- name: Install regression-test framework (BRT)
working-directory: bergamot-translator-tests
run : make install

- name: Run regression-tests (BRT)
working-directory: bergamot-translator-tests
run : MARIAN=../build ./run_brt.sh ${{ matrix.test_tags }}

- name: Upload regression-tests artifacts
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: brt-artifacts-${{ matrix.name }}
path: |
bergamot-translator-tests/**/*.expected
bergamot-translator-tests/**/*.log
bergamot-translator-tests/**/*.out
117 changes: 117 additions & 0 deletions .github/workflows/native-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Native Ubuntu

on:
push:
branches: [ main, ci-sandbox ]
pull_request:
branches: [ main, ci-sandbox ]

jobs:
build-ubuntu:
strategy:
fail-fast: false
matrix:
include:
- name: "full-marian"
os: ubuntu-latest
gcc: 8
cpu: 'ON'
gpu: 'OFF'
test_tags: ""
cmake:
CMAKE_BUILD_TYPE: "Release"
COMPILE_TESTS: "ON"
USE_WASM_COMPATIBLE_SOURCE: "OFF"
COMPILE_SERVER: "OFF"
COMPILE_EXAMPLES: "OFF"

- name: "minimal-marian"
os: ubuntu-latest
gcc: 8
cpu: 'ON'
gpu: 'OFF'
test_tags: "'#wasm'"
cmake:
CMAKE_BUILD_TYPE: "Release"
COMPILE_TESTS: "OFF" # Minimal marian has no sqlite support and COMPILE_TEST=ON fails.
USE_WASM_COMPATIBLE_SOURCE: "ON"
COMPILE_SERVER: "OFF"
COMPILE_EXAMPLES: "OFF"


runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

# The following packages are already installed on GitHub-hosted runners:
# build-essential openssl libssl-dev
# No need to install libprotobuf{17,10,9v5} on Ubuntu {20,18,16}.04 because
# it is installed together with libprotobuf-dev
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgoogle-perftools-dev libprotobuf-dev protobuf-compiler \
libboost-all-dev g++-${{ matrix.gcc }}

# https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html
- name: Install MKL
run: |
wget -qO- "https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB" | sudo apt-key add -
sudo sh -c "echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list"
sudo apt-get update -o Dir::Etc::sourcelist="/etc/apt/sources.list.d/intel-mkl.list"
sudo apt-get install -y --no-install-recommends intel-mkl-64bit-2020.0-088
if: matrix.cmake.USE_WASM_COMPATIBLE_SOURCE == 'OFF'

# Boost is installed on GitHub-hosted runners in a non-standard location
# https://github.com/actions/virtual-environments/issues/687#issuecomment-610471671
- name: Configure CMake
run: |
mkdir -p build
cd build
CC=/usr/bin/gcc-${{ matrix.gcc }} CXX=/usr/bin/g++-${{ matrix.gcc }} CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }} \
cmake .. \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake.CMAKE_BUILD_TYPE }}\
-DCOMPILE_TESTS=${{ matrix.cmake.COMPILE_TESTS }}\
-DCOMPILE_EXAMPLES=${{ matrix.cmake.COMPILE_EXAMPLES }} \
-DCOMPILE_SERVER=${{ matrix.cmake.COMPILE_SERVER }} \
-DUSE_WASM_COMPATIBLE_SOURCE=${{ matrix.cmake.USE_WASM_COMPATIBLE_SOURCE }} \

- name: Compile bergamot-translator
working-directory: build
run: make -j2

- name: Run unit tests
working-directory: build
run: make test
# GitHub-hosted VMs do not have GPUs, so can not be run in CUDA builds
if: matrix.gpu == 'OFF' && matrix.cmake.COMPILE_TESTS == 'ON'

- name: Print versions
working-directory: build
run: |
./app/bergamot-translator-app --version


- name: Install regression-test framework (BRT)
working-directory: bergamot-translator-tests
run : make install

- name: Run regression-tests (BRT)
working-directory: bergamot-translator-tests
run : MARIAN=../build ./run_brt.sh ${{ matrix.test_tags }}

- name: Upload regression-tests artifacts
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: brt-artifacts-${{ matrix.name }}
path: |
bergamot-translator-tests/**/*.expected
bergamot-translator-tests/**/*.log
bergamot-translator-tests/**/*.out
Loading