aws / aws/aws-lambda-builders

Feature Request: Support optimization flags in the build actions

Aperta
#3 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
maintainer/need-response type/feature
Lingua principale
Python
Stelle
380
Fork
161
Merge medio
1g 1h
PR unite (30g)
2

Descrizione

**Description:**
We can support several optimizations to improve the build process. This is a feature request to support optimization flags that can be passed to each build action. If an action cannot support a particular optimization, it should error out:

### Optimization 1: Use prebuilt binaries
**Benefit**: Makes build faster

When building dependencies with native modules, use pre-built binaries that are available locally or download from internet. This saves time in recompiling the same binaries over and over again. It can also make the build more stable because sometimes compilation fails or times out.

**Requested by build actions**:
1. node-npm
1. python-pip

### Optimization 2: Remove unnecessary dependencies
**Benefit**: Produces slim zips

Remove unnecessary dependency libraries, or files or folders from the output artifact. For example, remove tests, test data files, or dependencies that are already available in transitive closure.

**Requested by build actions**:
1. node-npm
1. python-pip

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

La issue nomina le build action node-npm e python-pip, ma non indica file o test. Inizia individuando le implementazioni di queste action e i relativi percorsi di output della build; quindi determina come viene richiesta ogni ottimizzazione, come viene rifiutata quando non è supportata e come viene verificata negli artefatti risultanti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
node.js, python
Ambito
build-system
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.