Skip to content

Instantly share code, notes, and snippets.

from typing import Dict
from pyspark.sql import DataFrame
from pyspark.sql.functions import col
from mee_common import mee_log
def transformation(dfs: Dict[str, DataFrame]) -> DataFrame:
df = next(iter(dfs.values()))
out = df.filter((col("tradeId").cast("long") % 2)==1)
mee_log(f"BRANCH=A IN={df.count()} OUT={out.count()}")
return out
test-job:
stage: test
timeout: 3h
dependencies:
- setup-job
script:
- echo "Creating .env file"
- |
set +x
echo "SYSMEDEV=$SYSMEDEV" >> .env
:: 1. убери nightly-Node
winget uninstall --id OpenJS.NodeJS -e
:: 2. поставь nvm и LTS 20
winget install -e --id CoreyButler.NVMforWindows
nvm install 20.14.0
nvm use 20.14.0
:: 3. почисти проект
cd D:\work\RISE_PW_TS
# clean start in project root
nvm use 20.14.0
npm cache clean --force
del package-lock.json
rd /s /q node_modules
npm install --loglevel info
Вот готовый текст для реквеста:
Short Description:
Request to increase VM resources (CPU and RAM)
Description:
I need to increase my VM capacity to 8 CPU and 8 GB RAM. Currently, I have 2 CPU and 4 GB RAM, and the machine consistently freezes and blocks my programming tasks. I’m actively involved in development across multiple projects, and current resources are not sufficient.
// в Utils
public static sortJsonArray(arr: any[]): any[] {
return [...arr].sort((a, b) =>
JSON.stringify(a).localeCompare(JSON.stringify(b))
);
}
async selectDate(
dateString: string,
allowFallback = false,
maxDaysAhead = 0
): Promise<void> {
const [year, month, day] = dateString.split('/').map(Number);
await (await this.childElement(this.yearSelect)).selectOption(year);
await (await this.childElement(this.monthSelect)).selectOption({ value: month });
async function brutalFill(locator: Locator, value: string) {
const el = await locator.elementHandle();
await el.evaluate((input, v) => {
// Берём native setter, чтобы обойти маску/прокси getters
const nativeInputValueSetter =
Object.getOwnPropertyDescriptor(
HTMLInputElement.prototype,
'value'
)!.set!;
import {AttributeType, Component} from "./component";
export class Calendar extends Component {
public container: string;
constructor(container: string) {
super(`${container} div[class^="bootstrap-datetimepicker-widget"]`);
this.container = container;
}
UI Automation Excellence: From Stability to Insights
Two Projects – One Vision for Quality and Speed
Why This Project Matters
• We run critical UI test pipelines…
• Main goal: eliminate flakiness…
What Makes This Project Stand Out
• Two fully automated pipelines…
(continue the same pattern for all slides)