Skip to content

Commit

Permalink
T340226 reproducible builds (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
rti committed Dec 18, 2023
1 parent f9bb530 commit dbd05d3
Show file tree
Hide file tree
Showing 112 changed files with 768 additions and 1,129 deletions.
4 changes: 0 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# comment
cache/*
git_cache/*
Docker/**/*.tar.gz
test/suites/**/results
test/log
test/mwlog
Expand Down
42 changes: 0 additions & 42 deletions .github/actions/prep-env-and-cache/action.yml

This file was deleted.

13 changes: 4 additions & 9 deletions .github/actions/upload-results/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,18 @@ inputs:
runs:
using: "composite"
steps:
- name: Archive build_metadata Artifacts (if any)
uses: actions/upload-artifact@v3
with:
name: Metadata
path: artifacts/build_metadata_*.env
if-no-files-found: ignore

- name: Archive tar artifacts (if any)
uses: actions/upload-artifact@v3
with:
name: TarBalls
path: artifacts/${{ inputs.component }}.tar.gz
path: |
artifacts/${{ inputs.component }}*.tar.gz
!artifacts/${{ inputs.component }}*.docker.tar.gz
if-no-files-found: ignore

- name: Archive Docker artifact
uses: actions/upload-artifact@v3
with:
name: DockerImages
path: artifacts/${{ inputs.component }}.docker.tar.gz
path: artifacts/${{ inputs.component }}*.docker.tar.gz
if-no-files-found: error
44 changes: 2 additions & 42 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,15 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Prepare environment and caches
uses: ./.github/actions/prep-env-and-cache

- name: Build
run: ./build.sh ${{ matrix.component }}
run: ./build.sh --save-image --extract-tarball ${{ matrix.component }}
shell: bash

- name: Upload results
uses: ./.github/actions/upload-results
with:
component: ${{ matrix.component }}

# TODO: remove extra step with https://phabricator.wikimedia.org/T347000
- name: Upload additional bundle results for wikibase build
if: matrix.component == 'wikibase'
uses: ./.github/actions/upload-results
with:
component: ${{ matrix.component }}-bundle

- name: Scan Image
uses: ./.github/actions/scan-image
continue-on-error: true
Expand Down Expand Up @@ -213,7 +203,7 @@ jobs:
]

env:
TARGET_WIKIBASE_UPGRADE_IMAGE_NAME: wikibase-bundle
TARGET_WIKIBASE_UPGRADE_IMAGE_NAME: wikibase/wikibase-bundle

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -242,36 +232,6 @@ jobs:
name: TestResults
path: test/suites/**/results

# TODO: https://phabricator.wikimedia.org/T347084
metadata:
runs-on: ubuntu-latest
timeout-minutes: 20

needs:
- test

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- uses: c-py/action-dotenv-to-setenv@v4
with:
env-file: "variables.env"

- name: Build version requirements
shell: bash
run: |
./build.sh requirements
- name: Archive metadata artifacts
uses: actions/upload-artifact@v3
with:
name: Metadata
path: artifacts/built_versions.log
if-no-files-found: error

upload_ghcr:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down
28 changes: 7 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
core
Vector
cache
git_cache
container_id
*.swp
Wikibase.tar.gz
*.docker.tar.gz

Docker/build/Wikibase/artifacts

Docker/build/WDQS/wait-for-it.sh

#temp
Docker/**/*.tar.gz
test/suites/**/results/
test/log
test/mwlog
docs/diagrams/node_modules/
artifacts/*
local.env
example/log
.DS_Store
.direnv
artifacts/*
docs/diagrams/node_modules/
example/log
local.env
test/log
test/mwlog
test/suites/**/results/
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

13 changes: 0 additions & 13 deletions Docker/build/Elasticsearch/Dockerfile

This file was deleted.

46 changes: 0 additions & 46 deletions Docker/build/QuickStatements/Dockerfile

This file was deleted.

72 changes: 0 additions & 72 deletions Docker/build/Wikibase/Dockerfile

This file was deleted.

72 changes: 0 additions & 72 deletions Docker/build/Wikibase/LocalSettings.php.REL1_35.template

This file was deleted.

6 changes: 0 additions & 6 deletions Docker/build/Wikibase/default.env

This file was deleted.

Loading

0 comments on commit dbd05d3

Please sign in to comment.